On Fri, Apr 9, 2010 at 14:02, Stuart Henderson <[email protected]> wrote:
> On 2010/04/09 13:26, Alexey Suslikov wrote:
>> On Fri, Apr 9, 2010 at 12:49, Stuart Henderson <[email protected]> wrote:
>> > On 2010/04/09 12:32, Alexey Suslikov wrote:
>> >> There is a problem in setup with outbound proxy (maybe related to
>> >> https://issues.asterisk.org/view.php?id=15827).
>> >
>> > please try this diff from the bug you found:
>> >
>> > (also at http://junkpile.org/asterisk-1.6.2.6p0.diff)
>>
>> Looks like it doesn't fix the problem.
>
> bleurgh, i see it, this diff will fix it. bug# 17157.

welp, it works.

[Apr  9 14:19:47] DEBUG[25702] acl.c: Found IP address for this socket
[Apr  9 14:19:47] DEBUG[25702] chan_sip.c: Setting SIP_TRANSPORT_UDP
with address X.X.X.X:5061
[Apr  9 14:19:47] DEBUG[25702] chan_sip.c: Allocating new SIP dialog
for [email protected] - REGISTER (No RTP)
[Apr  9 14:19:47] DEBUG[25702] chan_sip.c: **** Received REGISTER (2)
- Command in SIP REGISTER
[Apr  9 14:19:47] DEBUG[25702] chan_sip.c: Trying to put 'SIP/2.0 401'
onto UDP socket destined for Y.Y.Y.Y:5060
[Apr  9 14:19:47] DEBUG[25702] chan_sip.c: **** Received REGISTER (2)
- Command in SIP REGISTER
[Apr  9 14:19:47] DEBUG[25702] chan_sip.c: Allocating new SIP dialog
for [email protected] - OPTIONS (No RTP)
[Apr  9 14:19:47] DEBUG[25702] acl.c: Found IP address for this socket
[Apr  9 14:19:47] DEBUG[25702] chan_sip.c: Setting SIP_TRANSPORT_UDP
with address X.X.X.X:5061
[Apr  9 14:19:47] DEBUG[25702] chan_sip.c: Initializing initreq for
method OPTIONS - callid [email protected]
[Apr  9 14:19:47] DEBUG[25702] chan_sip.c: Trying to put 'OPTIONS sip'
onto UDP socket destined for Y.Y.Y.Y:5060
[Apr  9 14:19:47] DEBUG[25702] chan_sip.c: Trying to put 'SIP/2.0 200'
onto UDP socket destined for Y.Y.Y.Y:5060
[Apr  9 14:19:47] DEBUG[25702] devicestate.c: No provider found,
checking channel drivers for SIP - 100
[Apr  9 14:19:47] DEBUG[25702] chan_sip.c: Checking device state for peer 100
[Apr  9 14:19:47] DEBUG[25702] devicestate.c: Changing state for
SIP/100 - state 1 (Not in use)
[Apr  9 14:19:47] DEBUG[25702] devicestate.c: device 'SIP/100' state '1'
[Apr  9 14:19:47] DEBUG[25702] chan_sip.c: Stopping retransmission on
'[email protected]' of Request 102: Match Found
[Apr  9 14:19:47] DEBUG[25702] chan_sip.c: Destroying SIP dialog
[email protected]
[Apr  9 14:19:55] DEBUG[25702] acl.c: Found IP address for this socket
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Setting SIP_TRANSPORT_UDP
with address X.X.X.X:5061
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Setting NAT on RTP to Off
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Allocating new SIP dialog
for [email protected] - INVITE (With RTP)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: **** Received INVITE (5) -
Command in SIP INVITE
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Setting NAT on RTP to On
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Trying to put 'SIP/2.0 401'
onto UDP socket destined for Y.Y.Y.Y:5060
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: **** Received ACK (6) -
Command in SIP ACK
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Stopping retransmission on
'[email protected]' of Response 101: Match Found
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: **** Received INVITE (5) -
Command in SIP INVITE
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Setting NAT on RTP to On
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Processing session-level
SDP v=0... UNSUPPORTED.
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Processing session-level
SDP o=- 17495976 17495976 IN IP4 Y.Y.Y.Y... UNSUPPORTED.
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Processing session-level
SDP s=-... UNSUPPORTED.
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Processing session-level
SDP c=IN IP4 Y.Y.Y.Y... OK.
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Processing session-level
SDP t=0 0... UNSUPPORTED.
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Processing media-level
(audio) SDP a=rtpmap:0 PCMU/8000... OK.
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Processing media-level
(audio) SDP a=rtpmap:101 telephone-event/8000... OK.
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Processing media-level
(audio) SDP a=fmtp:101 0-15... UNSUPPORTED.
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Processing media-level
(audio) SDP a=ptime:30... OK.
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Processing media-level
(audio) SDP a=sendrecv... OK.
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: We're settling with these
formats: 0x4 (ulaw)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Checking SIP call limits
for device 100
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Updating call counter for
incoming call
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: *** Our native formats are
0x4 (ulaw)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: *** Joint capabilities are
0x4 (ulaw)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: *** Our capabilities are 0x4 (ulaw)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: *** AST_CODEC_CHOOSE
formats are 0x4 (ulaw)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: This channel will not be
able to handle video.
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: build_route: Contact hop:
"100" <sip:[email protected]:5060>
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: SIP/100-00000004: New call
is still down.... Trying...
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Trying to put 'SIP/2.0 100'
onto UDP socket destined for Y.Y.Y.Y:5060
[Apr  9 14:19:55] DEBUG[25702] devicestate.c: No provider found,
checking channel drivers for SIP - 100
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Checking device state for peer 100
[Apr  9 14:19:55] DEBUG[25702] devicestate.c: Changing state for
SIP/100 - state 1 (Not in use)
[Apr  9 14:19:55] DEBUG[25702] devicestate.c: device 'SIP/100' state '1'
[Apr  9 14:19:55] DEBUG[25702] pbx.c: Launching 'Dial'
[Apr  9 14:19:55] VERBOSE[25702] pbx.c:     -- Executing
[...@default:1] Dial("SIP/100-00000004", "SIP/9...@prov,120,tr") in new
stack
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Asked to create a SIP
channel with formats: 0x4 (ulaw)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Allocating new SIP dialog
for [email protected] - INVITE (With RTP)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Setting NAT on RTP to Off
[Apr  9 14:19:55] DEBUG[25702] acl.c: Found IP address for this socket
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Setting SIP_TRANSPORT_UDP
with address X.X.X.X:5061
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: *** Our native formats are
0x4 (ulaw)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: *** Joint capabilities are
0x4 (ulaw)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: *** Our capabilities are 0x4 (ulaw)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: *** AST_CODEC_CHOOSE
formats are 0x4 (ulaw)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: *** Our preferred formats
from the incoming channel are 0x4 (ulaw)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: This channel will not be
able to handle video.
[Apr  9 14:19:55] DEBUG[25702] channel.c: Not copying variable DIALEDTIME.
[Apr  9 14:19:55] DEBUG[25702] channel.c: Not copying variable ANSWEREDTIME.
[Apr  9 14:19:55] DEBUG[25702] channel.c: Not copying variable DIALEDPEERNAME.
[Apr  9 14:19:55] DEBUG[25702] channel.c: Not copying variable DIALEDPEERNUMBER.
[Apr  9 14:19:55] DEBUG[25702] channel.c: Not copying variable DIALSTATUS.
[Apr  9 14:19:55] DEBUG[25702] channel.c: Not copying variable SIPCALLID.
[Apr  9 14:19:55] DEBUG[25702] channel.c: Not copying variable SIPDOMAIN.
[Apr  9 14:19:55] DEBUG[25702] channel.c: Not copying variable SIPURI.
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Outgoing Call for 999
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Updating call counter for
outgoing call
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: ** Our capability: 0x4
(ulaw) Video flag: False Text flag: False
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: ** Our prefcodec: 0x4 (ulaw)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: -- Done with adding codecs to SDP
[Apr  9 14:19:55] DEBUG[25702] channel.c: Internal timing is disabled
(option_internal_timing=0 chan->timingfd=24)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Done building SDP. Settling
with this capability: 0x4 (ulaw)
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Initializing initreq for
method INVITE - callid [email protected]
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Trying to put 'INVITE sip:'
onto UDP socket destined for X.X.X.X:5060
[Apr  9 14:19:55] VERBOSE[25702] app_dial.c:     -- Called 9...@prov
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Trying to put 'SIP/2.0 180'
onto UDP socket destined for Y.Y.Y.Y:5060
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: (Provisional) Stopping
retransmission (but retaining packet) on
'[email protected]' Request 102: Found
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: SIP response 100 to standard invite
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: (Provisional) Stopping
retransmission (but retaining packet) on
'[email protected]' Request 102: Found
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: SIP response 180 to standard invite
[Apr  9 14:19:55] DEBUG[25702] devicestate.c: No provider found,
checking channel drivers for SIP - prov
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Checking device state for peer prov
[Apr  9 14:19:55] DEBUG[25702] devicestate.c: Changing state for
SIP/prov - state 1 (Not in use)
[Apr  9 14:19:55] DEBUG[25702] devicestate.c: device 'SIP/prov' state '1'
[Apr  9 14:19:55] VERBOSE[25702] app_dial.c:     -- SIP/prov-00000005 is ringing
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: Trying to put 'SIP/2.0 180'
onto UDP socket destined for Y.Y.Y.Y:5060
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: (Provisional) Stopping
retransmission (but retaining packet) on
'[email protected]' Request 102: Found
[Apr  9 14:19:55] DEBUG[25702] chan_sip.c: SIP response 180 to standard invite
[Apr  9 14:19:55] VERBOSE[25702] app_dial.c:     -- SIP/prov-00000005 is ringing

>
> Index: patches/patch-channels_chan_sip_c
> ===================================================================
> RCS file: patches/patch-channels_chan_sip_c
> diff -N patches/patch-channels_chan_sip_c
> --- /dev/null   1 Jan 1970 00:00:00 -0000
> +++ patches/patch-channels_chan_sip_c   9 Apr 2010 10:56:50 -0000
> @@ -0,0 +1,11 @@
> +$OpenBSD$
> +--- channels/chan_sip.c.orig   Wed Mar  3 00:19:57 2010
> ++++ channels/chan_sip.c        Fri Apr  9 11:56:12 2010
> +@@ -3329,6 +3329,7 @@ static struct sip_proxy *proxy_allocate(char *name, ch
> +       proxy->force = force;
> +       ast_copy_string(proxy->name, name, sizeof(proxy->name));
> +       proxy->ip.sin_port = htons(port_str2int(port, STANDARD_SIP_PORT));
> ++      proxy->ip.sin_family = AF_INET;
> +       proxy_update(proxy);
> +       return proxy;
> + }
>

Reply via email to