In case there is any interrest, here’s the debug log when enabling sip debug on discount-out:
[code] – Accepting AUTHENTICATED call from 81.171.14.12, requested format = 2, actual format = 2
– Executing Dial(“IAX2/test@test/2”, “SIP/0031619620839@discount-out”) in new stack
We’re at 192.168.3.222 port 17352
Answering/Requesting with root capability 0x2 (gsm)
Answering with capability 0x4 (ulaw)
Answering with capability 0x8 (alaw)
Answering with non-codec capability 0x1 (telephone-event)
12 headers, 12 lines
Reliably Transmitting:
INVITE sip:0031619620839@sip.sipdiscount.com SIP/2.0
Via: SIP/2.0/UDP 192.168.3.222:5060;branch=z9hG4bK0d5f75fd;rport
From: “diax0.9.15a” sip:ewaldb@192.168.3.222;tag=as0074d1c4
To: sip:0031619620839@sip.sipdiscount.com
Contact: sip:ewaldb@192.168.3.222
Call-ID: 2b9ca49a5beeb53460ac36237e1eae31@192.168.3.222
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Date: Fri, 14 Oct 2005 13:40:32 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Content-Type: application/sdp
Content-Length: 263
v=0
o=root 2731 2731 IN IP4 192.168.3.222
s=session
c=IN IP4 192.168.3.222
t=0 0
m=audio 17352 RTP/AVP 3 0 8 101
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
(NAT) to 213.61.187.147:5060
– Called 0031619620839@discount-out
Sip read:
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.3.222:5060;branch=z9hG4bK0d5f75fd;received=217.119.224.127;rport=5060
From: “diax0.9.15a” sip:ewaldb@192.168.3.222;tag=as0074d1c4
To: sip:0031619620839@sip.sipdiscount.com;tag=as529f5b3b
Call-ID: 2b9ca49a5beeb53460ac36237e1eae31@192.168.3.222
CSeq: 103 INVITE
User-Agent: SipProxy
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY
Contact: sip:0031619620839@213.61.187.147
Content-Length: 0
10 headers, 0 lines
Sip read:
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.3.222:5060;branch=z9hG4bK03ad6cfc;received=217.119.224.127;rport=5060
From: “diax0.9.15a” sip:ewaldb@192.168.3.222;tag=as0074d1c4
To: sip:0031619620839@sip.sipdiscount.com;tag=as53cf7943
Call-ID: 2b9ca49a5beeb53460ac36237e1eae31@192.168.3.222
CSeq: 103 INVITE
User-Agent: SipProxy
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY
Contact: sip:0031619620839@213.61.187.147
Content-Type: application/sdp
Content-Length: 475
v=0
o=root 18130 18130 IN IP4 213.61.187.147
s=session
c=IN IP4 213.61.187.147
t=0 0
m=audio 51246 RTP/AVP 4 3 0 8 111 5 10 7 18 110 97 101
a=rtpmap:4 G723/8000
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:111 G726-32/8000
a=rtpmap:5 DVI4/8000
a=rtpmap:10 L16/8000
a=rtpmap:7 LPC/8000
a=rtpmap:18 G729/8000
a=rtpmap:110 speex/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
11 headers, 20 lines
Found RTP audio format 4
Found RTP audio format 3
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 111
Found RTP audio format 5
Found RTP audio format 10
Found RTP audio format 7
Found RTP audio format 18
Found RTP audio format 110
Found RTP audio format 97
Found RTP audio format 101
Peer audio RTP is at port 213.61.187.147:51246
Found description format G723
Found description format GSM
Found description format PCMU
Found description format PCMA
Found description format G726-32
Found description format DVI4
Found description format L16
Found description format LPC
Found description format G729
Found description format speex
Found description format iLBC
Found description format telephone-event
Capabilities: us - 0x8000e (gsm|ulaw|alaw|h263), peer - audio=0x7ff (g723|gsm|ulaw|alaw|g726|adpcm|slin|lpc10|g729|speex|ilbc)/video=0x0 (nothing), combined - 0xe (gsm|ulaw|alaw)
Non-codec capabilities: us - 0x1 (g723), peer - 0x1 (g723), combined - 0x1 (g723)
– SIP/discount-out-4ebf is making progress passing it to IAX2/test@test/2
Sip read:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.3.222:5060;branch=z9hG4bK557d9c88;received=217.119.224.127;rport=5060
From: “diax0.9.15a” sip:ewaldb@192.168.3.222;tag=as5e005afe
To: sip:0031619620839@sip.sipdiscount.com;tag=as1fe28d26
Call-ID: 568cec3a5ec197716751277913188433@192.168.3.222
CSeq: 103 INVITE
User-Agent: SipProxy
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY
Contact: sip:0031619620839@213.61.187.147
Content-Type: application/sdp
Content-Length: 475
v=0
o=root 18130 18131 IN IP4 213.61.187.147
s=session
c=IN IP4 213.61.187.147
t=0 0
m=audio 53444 RTP/AVP 4 3 0 8 111 5 10 7 18 110 97 101
a=rtpmap:4 G723/8000
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:111 G726-32/8000
a=rtpmap:5 DVI4/8000
a=rtpmap:10 L16/8000
a=rtpmap:7 LPC/8000
a=rtpmap:18 G729/8000
a=rtpmap:110 speex/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
11 headers, 20 lines
Found RTP audio format 4
Found RTP audio format 3
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 111
Found RTP audio format 5
Found RTP audio format 10
Found RTP audio format 7
Found RTP audio format 18
Found RTP audio format 110
Found RTP audio format 97
Found RTP audio format 101
Peer audio RTP is at port 213.61.187.147:53444
Found description format G723
Found description format GSM
Found description format PCMU
Found description format PCMA
Found description format G726-32
Found description format DVI4
Found description format L16
Found description format LPC
Found description format G729
Found description format speex
Found description format iLBC
Found description format telephone-event
Capabilities: us - 0x8000e (gsm|ulaw|alaw|h263), peer - audio=0x7ff (g723|gsm|ulaw|alaw|g726|adpcm|slin|lpc10|g729|speex|ilbc)/video=0x0 (nothing), combined - 0xe (gsm|ulaw|alaw)
Non-codec capabilities: us - 0x1 (g723), peer - 0x1 (g723), combined - 0x1 (g723)
list_route: hop: sip:0031619620839@213.61.187.147
set_destination: Parsing sip:0031619620839@213.61.187.147 for address/port to send to
set_destination: set destination to 213.61.187.147, port 5060
Transmitting:
ACK sip:0031619620839@sip.sipdiscount.com SIP/2.0
Via: SIP/2.0/UDP 192.168.3.222:5060;branch=z9hG4bK519dfa68;rport
From: “diax0.9.15a” sip:ewaldb@192.168.3.222;tag=as5e005afe
To: sip:0031619620839@sip.sipdiscount.com;tag=as1fe28d26
Contact: sip:ewaldb@192.168.3.222
Call-ID: 568cec3a5ec197716751277913188433@192.168.3.222
CSeq: 103 ACK
User-Agent: Asterisk PBX
Content-Length: 0
(NAT) to 213.61.187.147:5060
– SIP/discount-out-e104 answered IAX2/test@test/4
Sip read:
INVITE sip:ewaldb@192.168.3.222 SIP/2.0
Via: SIP/2.0/UDP 213.61.187.147:5060;branch=z9hG4bK31eea9c8;rport
From: sip:0031619620839@sip.sipdiscount.com;tag=as1fe28d26
To: “diax0.9.15a” sip:ewaldb@192.168.3.222;tag=as5e005afe
Contact: sip:0031619620839@213.61.187.147
Call-ID: 568cec3a5ec197716751277913188433@192.168.3.222
CSeq: 102 INVITE
User-Agent: SipProxy
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY
Content-Type: application/sdp
Content-Length: 220
v=0
o=root 18130 18132 IN IP4 213.61.187.133
s=session
c=IN IP4 213.61.187.133
t=0 0
m=audio 19120 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
11 headers, 10 lines
Using latest request as basis request
Sending to 213.61.187.147 : 5060 (NAT)
Found RTP audio format 0
Found RTP audio format 101
Peer audio RTP is at port 213.61.187.133:19120
Found description format PCMU
Found description format telephone-event
Capabilities: us - 0x8000e (gsm|ulaw|alaw|h263), peer - audio=0x4 (ulaw)/video=0x0 (nothing), combined - 0x4 (ulaw)
Non-codec capabilities: us - 0x1 (g723), peer - 0x1 (g723), combined - 0x1 (g723)
We’re at 192.168.3.222 port 19942
Answering/Requesting with root capability 0x2 (gsm)
Answering with capability 0x4 (ulaw)
Answering with capability 0x8 (alaw)
Answering with non-codec capability 0x1 (telephone-event)
Reliably Transmitting (NAT):
SIP/2.0 200 OK
Via: SIP/2.0/UDP 213.61.187.147:5060;branch=z9hG4bK31eea9c8;received=213.61.187.147;rport=5060
From: sip:0031619620839@sip.sipdiscount.com;tag=as1fe28d26
To: “diax0.9.15a” sip:ewaldb@192.168.3.222;tag=as5e005afe
Call-ID: 568cec3a5ec197716751277913188433@192.168.3.222
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: sip:ewaldb@192.168.3.222
Content-Type: application/sdp
Content-Length: 263
v=0
o=root 2731 2733 IN IP4 192.168.3.222
s=session
c=IN IP4 192.168.3.222
t=0 0
m=audio 19942 RTP/AVP 3 0 8 101
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
to 213.61.187.147:5060
Sip read:
ACK sip:ewaldb@192.168.3.222 SIP/2.0
Via: SIP/2.0/UDP 213.61.187.147:5060;branch=z9hG4bK7a893672;rport
From: sip:0031619620839@sip.sipdiscount.com;tag=as1fe28d26
To: “diax0.9.15a” sip:ewaldb@192.168.3.222;tag=as5e005afe
Contact: sip:0031619620839@213.61.187.147
Call-ID: 568cec3a5ec197716751277913188433@192.168.3.222
CSeq: 102 ACK
User-Agent: SipProxy
Content-Length: 0
9 headers, 0 lines
– Registered ‘test’ (AUTHENTICATED) at 81.171.14.12:4569[/code]