Outgoing and incoming call test with SPA1001 and Netgear N150 WNR1000 router
Created on 2012-02-17 by David Gómez
Switzernet
This document describes the test performed with a SPA1001 connected to a Netgear N150 WNR1000 router. This router filters the SIP messages modifying them doing impossible that a call could be established.
“Case 0” represents a usual call. The call is originated from the phone connected to the problematic router, as the following figure shows:
U 212.147.8.99:62739 -> 91.121.122.64:5060
INVITE sip:0215500331@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-43ab2d5c.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=53921d9823341457o0.
To: <sip:0215500331@astrad.switzernet.com>.
Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=calling.
Call-ID: 5469b36c-a9d35893@10.0.0.6.
CSeq: 101 INVITE.
Max-Forwards: 70.
Contact: 41215500335 <sip:41215500335@192.168.1.132:5060>.
Expires: 240.
User-Agent: Linksys/SPA1001-3.1.19(SE).
Content-Length: 440.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: x-sipura, replaces.
Content-Type: application/sdp.
.
v=0.
o=- 8848 8848 IN IP4 192.168.1.132.
s=-.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 16426 RTP/AVP 0 2 4 8 18 96 97 98 100 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729a/8000.
a=rtpmap:96 G726-40/8000.
a=rtpmap:97 G726-24/8000.
a=rtpmap:98 G726-16/8000.
a=rtpmap:100 NSE/8000.
a=fmtp:100 192-193.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
U 91.121.122.64:5060 -> 212.147.8.99:62739
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-43ab2d5c;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=53921d9823341457o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as53dbb850.
Call-ID: 5469b36c-a9d35893@10.0.0.6.
CSeq: 101 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Proxy-Authenticate: Digest algorithm=MD5, realm="switzernet", nonce="1f9a92d7".
Content-Length: 0.
U 212.147.8.99:62739 -> 91.121.122.64:5060
ACK sip:0215500331@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-43ab2d5c.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=53921d9823341457o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as53dbb850.
Call-ID: 5469b36c-a9d35893@10.0.0.6.
CSeq: 101 ACK.
Max-Forwards: 70.
Contact: 41215500335 <sip:41215500335@192.168.1.132:5060>.
User-Agent: Linksys/SPA1001-3.1.19(SE).
Content-Length: 0.
U 212.147.8.99:62739 -> 91.121.122.64:5060
INVITE sip:0215500331@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-1af3c4b4.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=53921d9823341457o0.
To: <sip:0215500331@astrad.switzernet.com>.
Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=calling.
Call-ID: 5469b36c-a9d35893@10.0.0.6.
CSeq: 102 INVITE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500335",realm="switzernet",nonce="1f9a92d7",uri="sip:0215500331@astrad.switzernet.com",algorithm=MD5,response="4ed94e872959b026661fdd95277da473".
Contact: 41215500335 <sip:41215500335@192.168.1.132:5060>.
Expires: 240.
User-Agent: Linksys/SPA1001-3.1.19(SE).
Content-Length: 440.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: x-sipura, replaces.
Content-Type: application/sdp.
.
v=0.
o=- 8848 8848 IN IP4 192.168.1.132.
s=-.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 16426 RTP/AVP 0 2 4 8 18 96 97 98 100 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729a/8000.
a=rtpmap:96 G726-40/8000.
a=rtpmap:97 G726-24/8000.
a=rtpmap:98 G726-16/8000.
a=rtpmap:100 NSE/8000.
a=fmtp:100 192-193.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
U 91.121.122.64:5060 -> 212.147.8.99:62739
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-1af3c4b4;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=53921d9823341457o0.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 5469b36c-a9d35893@10.0.0.6.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500331@91.121.122.64>.
Content-Length: 0.
U 91.121.122.64:5060 -> 212.147.8.99:62739
SIP/2.0 183 Session Progress.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-1af3c4b4;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=53921d9823341457o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as586e22a0.
Call-ID: 5469b36c-a9d35893@10.0.0.6.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500331@91.121.122.64>.
Content-Type: application/sdp.
Content-Length: 384.
.
v=0.
o=root 30924 30924 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 22270 RTP/AVP 0 8 18 4 2 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:2 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
U 91.121.122.64:5060 -> 178.198.29.66:1028
INVITE sip:41215500331@192.168.1.40:5060 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK00bf02ed;rport.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as5edaf68a.
To: <sip:41215500331@192.168.1.40:5060>.
Contact: <sip:41215500335@91.121.122.64>.
Call-ID: 64b8e5d02d4a8619763b13575c4005ca@91.121.122.64.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 10:49:53 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
h323-conf-id: 874134066-920866139-764132948-998529789.
Content-Type: application/sdp.
Content-Length: 388.
.
v=0.
o=root 30924 30924 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 10442 RTP/AVP 0 8 18 4 111 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:111 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
U 178.198.29.66:1028 -> 91.121.122.64:5060
SIP/2.0 100 Trying.
To: <sip:41215500331@192.168.1.40:5060>.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as5edaf68a.
Call-ID: 64b8e5d02d4a8619763b13575c4005ca@91.121.122.64.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK00bf02ed.
Server: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
SIP/2.0 180 Ringing.
To: <sip:41215500331@192.168.1.40:5060>;tag=c5055f98e58d6f81i0.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as5edaf68a.
Call-ID: 64b8e5d02d4a8619763b13575c4005ca@91.121.122.64.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK00bf02ed.
Server: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 91.121.122.64:5060 -> 212.147.8.99:62739
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-1af3c4b4;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=53921d9823341457o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as586e22a0.
Call-ID: 5469b36c-a9d35893@10.0.0.6.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500331@91.121.122.64>.
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
SIP/2.0 200 OK.
To: <sip:41215500331@192.168.1.40:5060>;tag=c5055f98e58d6f81i0.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as5edaf68a.
Call-ID: 64b8e5d02d4a8619763b13575c4005ca@91.121.122.64.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK00bf02ed.
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
Server: Linksys/SPA921-5.1.8.
Content-Length: 206.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
.
v=0.
o=- 251834 251834 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16478 RTP/AVP 0 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
U 91.121.122.64:5060 -> 178.198.29.66:1028
ACK sip:41215500331@192.168.1.40:5060 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK35783ad8;rport.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as5edaf68a.
To: <sip:41215500331@192.168.1.40:5060>;tag=c5055f98e58d6f81i0.
Contact: <sip:41215500335@91.121.122.64>.
Call-ID: 64b8e5d02d4a8619763b13575c4005ca@91.121.122.64.
CSeq: 102 ACK.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Content-Length: 0.
U 91.121.122.64:5060 -> 212.147.8.99:62739
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-1af3c4b4;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=53921d9823341457o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as586e22a0.
Call-ID: 5469b36c-a9d35893@10.0.0.6.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500331@91.121.122.64>.
Content-Type: application/sdp.
Content-Length: 384.
.
v=0.
o=root 30924 30925 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 22270 RTP/AVP 0 8 18 4 2 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:2 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
U 91.121.122.64:5060 -> 212.147.8.99:62739
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-1af3c4b4;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=53921d9823341457o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as586e22a0.
Call-ID: 5469b36c-a9d35893@10.0.0.6.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500331@91.121.122.64>.
Content-Type: application/sdp.
Content-Length: 384.
.
v=0.
o=root 30924 30925 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 22270 RTP/AVP 0 8 18 4 2 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:2 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
…
…
U 91.121.122.64:5060 -> 178.198.29.66:1028
BYE sip:41215500331@192.168.1.40:5060 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK1ec715b9;rport.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as5edaf68a.
To: <sip:41215500331@192.168.1.40:5060>;tag=c5055f98e58d6f81i0.
Call-ID: 64b8e5d02d4a8619763b13575c4005ca@91.121.122.64.
CSeq: 103 BYE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
SIP/2.0 200 OK.
To: <sip:41215500331@192.168.1.40:5060>;tag=c5055f98e58d6f81i0.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as5edaf68a.
Call-ID: 64b8e5d02d4a8619763b13575c4005ca@91.121.122.64.
CSeq: 103 BYE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK1ec715b9.
Server: Linksys/SPA921-5.1.8.
Content-Length: 0.
As we can see, once the call is established, the OK from the ASTRAD server doesn’t get an ACK response from the caller phone, so after a period of time without ACK answer the ASTRAD guess that the call could not be established and send a BYE message to the destination phone.
This problem is caused because the router, where the caller phone is connected, filters the OK message that the ASTRAD sends doing impossible the answer for the phone.
We just have seen that the usual scheme doesn’t work because the router and how it filters the SIP messages. Now, we have included a Perl script and a PROXY-SIP server to the scheme in order to fix this problem.
U 212.147.8.99:62739 -> 91.121.122.64:5060
INVITE sip:0215500331@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-5db740d0.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=947c52795c001de8o0.
To: <sip:0215500331@astrad.switzernet.com>.
Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=calling.
Call-ID: f13d868d-627858e4@10.0.0.6.
CSeq: 101 INVITE.
Max-Forwards: 70.
Contact: 41215500335 <sip:41215500335@192.168.1.132:5060>.
Expires: 240.
User-Agent: Linksys/SPA1001-3.1.19(SE).
Content-Length: 442.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: x-sipura, replaces.
Content-Type: application/sdp.
.
v=0.
o=- 17294 17294 IN IP4 192.168.1.132.
s=-.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 16428 RTP/AVP 0 2 4 8 18 96 97 98 100 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729a/8000.
a=rtpmap:96 G726-40/8000.
a=rtpmap:97 G726-24/8000.
a=rtpmap:98 G726-16/8000.
a=rtpmap:100 NSE/8000.
a=fmtp:100 192-193.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
U 91.121.122.64:5060 -> 212.147.8.99:62739
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-5db740d0;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=947c52795c001de8o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as765968d9.
Call-ID: f13d868d-627858e4@10.0.0.6.
CSeq: 101 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Proxy-Authenticate: Digest algorithm=MD5, realm="switzernet", nonce="07667276".
Content-Length: 0.
U 212.147.8.99:62739 -> 91.121.122.64:5060
ACK sip:0215500331@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-5db740d0.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=947c52795c001de8o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as765968d9.
Call-ID: f13d868d-627858e4@10.0.0.6.
CSeq: 101 ACK.
Max-Forwards: 70.
Contact: 41215500335 <sip:41215500335@192.168.1.132:5060>.
User-Agent: Linksys/SPA1001-3.1.19(SE).
Content-Length: 0.
U 212.147.8.99:62739 -> 91.121.122.64:5060
INVITE sip:0215500331@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-ac452060.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=947c52795c001de8o0.
To: <sip:0215500331@astrad.switzernet.com>.
Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=calling.
Call-ID: f13d868d-627858e4@10.0.0.6.
CSeq: 102 INVITE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500335",realm="switzernet",nonce="07667276",uri="sip:0215500331@astrad.switzernet.com",algorithm=MD5,response="1270c7fa0fe3d06a1e28d4d377a0bdca".
Contact: 41215500335 <sip:41215500335@192.168.1.132:5060>.
Expires: 240.
User-Agent: Linksys/SPA1001-3.1.19(SE).
Content-Length: 442.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: x-sipura, replaces.
Content-Type: application/sdp.
.
v=0.
o=- 17294 17294 IN IP4 192.168.1.132.
s=-.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 16428 RTP/AVP 0 2 4 8 18 96 97 98 100 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729a/8000.
a=rtpmap:96 G726-40/8000.
a=rtpmap:97 G726-24/8000.
a=rtpmap:98 G726-16/8000.
a=rtpmap:100 NSE/8000.
a=fmtp:100 192-193.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
U 91.121.122.64:5060 -> 212.147.8.99:62739
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-ac452060;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=947c52795c001de8o0.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: f13d868d-627858e4@10.0.0.6.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500331@91.121.122.64>.
Content-Length: 0.
U 91.121.122.64:5060 -> 212.147.8.99:62739
SIP/2.0 302 Moved Temporarily.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-ac452060;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=947c52795c001de8o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as1b5d6530.
Call-ID: f13d868d-627858e4@10.0.0.6.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: Transfer <sip:0215500331@astproxy.switzernet.com>.
Content-Length: 0.
U 212.147.8.99:62739 -> 91.121.122.64:5060
ACK sip:0215500331@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-ac452060.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=947c52795c001de8o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as1b5d6530.
Call-ID: f13d868d-627858e4@10.0.0.6.
CSeq: 102 ACK.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500335",realm="switzernet",nonce="07667276",uri="sip:0215500331@astrad.switzernet.com",algorithm=MD5,response="dc5012186eb2d0c925a6cbd1bbb88d10".
Contact: 41215500335 <sip:41215500335@192.168.1.132:5060>.
User-Agent: Linksys/SPA1001-3.1.19(SE).
Content-Length: 0.
U 91.121.140.57:5060 -> 91.121.122.64:5060
INVITE sip:0215500331@astrad.switzernet.com SIP/2.0.
Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.
Via: SIP/2.0/UDP 91.121.140.57;branch=z9hG4bK7e3b.809af272.0.
Via: SIP/2.0/UDP 192.168.1.132:5060;rport=62739;received=212.147.8.99;branch=z9hG4bK-854cb960.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=b82d537b56f24118o0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>.
Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=calling.
Call-ID: 1f5bd177-cfb77b4c@10.0.0.6.
CSeq: 101 INVITE.
Max-Forwards: 69.
Contact: 41215500335 <sip:41215500335@212.147.8.99:62739>.
Expires: 240.
User-Agent: Linksys/SPA1001-3.1.19(SE).
Content-Length: 460.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: x-sipura, replaces.
Content-Type: application/sdp.
X-Astrad-Relay: 1.
.
v=0.
o=- 17368 17368 IN IP4 91.121.140.57.
s=-.
c=IN IP4 91.121.140.57.
t=0 0.
m=audio 35444 RTP/AVP 0 2 4 8 18 96 97 98 100 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729a/8000.
a=rtpmap:96 G726-40/8000.
a=rtpmap:97 G726-24/8000.
a=rtpmap:98 G726-16/8000.
a=rtpmap:100 NSE/8000.
a=fmtp:100 192-193.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
a=nortpproxy:yes.
U 91.121.122.64:5060 -> 91.121.140.57:5060
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 91.121.140.57;branch=z9hG4bK7e3b.809af272.0;received=91.121.140.57.
Via: SIP/2.0/UDP 192.168.1.132:5060;rport=62739;received=212.147.8.99;branch=z9hG4bK-854cb960.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=b82d537b56f24118o0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as3b9ab8f4.
Call-ID: 1f5bd177-cfb77b4c@10.0.0.6.
CSeq: 101 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Proxy-Authenticate: Digest algorithm=MD5, realm="switzernet", nonce="6898dfc5".
Content-Length: 0.
U 91.121.140.57:5060 -> 91.121.122.64:5060
ACK sip:0215500331@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 91.121.140.57;branch=z9hG4bK7e3b.809af272.0.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=b82d537b56f24118o0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as3b9ab8f4.
Call-ID: 1f5bd177-cfb77b4c@10.0.0.6.
CSeq: 101 ACK.
Max-Forwards: 69.
Content-Length: 0.
U 91.121.140.57:5060 -> 91.121.122.64:5060
INVITE sip:0215500331@astrad.switzernet.com SIP/2.0.
Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.
Via: SIP/2.0/UDP 91.121.140.57;branch=z9hG4bK4e3b.4f65e364.0.
Via: SIP/2.0/UDP 192.168.1.132:5060;rport=62739;received=212.147.8.99;branch=z9hG4bK-94d96399.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=b82d537b56f24118o0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>.
Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=calling.
Call-ID: 1f5bd177-cfb77b4c@10.0.0.6.
CSeq: 102 INVITE.
Max-Forwards: 69.
Proxy-Authorization: Digest username="41215500335",realm="switzernet",nonce="6898dfc5",uri="sip:0215500331@astproxy.switzernet.com",algorithm=MD5,response="a9b630884b17a7b57582de2286d3cbd4".
Contact: 41215500335 <sip:41215500335@212.147.8.99:62739>.
Expires: 240.
User-Agent: Linksys/SPA1001-3.1.19(SE).
Content-Length: 460.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: x-sipura, replaces.
Content-Type: application/sdp.
X-Astrad-Relay: 1.
.
v=0.
o=- 17368 17368 IN IP4 91.121.140.57.
s=-.
c=IN IP4 91.121.140.57.
t=0 0.
m=audio 35446 RTP/AVP 0 2 4 8 18 96 97 98 100 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729a/8000.
a=rtpmap:96 G726-40/8000.
a=rtpmap:97 G726-24/8000.
a=rtpmap:98 G726-16/8000.
a=rtpmap:100 NSE/8000.
a=fmtp:100 192-193.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendr
Note: this message doesn’t appear on the Wireshark datagram.
U 91.121.122.64:5060 -> 91.121.140.57:5060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 91.121.140.57;branch=z9hG4bK4e3b.4f65e364.0;received=91.121.140.57.
Via: SIP/2.0/UDP 192.168.1.132:5060;rport=62739;received=212.147.8.99;branch=z9hG4bK-94d96399.
Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=b82d537b56f24118o0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>.
Call-ID: 1f5bd177-cfb77b4c@10.0.0.6.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500331@91.121.122.64>.
Content-Length: 0.
U 91.121.122.64:5060 -> 91.121.140.57:5060
SIP/2.0 183 Session Progress.
Via: SIP/2.0/UDP 91.121.140.57;branch=z9hG4bK4e3b.4f65e364.0;received=91.121.140.57.
Via: SIP/2.0/UDP 192.168.1.132:5060;rport=62739;received=212.147.8.99;branch=z9hG4bK-94d96399.
Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=b82d537b56f24118o0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as6d26bffb.
Call-ID: 1f5bd177-cfb77b4c@10.0.0.6.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500331@91.121.122.64>.
Content-Type: application/sdp.
Content-Length: 384.
.
v=0.
o=root 30924 30924 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 19756 RTP/AVP 0 8 18 4 2 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:2 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
U 91.121.122.64:5060 -> 178.198.29.66:1028
INVITE sip:41215500331@192.168.1.40:5060 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK76717405;rport.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as63392fa8.
To: <sip:41215500331@192.168.1.40:5060>.
Contact: <sip:41215500335@91.121.122.64>.
Call-ID: 5aca25065ba72e9416d19eeb5a180158@91.121.122.64.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 10:51:18 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
h323-conf-id: 625636646-1316804791-510793338-1391215120.
Content-Type: application/sdp.
Content-Length: 388.
.
v=0.
o=root 30924 30924 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 11826 RTP/AVP 0 8 18 4 111 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:111 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
U 178.198.29.66:1028 -> 91.121.122.64:5060
SIP/2.0 100 Trying.
To: <sip:41215500331@192.168.1.40:5060>.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as63392fa8.
Call-ID: 5aca25065ba72e9416d19eeb5a180158@91.121.122.64.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK76717405.
Server: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
SIP/2.0 180 Ringing.
To: <sip:41215500331@192.168.1.40:5060>;tag=c10d98559811e73bi0.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as63392fa8.
Call-ID: 5aca25065ba72e9416d19eeb5a180158@91.121.122.64.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK76717405.
Server: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 91.121.122.64:5060 -> 91.121.140.57:5060
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 91.121.140.57;branch=z9hG4bK4e3b.4f65e364.0;received=91.121.140.57.
Via: SIP/2.0/UDP 192.168.1.132:5060;rport=62739;received=212.147.8.99;branch=z9hG4bK-94d96399.
Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=b82d537b56f24118o0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as6d26bffb.
Call-ID: 1f5bd177-cfb77b4c@10.0.0.6.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500331@91.121.122.64>.
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
SIP/2.0 200 OK.
To: <sip:41215500331@192.168.1.40:5060>;tag=c10d98559811e73bi0.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as63392fa8.
Call-ID: 5aca25065ba72e9416d19eeb5a180158@91.121.122.64.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK76717405.
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
Server: Linksys/SPA921-5.1.8.
Content-Length: 206.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
.
v=0.
o=- 260365 260365 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16480 RTP/AVP 0 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
U 91.121.122.64:5060 -> 178.198.29.66:1028
ACK sip:41215500331@192.168.1.40:5060 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK10715e79;rport.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as63392fa8.
To: <sip:41215500331@192.168.1.40:5060>;tag=c10d98559811e73bi0.
Contact: <sip:41215500335@91.121.122.64>.
Call-ID: 5aca25065ba72e9416d19eeb5a180158@91.121.122.64.
CSeq: 102 ACK.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Content-Length: 0.
U 91.121.122.64:5060 -> 91.121.140.57:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 91.121.140.57;branch=z9hG4bK4e3b.4f65e364.0;received=91.121.140.57.
Via: SIP/2.0/UDP 192.168.1.132:5060;rport=62739;received=212.147.8.99;branch=z9hG4bK-94d96399.
Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=b82d537b56f24118o0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as6d26bffb.
Call-ID: 1f5bd177-cfb77b4c@10.0.0.6.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500331@91.121.122.64>.
Content-Type: application/sdp.
Content-Length: 384.
.
v=0.
o=root 30924 30925 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 19756 RTP/AVP 0 8 18 4 2 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:2 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
U 91.121.140.57:5060 -> 91.121.122.64:5060
ACK sip:91.121.122.64 SIP/2.0.
Via: SIP/2.0/UDP 91.121.140.57;branch=z9hG4bKcydzigwkX.
Via: SIP/2.0/UDP 192.168.1.132:5060;rport=62739;received=212.147.8.99;branch=z9hG4bK-3a67e901.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=b82d537b56f24118o0.
To: Transfer <sip:0215500331@astproxy.switzernet.com>;tag=as6d26bffb.
Call-ID: 1f5bd177-cfb77b4c@10.0.0.6.
CSeq: 102 ACK.
Max-Forwards: 69.
Proxy-Authorization: Digest username="41215500335",realm="switzernet",nonce="6898dfc5",uri="sip:91.121.122.64",algorithm=MD5,response="bb830df79016d40b900d8fe36d3f6767".
Contact: 41215500335 <sip:41215500335@212.147.8.99:62739>.
User-Agent: Linksys/SPA1001-3.1.19(SE).
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
BYE sip:41215500335@91.121.122.64 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-c39e6a5a.
From: <sip:41215500331@192.168.1.40:5060>;tag=c10d98559811e73bi0.
To: "41215500335" <sip:41215500335@91.121.122.64>;tag=as63392fa8.
Call-ID: 5aca25065ba72e9416d19eeb5a180158@91.121.122.64.
CSeq: 101 BYE.
Max-Forwards: 70.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-c39e6a5a;received=178.198.29.66.
From: <sip:41215500331@192.168.1.40:5060>;tag=c10d98559811e73bi0.
To: "41215500335" <sip:41215500335@91.121.122.64>;tag=as63392fa8.
Call-ID: 5aca25065ba72e9416d19eeb5a180158@91.121.122.64.
CSeq: 101 BYE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:41215500335@91.121.122.64>.
Content-Length: 0.
U 91.121.122.64:5060 -> 91.121.140.57:5060
BYE sip:41215500335@212.147.8.99:62739 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK1700ce51;rport.
Route: <sip:91.121.140.57;lr=on;nat=yes>.
From: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as6d26bffb.
To: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=b82d537b56f24118o0.
Call-ID: 1f5bd177-cfb77b4c@10.0.0.6.
CSeq: 102 BYE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Content-Length: 0.
U 91.121.140.57:5060 -> 91.121.122.64:5060
SIP/2.0 200 OK.
To: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=b82d537b56f24118o0.
From: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as6d26bffb.
Call-ID: 1f5bd177-cfb77b4c@10.0.0.6.
CSeq: 102 BYE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK1700ce51;rport=5060.
Server: Linksys/SPA1001-3.1.19(SE).
Content-Length: 0.
With this scheme, the outgoing calls works. We can find the differences between “Case 0” and “Case 1” in the following messages:
ASTRAD à Caller phone
U 91.121.122.64:5060 -> 212.147.8.99:62739
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-1af3c4b4;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=53921d9823341457o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as586e22a0.
Call-ID: 5469b36c-a9d35893@10.0.0.6.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
ASTRAD à PROXY-SIP
U 91.121.122.64:5060 -> 91.121.140.57:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 91.121.140.57;branch=z9hG4bK4e3b.4f65e364.0;received=91.121.140.57.
Via: SIP/2.0/UDP 192.168.1.132:5060;rport=62739;received=212.147.8.99;branch=z9hG4bK-94d96399.
Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=b82d537b56f24118o0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as6d26bffb.
Call-ID: 1f5bd177-cfb77b4c@10.0.0.6.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
As we can see, the main differences are in the duplicated Via field as well as in the Record-Route field and in the data that To field has.
This extra-information allows that once the router has filtered the SIP traffic the caller phone could answer with an ACK message.
This case shows the usual scheme for an incoming call. The call is generated to a telephone connected to the problematic router as you can see in the picture:
U 178.198.29.66:1028 -> 91.121.122.64:5060
INVITE sip:0215500335@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-f453576b.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2d0e8d8ea5b27f2bo0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: cfddbb8a-fcec95f@192.168.1.40.
CSeq: 101 INVITE.
Max-Forwards: 70.
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
Expires: 240.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 395.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
.
v=0.
o=- 273634 273634 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16482 RTP/AVP 0 2 4 8 18 96 97 98 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729a/8000.
a=rtpmap:96 G726-40/8000.
a=rtpmap:97 G726-24/8000.
a=rtpmap:98 G726-16/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-f453576b;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2d0e8d8ea5b27f2bo0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as2835ddac.
Call-ID: cfddbb8a-fcec95f@192.168.1.40.
CSeq: 101 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Proxy-Authenticate: Digest algorithm=MD5, realm="switzernet", nonce="3100ef06".
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
ACK sip:0215500335@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-f453576b.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2d0e8d8ea5b27f2bo0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as2835ddac.
Call-ID: cfddbb8a-fcec95f@192.168.1.40.
CSeq: 101 ACK.
Max-Forwards: 70.
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
INVITE sip:0215500335@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-33a6f49f.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2d0e8d8ea5b27f2bo0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: cfddbb8a-fcec95f@192.168.1.40.
CSeq: 102 INVITE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="3100ef06",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="e095eb9ad13f50f43aa9ce9423efb8c7".
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
Expires: 240.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 395.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
.
v=0.
o=- 273634 273634 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16482 RTP/AVP 0 2 4 8 18 96 97 98 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729a/8000.
a=rtpmap:96 G726-40/8000.
a=rtpmap:97 G726-24/8000.
a=rtpmap:98 G726-16/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-33a6f49f;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2d0e8d8ea5b27f2bo0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: cfddbb8a-fcec95f@192.168.1.40.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500335@91.121.122.64>.
Content-Length: 0.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 183 Session Progress.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-33a6f49f;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2d0e8d8ea5b27f2bo0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as01943f89.
Call-ID: cfddbb8a-fcec95f@192.168.1.40.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500335@91.121.122.64>.
Content-Type: application/sdp.
Content-Length: 384.
.
v=0.
o=root 30924 30924 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 22732 RTP/AVP 0 8 18 4 2 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:2 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
U 91.121.122.64:5060 -> 212.147.8.99:62739
INVITE sip:41215500335@212.147.8.99:62739 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK7975586e;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as1070179a.
To: <sip:41215500335@212.147.8.99:62739>.
Contact: <sip:41215500331@91.121.122.64>.
Call-ID: 470841d621fa28e0748de7165f0eda2e@91.121.122.64.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 10:53:33 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
h323-conf-id: 1174516933-411512899-1158464655-992102206.
Content-Type: application/sdp.
Content-Length: 388.
.
v=0.
o=root 30924 30924 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 12504 RTP/AVP 0 8 18 4 111 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:111 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
U 91.121.122.64:5060 -> 212.147.8.99:62739
INVITE sip:41215500335@212.147.8.99:62739 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK7975586e;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as1070179a.
To: <sip:41215500335@212.147.8.99:62739>.
Contact: <sip:41215500331@91.121.122.64>.
Call-ID: 470841d621fa28e0748de7165f0eda2e@91.121.122.64.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 10:53:33 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
h323-conf-id: 1174516933-411512899-1158464655-992102206.
Content-Type: application/sdp.
Content-Length: 388.
.
v=0.
o=root 30924 30924 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 12504 RTP/AVP 0 8 18 4 111 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:111 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
…
…
U 91.121.122.64:5060 -> 212.147.8.99:62739
CANCEL sip:41215500335@212.147.8.99:62739 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK7975586e;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as1070179a.
To: <sip:41215500335@212.147.8.99:62739>.
Call-ID: 470841d621fa28e0748de7165f0eda2e@91.121.122.64.
CSeq: 102 CANCEL.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Content-Length: 0.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 603 Declined.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-33a6f49f;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2d0e8d8ea5b27f2bo0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as01943f89.
Call-ID: cfddbb8a-fcec95f@192.168.1.40.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500335@91.121.122.64>.
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
ACK sip:0215500335@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-33a6f49f.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2d0e8d8ea5b27f2bo0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as01943f89.
Call-ID: cfddbb8a-fcec95f@192.168.1.40.
CSeq: 102 ACK.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="3100ef06",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="e095eb9ad13f50f43aa9ce9423efb8c7".
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 91.121.122.64:5060 -> 212.147.8.99:62739
CANCEL sip:41215500335@212.147.8.99:62739 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK7975586e;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as1070179a.
To: <sip:41215500335@212.147.8.99:62739>.
Call-ID: 470841d621fa28e0748de7165f0eda2e@91.121.122.64.
CSeq: 102 CANCEL.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Content-Length: 0.
U 91.121.122.64:5060 -> 212.147.8.99:62739
CANCEL sip:41215500335@212.147.8.99:62739 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK7975586e;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as1070179a.
To: <sip:41215500335@212.147.8.99:62739>.
Call-ID: 470841d621fa28e0748de7165f0eda2e@91.121.122.64.
CSeq: 102 CANCEL.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Content-Length: 0.
U 91.121.122.64:5060 -> 212.147.8.99:62739
CANCEL sip:41215500335@212.147.8.99:62739 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK7975586e;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as1070179a.
To: <sip:41215500335@212.147.8.99:62739>.
Call-ID: 470841d621fa28e0748de7165f0eda2e@91.121.122.64.
CSeq: 102 CANCEL.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Content-Length: 0.
As we said before, the router filters the SIP traffic modifying the content. As a result, the telephone behind the router is not able to answer the request, in this case INVITE message, breaking the SIP protocol flow and losing the call.
As we have done with the outgoing calls, we try to solve the router problem adding a Perl script and a PROXY-SIP server to the scheme.
U 178.198.29.66:1028 -> 91.121.122.64:5060
INVITE sip:0215500335@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-f99c0d80.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=5bbf626575b47b38o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: b944fa9-3d30cec4@192.168.1.40.
CSeq: 101 INVITE.
Max-Forwards: 70.
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
Expires: 240.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 395.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
.
v=0.
o=- 282586 282586 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16384 RTP/AVP 0 2 4 8 18 96 97 98 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729a/8000.
a=rtpmap:96 G726-40/8000.
a=rtpmap:97 G726-24/8000.
a=rtpmap:98 G726-16/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-f99c0d80;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=5bbf626575b47b38o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as3e2e307f.
Call-ID: b944fa9-3d30cec4@192.168.1.40.
CSeq: 101 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Proxy-Authenticate: Digest algorithm=MD5, realm="switzernet", nonce="75b19a21".
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
ACK sip:0215500335@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-f99c0d80.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=5bbf626575b47b38o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as3e2e307f.
Call-ID: b944fa9-3d30cec4@192.168.1.40.
CSeq: 101 ACK.
Max-Forwards: 70.
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
INVITE sip:0215500335@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-9b0afce8.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=5bbf626575b47b38o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: b944fa9-3d30cec4@192.168.1.40.
CSeq: 102 INVITE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="75b19a21",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="dbb68b534a2b827ee9ac710a4f5fb732".
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
Expires: 240.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 395.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
.
v=0.
o=- 282586 282586 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16384 RTP/AVP 0 2 4 8 18 96 97 98 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729a/8000.
a=rtpmap:96 G726-40/8000.
a=rtpmap:97 G726-24/8000.
a=rtpmap:98 G726-16/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-9b0afce8;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=5bbf626575b47b38o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: b944fa9-3d30cec4@192.168.1.40.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500335@91.121.122.64>.
Content-Length: 0.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 183 Session Progress.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-9b0afce8;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=5bbf626575b47b38o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as306ceb34.
Call-ID: b944fa9-3d30cec4@192.168.1.40.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500335@91.121.122.64>.
Content-Type: application/sdp.
Content-Length: 384.
.
v=0.
o=root 30924 30924 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 21876 RTP/AVP 0 8 18 4 2 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:2 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
U 91.121.122.64:5081 -> 212.147.8.99:62739
INVITE sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-24baefa6123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK24baefa6;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as1072113e.
To: <sip:41215500335@91.121.122.64:5080>.
Contact: <sip:91.121.122.64>.
Call-ID: 4953fc4116b520e207e1465f2d019032@91.121.122.64.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 10:55:03 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
X-Astrad-RPL: 212.147.8.99:62739.
X-Astrad-RP: 1.
X-Astrad-SA: 1.
h323-conf-id: 523633247-386276250-992715332-699195938.
Content-Type: application/sdp.
Content-Length: 388.
.
v=0.
o=root 30924 30924 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 14352 RTP/AVP 0 8 18 4 111 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:111 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
U 212.147.8.99:62739 -> 91.121.122.64:5081
SIP/2.0 100 Trying.
To: <sip:41215500335@91.121.122.64:5080>.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as1072113e.
Call-ID: 4953fc4116b520e207e1465f2d019032@91.121.122.64:5081.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-24baefa6123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK24baefa6;rport.
Server: Linksys/SPA1001-3.1.19(SE).
Content-Length: 0.
Note: this message doesn’t appear on the Wireshark datagram.
U 212.147.8.99:62739 -> 91.121.122.64:5081
SIP/2.0 180 Ringing.
To: <sip:41215500335@91.121.122.64:5080>;tag=40ad98215e13ad6bi0.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as1072113e.
Call-ID: 4953fc4116b520e207e1465f2d019032@91.121.122.64:5081.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-24baefa6123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK24baefa6;rport.
Server: Linksys/SPA1001-3.1.19(SE).
Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=called.
Content-Length: 0.
Note: this message doesn’t appear on the Wireshark datagram.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-9b0afce8;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=5bbf626575b47b38o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as306ceb34.
Call-ID: b944fa9-3d30cec4@192.168.1.40.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500335@91.121.122.64>.
Content-Length: 0.
U 212.147.8.99:62739 -> 91.121.122.64:5081
SIP/2.0 200 OK.
To: <sip:41215500335@91.121.122.64:5080>;tag=40ad98215e13ad6bi0.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as1072113e.
Call-ID: 4953fc4116b520e207e1465f2d019032@91.121.122.64:5081.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-24baefa6123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK24baefa6;rport.
Contact: 41215500335 <sip:41215500335@91.121.122.64:5081>.
Server: Linksys/SPA1001-3.1.19(SE).
Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=called.
Content-Length: 243.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: x-sipura, replaces.
Content-Type: application/sdp.
.
v=0.
o=- 40089 40089 IN IP4 10.0.0.6.
s=-.
c=IN IP4 10.0.0.6.
t=0 0.
m=audio 16430 RTP/AVP 0 100 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:100 NSE/8000.
a=fmtp:100 192-193.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
Note: this message doesn’t appear on the Wireshark datagram.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-9b0afce8;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=5bbf626575b47b38o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as306ceb34.
Call-ID: b944fa9-3d30cec4@192.168.1.40.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500335@91.121.122.64>.
Content-Type: application/sdp.
Content-Length: 384.
.
v=0.
o=root 30924 30925 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 21876 RTP/AVP 0 8 18 4 2 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:2 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
U 91.121.122.64:5081 -> 212.147.8.99:62739
ACK sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-64114fd2123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK64114fd2;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as1072113e.
To: <sip:41215500335@91.121.122.64:5080>;tag=40ad98215e13ad6bi0.
Contact: <sip:91.121.122.64>.
Call-ID: 4953fc4116b520e207e1465f2d019032@91.121.122.64.
CSeq: 102 ACK.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
ACK sip:0215500335@91.121.122.64 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-611c6cac.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=5bbf626575b47b38o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as306ceb34.
Call-ID: b944fa9-3d30cec4@192.168.1.40.
CSeq: 102 ACK.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="75b19a21",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="dbb68b534a2b827ee9ac710a4f5fb732".
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 212.147.8.99:62739 -> 91.121.122.64:5060
BYE sip:91.121.122.64 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-67840f47.
From: <sip:41215500335@91.121.122.64:5080>;tag=40ad98215e13ad6bi0.
To: "41215500331" <sip:41215500331@91.121.122.64>;tag=as1072113e.
Call-ID: 4953fc4116b520e207e1465f2d019032@91.121.122.64:5081.
CSeq: 101 BYE.
Max-Forwards: 70.
User-Agent: Linksys/SPA1001-3.1.19(SE).
Content-Length: 0.
Note: this message doesn’t appear on the Wireshark datagram.
U 91.121.122.64:5060 -> 212.147.8.99:62739
SIP/2.0 481 Call leg/transaction does not exist.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-67840f47;received=212.147.8.99.
From: <sip:41215500335@91.121.122.64:5080>;tag=40ad98215e13ad6bi0.
To: "41215500331" <sip:41215500331@91.121.122.64>;tag=as1072113e.
Call-ID: 4953fc4116b520e207e1465f2d019032@91.121.122.64:5081.
CSeq: 101 BYE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Content-Length: 0.
Note: this message doesn’t appear on the Wireshark datagram.
U 178.198.29.66:1028 -> 91.121.122.64:5060
BYE sip:0215500335@91.121.122.64 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-a08222b9.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=5bbf626575b47b38o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as306ceb34.
Call-ID: b944fa9-3d30cec4@192.168.1.40.
CSeq: 103 BYE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="75b19a21",uri="sip:0215500335@91.121.122.64",algorithm=MD5,response="4146bfea4ad8c87d892875b113f8f734".
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-a08222b9;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=5bbf626575b47b38o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as306ceb34.
Call-ID: b944fa9-3d30cec4@192.168.1.40.
CSeq: 103 BYE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500335@91.121.122.64>.
Content-Length: 0.
U 91.121.122.64:5081 -> 212.147.8.99:62739
BYE sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-787f888b123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK787f888b;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as1072113e.
To: <sip:41215500335@91.121.122.64:5080>;tag=40ad98215e13ad6bi0.
Call-ID: 4953fc4116b520e207e1465f2d019032@91.121.122.64.
CSeq: 103 BYE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Content-Length: 0.
U 212.147.8.99:62739 -> 91.121.122.64:5081
SIP/2.0 481 Call Leg/Transaction Does Not Exist.
To: <sip:41215500335@91.121.122.64:5080>;tag=40ad98215e13ad6bi0.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as1072113e.
Call-ID: 4953fc4116b520e207e1465f2d019032@91.121.122.64.
CSeq: 103 BYE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-787f888b123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK787f888b;rport.
Server: Linksys/SPA1001-3.1.19(SE).
Content-Length: 0.
As consequence of the treatment that the router performs over the SIP traffic, we have now the following situation:
· Message that arrives from the ASTRAD server to the destination phone, for example, INVITE:
Call-ID: 4953fc4116b520e207e1465f2d019032@91.121.122.64.
· Messages that the destination phone answers to the SIP server (TRYING and RINGING):
Call-ID: 4953fc4116b520e207e1465f2d019032@91.121.122.64:5081.
We can see that the router adds the port number at the end of the Call-ID. This cause that when the message reaches the SIP server, it is understood as a different call and the ASTRAD server doesn’t consider it as an answer to the previous request message.
Trying to solve the problem that we have with incoming calls in “Case 1”, we use another Perl script configuration.
U 178.198.29.66:1028 -> 91.121.122.64:5060
INVITE sip:0215500335@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-2355b263.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2ce405683a32e72o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: c60d120-ff2a161a@192.168.1.40.
CSeq: 101 INVITE.
Max-Forwards: 70.
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
Expires: 240.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 395.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
.
v=0.
o=- 295483 295483 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16386 RTP/AVP 0 2 4 8 18 96 97 98 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729a/8000.
a=rtpmap:96 G726-40/8000.
a=rtpmap:97 G726-24/8000.
a=rtpmap:98 G726-16/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-2355b263;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2ce405683a32e72o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as386368a5.
Call-ID: c60d120-ff2a161a@192.168.1.40.
CSeq: 101 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Proxy-Authenticate: Digest algorithm=MD5, realm="switzernet", nonce="1ae28e10".
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
ACK sip:0215500335@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-2355b263.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2ce405683a32e72o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as386368a5.
Call-ID: c60d120-ff2a161a@192.168.1.40.
CSeq: 101 ACK.
Max-Forwards: 70.
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
INVITE sip:0215500335@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-1b40c238.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2ce405683a32e72o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: c60d120-ff2a161a@192.168.1.40.
CSeq: 102 INVITE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="1ae28e10",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="d735dae06a8c287ef77ec7b6065e6823".
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
Expires: 240.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 395.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
.
v=0.
o=- 295483 295483 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16386 RTP/AVP 0 2 4 8 18 96 97 98 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729a/8000.
a=rtpmap:96 G726-40/8000.
a=rtpmap:97 G726-24/8000.
a=rtpmap:98 G726-16/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-1b40c238;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2ce405683a32e72o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: c60d120-ff2a161a@192.168.1.40.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500335@91.121.122.64>.
Content-Length: 0.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 183 Session Progress.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-1b40c238;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2ce405683a32e72o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as1a55f7d2.
Call-ID: c60d120-ff2a161a@192.168.1.40.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500335@91.121.122.64>.
Content-Type: application/sdp.
Content-Length: 384.
.
v=0.
o=root 30924 30924 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 21284 RTP/AVP 0 8 18 4 2 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:2 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
U 91.121.122.64:5060 -> 212.147.8.99:62739
INVITE sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-586d1d07123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK586d1d07;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as3730b746.
To: <sip:41215500335@91.121.122.64:5080>.
Contact: <sip:91.121.122.64>.
Call-ID: 398ac09819ffa59a29ce5c6e127ba01e@91.121.122.64:5081
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 10:57:12 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
X-Astrad-RPL: 212.147.8.99:62739.
X-Astrad-RP: 1.
X-Astrad-SA: 2.
h323-conf-id: 1859935200-401118528-370583092-1434973912.
Content-Type: application/sdp.
Content-Length: 387.
.
v=0.
o=root 30924 30924 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 9826 RTP/AVP 0 8 18 4 111 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:111 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
U 212.147.8.99:62739 -> 91.121.122.64:5081
SIP/2.0 100 Trying.
To: <sip:41215500335@91.121.122.64:5080>.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as3730b746.
Call-ID: 398ac09819ffa59a29ce5c6e127ba01e@91.121.122.64:5081.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-586d1d07123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK586d1d07;rport.
Server: Linksys/SPA1001-3.1.19(SE).
Content-Length: 0.
U 212.147.8.99:62739 -> 91.121.122.64:5081
SIP/2.0 180 Ringing.
To: <sip:41215500335@91.121.122.64:5080>;tag=606e92382821d48di0.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as3730b746.
Call-ID: 398ac09819ffa59a29ce5c6e127ba01e@91.121.122.64:5081.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-586d1d07123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK586d1d07;rport.
Server: Linksys/SPA1001-3.1.19(SE).
Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=called.
Content-Length: 0.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-1b40c238;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2ce405683a32e72o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as1a55f7d2.
Call-ID: c60d120-ff2a161a@192.168.1.40.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500335@91.121.122.64>.
Content-Length: 0.
U 212.147.8.99:62739 -> 91.121.122.64:5081
SIP/2.0 200 OK.
To: <sip:41215500335@91.121.122.64:5080>;tag=606e92382821d48di0.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as3730b746.
Call-ID: 398ac09819ffa59a29ce5c6e127ba01e@91.121.122.64:5081.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-586d1d07123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK586d1d07;rport.
Contact: 41215500335 <sip:41215500335@91.121.122.64:5081>.
Server: Linksys/SPA1001-3.1.19(SE).
Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=called.
Content-Length: 243.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: x-sipura, replaces.
Content-Type: application/sdp.
.
v=0.
o=- 52966 52966 IN IP4 10.0.0.6.
s=-.
c=IN IP4 10.0.0.6.
t=0 0.
m=audio 16432 RTP/AVP 0 100 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:100 NSE/8000.
a=fmtp:100 192-193.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:30.
a=sendrecv.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-1b40c238;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2ce405683a32e72o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as1a55f7d2.
Call-ID: c60d120-ff2a161a@192.168.1.40.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500335@91.121.122.64>.
Content-Type: application/sdp.
Content-Length: 384.
.
v=0.
o=root 30924 30925 IN IP4 91.121.122.64.
s=session.
c=IN IP4 91.121.122.64.
t=0 0.
m=audio 21284 RTP/AVP 0 8 18 4 2 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=fmtp:4 annexa=no.
a=rtpmap:2 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
a=ptime:20.
a=sendrecv.
U 91.121.122.64:5060 -> 212.147.8.99:62739
ACK sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-39204e4d123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK39204e4d;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as3730b746.
To: <sip:41215500335@91.121.122.64:5080>;tag=606e92382821d48di0.
Contact: <sip:91.121.122.64>.
Call-ID: 398ac09819ffa59a29ce5c6e127ba01e@91.121.122.64:5081
CSeq: 102 ACK.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
ACK sip:0215500335@91.121.122.64 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-87f9197a.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2ce405683a32e72o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as1a55f7d2.
Call-ID: c60d120-ff2a161a@192.168.1.40.
CSeq: 102 ACK.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="1ae28e10",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="d735dae06a8c287ef77ec7b6065e6823".
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 212.147.8.99:62739 -> 91.121.122.64:5060
BYE sip:91.121.122.64 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-12ca08d8.
From: <sip:41215500335@91.121.122.64:5080>;tag=606e92382821d48di0.
To: "41215500331" <sip:41215500331@91.121.122.64>;tag=as3730b746.
Call-ID: 398ac09819ffa59a29ce5c6e127ba01e@91.121.122.64:5081.
CSeq: 101 BYE.
Max-Forwards: 70.
User-Agent: Linksys/SPA1001-3.1.19(SE).
Content-Length: 0.
U 91.121.122.64:5060 -> 212.147.8.99:62739
SIP/2.0 481 Call leg/transaction does not exist.
Via: SIP/2.0/UDP 192.168.1.132:5060;branch=z9hG4bK-12ca08d8;received=212.147.8.99.
From: <sip:41215500335@91.121.122.64:5080>;tag=606e92382821d48di0.
To: "41215500331" <sip:41215500331@91.121.122.64>;tag=as3730b746.
Call-ID: 398ac09819ffa59a29ce5c6e127ba01e@91.121.122.64:5081.
CSeq: 101 BYE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Content-Length: 0.
U 178.198.29.66:1028 -> 91.121.122.64:5060
BYE sip:0215500335@91.121.122.64 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-25d4d032.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2ce405683a32e72o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as1a55f7d2.
Call-ID: c60d120-ff2a161a@192.168.1.40.
CSeq: 103 BYE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="1ae28e10",uri="sip:0215500335@91.121.122.64",algorithm=MD5,response="f81acdd9509de0db3d5690854b58b630".
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 91.121.122.64:5060 -> 178.198.29.66:1028
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-25d4d032;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=2ce405683a32e72o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as1a55f7d2.
Call-ID: c60d120-ff2a161a@192.168.1.40.
CSeq: 103 BYE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:0215500335@91.121.122.64>.
Content-Length: 0.
U 91.121.122.64:5060 -> 212.147.8.99:62739
BYE sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-692d4406123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK692d4406;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as3730b746.
To: <sip:41215500335@91.121.122.64:5080>;tag=606e92382821d48di0.
Call-ID: 398ac09819ffa59a29ce5c6e127ba01e@91.121.122.64.
CSeq: 103 BYE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Content-Length: 0.
Note: this message doesn’t appear on the Wireshark datagram.
U 212.147.8.99:62739 -> 91.121.122.64:5081
SIP/2.0 481 Call Leg/Transaction Does Not Exist.
To: <sip:41215500335@91.121.122.64:5080>;tag=606e92382821d48di0.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as3730b746.
Call-ID: 398ac09819ffa59a29ce5c6e127ba01e@91.121.122.64.
CSeq: 103 BYE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-692d4406123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK692d4406;rport.
Server: Linksys/SPA1001-3.1.19(SE).
Content-Length: 0.
Note: this message doesn’t appear on the Wireshark datagram.
With this scheme the incoming calls works fine. Now, the messages that send both ASTRAD server and destination phone have the same Call-ID and solve the problem we had with the last scheme.
Note that the BYE message that sends the destination phone is answered with a 481 Call Leg/Transaction Does Not Exist from the ASTRAD server. This means that the call doesn’t finish properly, or in other words, when the destination phone hung up the caller won’t have notice of it and the call will continue active (this behavior is fixed with the new Perl script version).