Outgoing and incoming call test with PAP2 and Netgear N150 WNR1000 router
Created on 2012-02-22 by David Gómez
Switzernet
This document describes the test performed with a PAP2 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:64981 -> 91.121.122.64:5060
INVITE sip:0215500331@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-dc5164eb.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=40d973e61ecf955o0.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 131c9ffa-e40b9c51@10.0.0.7.
CSeq: 101 INVITE.
Max-Forwards: 70.
Contact: 41215500335 <sip:41215500335@192.168.1.132:49156>.
Expires: 240.
User-Agent: Linksys/PAP2-3.1.22(LS).
Content-Length: 440.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: x-sipura, replaces.
Content-Type: application/sdp.
.
v=0.
o=- 6532 6532 IN IP4 192.168.1.132.
s=-.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 16398 RTP/AVP 18 0 2 4 8 96 97 98 100 101.
a=rtpmap:18 G729a/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/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:64981
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-dc5164eb;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=40d973e61ecf955o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as32ded9b1.
Call-ID: 131c9ffa-e40b9c51@10.0.0.7.
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="5a4c3a18".
Content-Length: 0.
U 212.147.8.99:64981 -> 91.121.122.64:5060
ACK sip:0215500331@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-dc5164eb.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=40d973e61ecf955o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as32ded9b1.
Call-ID: 131c9ffa-e40b9c51@10.0.0.7.
CSeq: 101 ACK.
Max-Forwards: 70.
Contact: 41215500335 <sip:41215500335@192.168.1.132:49156>.
User-Agent: Linksys/PAP2-3.1.22(LS).
Content-Length: 0.
U 212.147.8.99:64981 -> 91.121.122.64:5060
INVITE sip:0215500331@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-54da2eab.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=40d973e61ecf955o0.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 131c9ffa-e40b9c51@10.0.0.7.
CSeq: 102 INVITE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500335",realm="switzernet",nonce="5a4c3a18",uri="sip:0215500331@astrad.switzernet.com",algorithm=MD5,response="63cd9ee322a3b573508c6ec1cdec9ed5".
Contact: 41215500335 <sip:41215500335@192.168.1.132:49156>.
Expires: 240.
User-Agent: Linksys/PAP2-3.1.22(LS).
Content-Length: 440.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: x-sipura, replaces.
Content-Type: application/sdp.
.
v=0.
o=- 6532 6532 IN IP4 192.168.1.132.
s=-.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 16398 RTP/AVP 18 0 2 4 8 96 97 98 100 101.
a=rtpmap:18 G729a/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/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:64981
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-54da2eab;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=40d973e61ecf955o0.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 131c9ffa-e40b9c51@10.0.0.7.
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:64981
SIP/2.0 183 Session Progress.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-54da2eab;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=40d973e61ecf955o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as0bee8e37.
Call-ID: 131c9ffa-e40b9c51@10.0.0.7.
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 27846 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@178.198.29.66:1028 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK1767749a;rport.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as33f02d49.
To: <sip:41215500331@178.198.29.66:1028>.
Contact: <sip:41215500335@91.121.122.64>.
Call-ID: 3ab458362e8f8c405bf9468f7fbed702@91.121.122.64.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 11:14:57 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
h323-conf-id: 1163606312-1863053071-1627193813-580016109.
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 18846 RTP/AVP 18 0 8 4 111 101.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
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@178.198.29.66:1028>.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as33f02d49.
Call-ID: 3ab458362e8f8c405bf9468f7fbed702@91.121.122.64.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK1767749a.
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@178.198.29.66:1028>;tag=f8dabd54c3f59895i0.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as33f02d49.
Call-ID: 3ab458362e8f8c405bf9468f7fbed702@91.121.122.64.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK1767749a.
Server: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 91.121.122.64:5060 -> 212.147.8.99:64981
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-54da2eab;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=40d973e61ecf955o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as0bee8e37.
Call-ID: 131c9ffa-e40b9c51@10.0.0.7.
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@178.198.29.66:1028>;tag=f8dabd54c3f59895i0.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as33f02d49.
Call-ID: 3ab458362e8f8c405bf9468f7fbed702@91.121.122.64.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK1767749a.
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=- 402266 402266 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16396 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=z9hG4bK29bb7aac;rport.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as33f02d49.
To: <sip:41215500331@178.198.29.66:1028>;tag=f8dabd54c3f59895i0.
Contact: <sip:41215500335@91.121.122.64>.
Call-ID: 3ab458362e8f8c405bf9468f7fbed702@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:64981
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-54da2eab;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=40d973e61ecf955o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as0bee8e37.
Call-ID: 131c9ffa-e40b9c51@10.0.0.7.
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 27846 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:64981
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-54da2eab;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=40d973e61ecf955o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as0bee8e37.
Call-ID: 131c9ffa-e40b9c51@10.0.0.7.
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 27846 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=z9hG4bK089052b4;rport.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as33f02d49.
To: <sip:41215500331@178.198.29.66:1028>;tag=f8dabd54c3f59895i0.
Call-ID: 3ab458362e8f8c405bf9468f7fbed702@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@178.198.29.66:1028>;tag=f8dabd54c3f59895i0.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as33f02d49.
Call-ID: 3ab458362e8f8c405bf9468f7fbed702@91.121.122.64.
CSeq: 103 BYE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK089052b4.
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:64981 -> 91.121.122.64:5060
INVITE sip:0215500331@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-80e22713.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=91fcfec7e4dfa8f3o0.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 3e278257-f6047aa3@10.0.0.7.
CSeq: 101 INVITE.
Max-Forwards: 70.
Contact: 41215500335 <sip:41215500335@192.168.1.132:49156>.
Expires: 240.
User-Agent: Linksys/PAP2-3.1.22(LS).
Content-Length: 442.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: x-sipura, replaces.
Content-Type: application/sdp.
.
v=0.
o=- 16015 16015 IN IP4 192.168.1.132.
s=-.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 16400 RTP/AVP 18 0 2 4 8 96 97 98 100 101.
a=rtpmap:18 G729a/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/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:64981
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-80e22713;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=91fcfec7e4dfa8f3o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as3e5ca6b8.
Call-ID: 3e278257-f6047aa3@10.0.0.7.
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="3b7ed33d".
Content-Length: 0.
U 212.147.8.99:64981 -> 91.121.122.64:5060
ACK sip:0215500331@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-80e22713.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=91fcfec7e4dfa8f3o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as3e5ca6b8.
Call-ID: 3e278257-f6047aa3@10.0.0.7.
CSeq: 101 ACK.
Max-Forwards: 70.
Contact: 41215500335 <sip:41215500335@192.168.1.132:49156>.
User-Agent: Linksys/PAP2-3.1.22(LS).
Content-Length: 0.
U 212.147.8.99:64981 -> 91.121.122.64:5060
INVITE sip:0215500331@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-afc6a68f.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=91fcfec7e4dfa8f3o0.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 3e278257-f6047aa3@10.0.0.7.
CSeq: 102 INVITE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500335",realm="switzernet",nonce="3b7ed33d",uri="sip:0215500331@astrad.switzernet.com",algorithm=MD5,response="0000ff45fa0e82a0b45637712421fdad".
Contact: 41215500335 <sip:41215500335@192.168.1.132:49156>.
Expires: 240.
User-Agent: Linksys/PAP2-3.1.22(LS).
Content-Length: 442.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: x-sipura, replaces.
Content-Type: application/sdp.
.
v=0.
o=- 16015 16015 IN IP4 192.168.1.132.
s=-.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 16400 RTP/AVP 18 0 2 4 8 96 97 98 100 101.
a=rtpmap:18 G729a/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/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:64981
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-afc6a68f;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=91fcfec7e4dfa8f3o0.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 3e278257-f6047aa3@10.0.0.7.
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:64981
SIP/2.0 302 Moved Temporarily.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-afc6a68f;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=91fcfec7e4dfa8f3o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as42df3fee.
Call-ID: 3e278257-f6047aa3@10.0.0.7.
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:64981 -> 91.121.122.64:5060
ACK sip:0215500331@astrad.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-afc6a68f.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=91fcfec7e4dfa8f3o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as42df3fee.
Call-ID: 3e278257-f6047aa3@10.0.0.7.
CSeq: 102 ACK.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500335",realm="switzernet",nonce="3b7ed33d",uri="sip:0215500331@astrad.switzernet.com",algorithm=MD5,response="0000ff45fa0e82a0b45637712421fdad".
Contact: 41215500335 <sip:41215500335@192.168.1.132:49156>.
User-Agent: Linksys/PAP2-3.1.22(LS).
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=z9hG4bKb469.666680c6.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;rport=64981;received=212.147.8.99;branch=z9hG4bK-564f09f1.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a88751bd2d6d82bfo0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>.
Call-ID: 87d8e415-df55447@10.0.0.7.
CSeq: 101 INVITE.
Max-Forwards: 69.
Contact: 41215500335 <sip:41215500335@212.147.8.99:64981>.
Expires: 240.
User-Agent: Linksys/PAP2-3.1.22(LS).
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=- 16089 16089 IN IP4 91.121.140.57.
s=-.
c=IN IP4 91.121.140.57.
t=0 0.
m=audio 35450 RTP/AVP 18 0 2 4 8 96 97 98 100 101.
a=rtpmap:18 G729a/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/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=z9hG4bKb469.666680c6.0;received=91.121.140.57.
Via: SIP/2.0/UDP 192.168.1.132:49156;rport=64981;received=212.147.8.99;branch=z9hG4bK-564f09f1.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a88751bd2d6d82bfo0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as552e9b94.
Call-ID: 87d8e415-df55447@10.0.0.7.
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="0605c9ef".
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=z9hG4bKb469.666680c6.0.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a88751bd2d6d82bfo0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as552e9b94.
Call-ID: 87d8e415-df55447@10.0.0.7.
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=z9hG4bK8469.f4a757a5.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;rport=64981;received=212.147.8.99;branch=z9hG4bK-b152678d.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a88751bd2d6d82bfo0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>.
Call-ID: 87d8e415-df55447@10.0.0.7.
CSeq: 102 INVITE.
Max-Forwards: 69.
Proxy-Authorization: Digest username="41215500335",realm="switzernet",nonce="0605c9ef",uri="sip:0215500331@astproxy.switzernet.com",algorithm=MD5,response="dc93ab87ef2ce882d65dbefea22d67d4".
Contact: 41215500335 <sip:41215500335@212.147.8.99:64981>.
Expires: 240.
User-Agent: Linksys/PAP2-3.1.22(LS).
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=- 16089 16089 IN IP4 91.121.140.57.
s=-.
c=IN IP4 91.121.140.57.
t=0 0.
m=audio 35452 RTP/AVP 18 0 2 4 8 96 97 98 100 101.
a=rtpmap:18 G729a/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:4 G723/8000.
a=rtpmap:8 PCMA/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 100 Trying.
Via: SIP/2.0/UDP 91.121.140.57;branch=z9hG4bK8469.f4a757a5.0;received=91.121.140.57.
Via: SIP/2.0/UDP 192.168.1.132:49156;rport=64981;received=212.147.8.99;branch=z9hG4bK-b152678d.
Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a88751bd2d6d82bfo0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>.
Call-ID: 87d8e415-df55447@10.0.0.7.
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=z9hG4bK8469.f4a757a5.0;received=91.121.140.57.
Via: SIP/2.0/UDP 192.168.1.132:49156;rport=64981;received=212.147.8.99;branch=z9hG4bK-b152678d.
Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a88751bd2d6d82bfo0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as31da5899.
Call-ID: 87d8e415-df55447@10.0.0.7.
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 14884 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=z9hG4bK1923b5fa;rport.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as7e6c67d0.
To: <sip:41215500331@192.168.1.40:5060>.
Contact: <sip:41215500335@91.121.122.64>.
Call-ID: 34b637d828c84fb9602ee9920eda32ad@91.121.122.64.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 11:16:33 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
h323-conf-id: 1753651873-466104970-1805011041-476895251.
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 7622 RTP/AVP 18 0 8 4 111 101.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
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=as7e6c67d0.
Call-ID: 34b637d828c84fb9602ee9920eda32ad@91.121.122.64.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK1923b5fa.
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=2a552a96b2b3619bi0.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as7e6c67d0.
Call-ID: 34b637d828c84fb9602ee9920eda32ad@91.121.122.64.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK1923b5fa.
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=z9hG4bK8469.f4a757a5.0;received=91.121.140.57.
Via: SIP/2.0/UDP 192.168.1.132:49156;rport=64981;received=212.147.8.99;branch=z9hG4bK-b152678d.
Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a88751bd2d6d82bfo0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as31da5899.
Call-ID: 87d8e415-df55447@10.0.0.7.
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=2a552a96b2b3619bi0.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as7e6c67d0.
Call-ID: 34b637d828c84fb9602ee9920eda32ad@91.121.122.64.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK1923b5fa.
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=- 411834 411834 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16398 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=z9hG4bK46352dd3;rport.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as7e6c67d0.
To: <sip:41215500331@192.168.1.40:5060>;tag=2a552a96b2b3619bi0.
Contact: <sip:41215500335@91.121.122.64>.
Call-ID: 34b637d828c84fb9602ee9920eda32ad@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=z9hG4bK8469.f4a757a5.0;received=91.121.140.57.
Via: SIP/2.0/UDP 192.168.1.132:49156;rport=64981;received=212.147.8.99;branch=z9hG4bK-b152678d.
Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a88751bd2d6d82bfo0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as31da5899.
Call-ID: 87d8e415-df55447@10.0.0.7.
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 14884 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:49156;rport=64981;received=212.147.8.99;branch=z9hG4bK-5200e8f2.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a88751bd2d6d82bfo0.
To: Transfer <sip:0215500331@astproxy.switzernet.com>;tag=as31da5899.
Call-ID: 87d8e415-df55447@10.0.0.7.
CSeq: 102 ACK.
Max-Forwards: 69.
Proxy-Authorization: Digest username="41215500335",realm="switzernet",nonce="0605c9ef",uri="sip:0215500331@astproxy.switzernet.com",algorithm=MD5,response="dc93ab87ef2ce882d65dbefea22d67d4".
Contact: 41215500335 <sip:41215500335@212.147.8.99:64981>.
User-Agent: Linksys/PAP2-3.1.22(LS).
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-b907052e.
From: <sip:41215500331@192.168.1.40:5060>;tag=2a552a96b2b3619bi0.
To: "41215500335" <sip:41215500335@91.121.122.64>;tag=as7e6c67d0.
Call-ID: 34b637d828c84fb9602ee9920eda32ad@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-b907052e;received=178.198.29.66.
From: <sip:41215500331@192.168.1.40:5060>;tag=2a552a96b2b3619bi0.
To: "41215500335" <sip:41215500335@91.121.122.64>;tag=as7e6c67d0.
Call-ID: 34b637d828c84fb9602ee9920eda32ad@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:64981 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK5ae84c06;rport.
Route: <sip:91.121.140.57;lr=on;nat=yes>.
From: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as31da5899.
To: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a88751bd2d6d82bfo0.
Call-ID: 87d8e415-df55447@10.0.0.7.
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=a88751bd2d6d82bfo0.
From: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as31da5899.
Call-ID: 87d8e415-df55447@10.0.0.7.
CSeq: 102 BYE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK5ae84c06;rport=5060.
Server: Linksys/PAP2-3.1.22(LS).
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:64981
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-54da2eab;received=212.147.8.99.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=40d973e61ecf955o0.
To: <sip:0215500331@astrad.switzernet.com>;tag=as0bee8e37.
Call-ID: 131c9ffa-e40b9c51@10.0.0.7.
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=z9hG4bK8469.f4a757a5.0;received=91.121.140.57.
Via: SIP/2.0/UDP 192.168.1.132:49156;rport=64981;received=212.147.8.99;branch=z9hG4bK-b152678d.
Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.
From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a88751bd2d6d82bfo0.
To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as31da5899.
Call-ID: 87d8e415-df55447@10.0.0.7.
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-5b92f3a3.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=12255527284277bbo0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: 8d644297-2cdae90b@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=- 421943 421943 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16400 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-5b92f3a3;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=12255527284277bbo0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as34268cf6.
Call-ID: 8d644297-2cdae90b@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="7ec00f74".
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-5b92f3a3.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=12255527284277bbo0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as34268cf6.
Call-ID: 8d644297-2cdae90b@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-c76f4da8.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=12255527284277bbo0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: 8d644297-2cdae90b@192.168.1.40.
CSeq: 102 INVITE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="7ec00f74",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="2c517fbb2f9709c37577763c649128c8".
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=- 421943 421943 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16400 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-c76f4da8;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=12255527284277bbo0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: 8d644297-2cdae90b@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-c76f4da8;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=12255527284277bbo0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as69ad5bf6.
Call-ID: 8d644297-2cdae90b@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: 383.
.
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 9678 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:64981
INVITE sip:41215500335@212.147.8.99:64981 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4fefba5f;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as3380d802.
To: <sip:41215500335@212.147.8.99:64981>.
Contact: <sip:41215500331@91.121.122.64>.
Call-ID: 5121edda47dd5d001693a6d7034150a1@91.121.122.64.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 11:18:16 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
h323-conf-id: 1790844524-1085722021-321881386-1190941356.
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 9348 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:64981
INVITE sip:41215500335@212.147.8.99:64981 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4fefba5f;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as3380d802.
To: <sip:41215500335@212.147.8.99:64981>.
Contact: <sip:41215500331@91.121.122.64>.
Call-ID: 5121edda47dd5d001693a6d7034150a1@91.121.122.64.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 11:18:16 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
h323-conf-id: 1790844524-1085722021-321881386-1190941356.
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 9348 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:64981
CANCEL sip:41215500335@212.147.8.99:64981 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4fefba5f;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as3380d802.
To: <sip:41215500335@212.147.8.99:64981>.
Call-ID: 5121edda47dd5d001693a6d7034150a1@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-c76f4da8;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=12255527284277bbo0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as69ad5bf6.
Call-ID: 8d644297-2cdae90b@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-c76f4da8.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=12255527284277bbo0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as69ad5bf6.
Call-ID: 8d644297-2cdae90b@192.168.1.40.
CSeq: 102 ACK.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="7ec00f74",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="2c517fbb2f9709c37577763c649128c8".
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:64981
CANCEL sip:41215500335@212.147.8.99:64981 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4fefba5f;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as3380d802.
To: <sip:41215500335@212.147.8.99:64981>.
Call-ID: 5121edda47dd5d001693a6d7034150a1@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-b688d250.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=7bd2e0ce84ba247o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: f2ce8930-93936173@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=- 435812 435812 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16402 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-b688d250;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=7bd2e0ce84ba247o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as4541f15b.
Call-ID: f2ce8930-93936173@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="3ea9634a".
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-b688d250.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=7bd2e0ce84ba247o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as4541f15b.
Call-ID: f2ce8930-93936173@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-e421cbc1.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=7bd2e0ce84ba247o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: f2ce8930-93936173@192.168.1.40.
CSeq: 102 INVITE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="3ea9634a",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="8ba849ee164e58151b27e0ea5625ba2d".
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=- 435812 435812 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16402 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-e421cbc1;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=7bd2e0ce84ba247o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: f2ce8930-93936173@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-e421cbc1;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=7bd2e0ce84ba247o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as73499dbe.
Call-ID: f2ce8930-93936173@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: 383.
.
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 6206 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:64981
INVITE sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-05f87097123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK05f87097;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as623c63da.
To: <sip:41215500335@91.121.122.64:5080>.
Contact: <sip:91.121.122.64>.
Call-ID: 097114f0360e72a376015b9c4941888f@91.121.122.64.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 11:20:35 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
X-Astrad-RPL: 212.147.8.99:64981.
X-Astrad-RP: 1.
X-Astrad-SA: 1.
h323-conf-id: 1494066157-1056628356-1754714735-874513454.
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 30296 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:64981 -> 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=as623c63da.
Call-ID: 097114f0360e72a376015b9c4941888f@91.121.122.64:5081.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-05f87097123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK05f87097;rport.
Server: Linksys/PAP2-3.1.22(LS).
Content-Length: 0.
Note: this message doesn’t appear on the Wireshark datagram.
U 212.147.8.99:64981 -> 91.121.122.64:5081
SIP/2.0 180 Ringing.
To: <sip:41215500335@91.121.122.64:5080>;tag=78d2a4af90805c13i0.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as623c63da.
Call-ID: 097114f0360e72a376015b9c4941888f@91.121.122.64:5081.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-05f87097123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK05f87097;rport.
Server: Linksys/PAP2-3.1.22(LS).
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-e421cbc1;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=7bd2e0ce84ba247o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as73499dbe.
Call-ID: f2ce8930-93936173@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:64981 -> 91.121.122.64:5081
SIP/2.0 200 OK.
To: <sip:41215500335@91.121.122.64:5080>;tag=78d2a4af90805c13i0.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as623c63da.
Call-ID: 097114f0360e72a376015b9c4941888f@91.121.122.64:5081.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-05f87097123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK05f87097;rport.
Contact: 41215500335 <sip:41215500335@91.121.122.64:5081>.
Server: Linksys/PAP2-3.1.22(LS).
Content-Length: 246.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: x-sipura, replaces.
Content-Type: application/sdp.
.
v=0.
o=- 40567 40567 IN IP4 10.0.0.7.
s=-.
c=IN IP4 10.0.0.7.
t=0 0.
m=audio 16402 RTP/AVP 18 100 101.
a=rtpmap:18 G729a/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-e421cbc1;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=7bd2e0ce84ba247o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as73499dbe.
Call-ID: f2ce8930-93936173@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: 383.
.
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 6206 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:64981
ACK sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-03e3c805123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK03e3c805;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as623c63da.
To: <sip:41215500335@91.121.122.64:5080>;tag=78d2a4af90805c13i0.
Contact: <sip:91.121.122.64>.
Call-ID: 097114f0360e72a376015b9c4941888f@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-6bba1a61.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=7bd2e0ce84ba247o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as73499dbe.
Call-ID: f2ce8930-93936173@192.168.1.40.
CSeq: 102 ACK.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="3ea9634a",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="8ba849ee164e58151b27e0ea5625ba2d".
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 212.147.8.99:64981 -> 91.121.122.64:5060
BYE sip:91.121.122.64 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-7a55be3a.
From: <sip:41215500335@91.121.122.64:5080>;tag=78d2a4af90805c13i0.
To: "41215500331" <sip:41215500331@91.121.122.64>;tag=as623c63da.
Call-ID: 097114f0360e72a376015b9c4941888f@91.121.122.64:5081.
CSeq: 101 BYE.
Max-Forwards: 70.
User-Agent: Linksys/PAP2-3.1.22(LS).
Content-Length: 0.
Note: this message doesn’t appear on the Wireshark datagram.
U 91.121.122.64:5060 -> 212.147.8.99:64981
SIP/2.0 481 Call leg/transaction does not exist.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-7a55be3a;received=212.147.8.99.
From: <sip:41215500335@91.121.122.64:5080>;tag=78d2a4af90805c13i0.
To: "41215500331" <sip:41215500331@91.121.122.64>;tag=as623c63da.
Call-ID: 097114f0360e72a376015b9c4941888f@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-f63f6cb7.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=7bd2e0ce84ba247o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as73499dbe.
Call-ID: f2ce8930-93936173@192.168.1.40.
CSeq: 103 BYE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="3ea9634a",uri="sip:0215500335@91.121.122.64",algorithm=MD5,response="0b28b1fef8e7859de23412d71e486dba".
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-f63f6cb7;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=7bd2e0ce84ba247o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as73499dbe.
Call-ID: f2ce8930-93936173@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:64981
BYE sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-4c06cd64123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4c06cd64;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as623c63da.
To: <sip:41215500335@91.121.122.64:5080>;tag=78d2a4af90805c13i0.
Call-ID: 097114f0360e72a376015b9c4941888f@91.121.122.64.
CSeq: 103 BYE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Content-Length: 0.
U 212.147.8.99:64981 -> 91.121.122.64:5081
SIP/2.0 481 Call Leg/Transaction Does Not Exist.
To: <sip:41215500335@91.121.122.64:5080>;tag=78d2a4af90805c13i0.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as623c63da.
Call-ID: 097114f0360e72a376015b9c4941888f@91.121.122.64.
CSeq: 103 BYE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-4c06cd64123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4c06cd64;rport.
Server: Linksys/PAP2-3.1.22(LS).
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: 097114f0360e72a376015b9c4941888f@91.121.122.64.
· Messages that the destination phone answers to the SIP server (TRYING and RINGING):
Call-ID: 097114f0360e72a376015b9c4941888f@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-e27ddb1f.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=773d71460b9e657o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: 340d6f98-bba787a3@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=- 442332 442332 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16404 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-e27ddb1f;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=773d71460b9e657o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as0e6fbd17.
Call-ID: 340d6f98-bba787a3@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="7df48389".
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-e27ddb1f.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=773d71460b9e657o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as0e6fbd17.
Call-ID: 340d6f98-bba787a3@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-87ed1ac7.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=773d71460b9e657o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: 340d6f98-bba787a3@192.168.1.40.
CSeq: 102 INVITE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="7df48389",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="0d91ec798cd827d5c92f7fc1cd508ef7".
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=- 442332 442332 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16404 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-87ed1ac7;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=773d71460b9e657o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: 340d6f98-bba787a3@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-87ed1ac7;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=773d71460b9e657o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as43929e4d.
Call-ID: 340d6f98-bba787a3@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 15094 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:64981
INVITE sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-41d9ee66123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK41d9ee66;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as375edc96.
To: <sip:41215500335@91.121.122.64:5080>.
Contact: <sip:91.121.122.64>.
Call-ID: 583f02275626e058549d63ad6d62c545@91.121.122.64:5081
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 11:21:40 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
X-Astrad-RPL: 212.147.8.99:64981.
X-Astrad-RP: 1.
X-Astrad-SA: 2.
h323-conf-id: 499577983-1392503522-677103096-1609827560.
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 19810 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:64981 -> 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=as375edc96.
Call-ID: 583f02275626e058549d63ad6d62c545@91.121.122.64:5081.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-41d9ee66123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK41d9ee66;rport.
Server: Linksys/PAP2-3.1.22(LS).
Content-Length: 0.
U 212.147.8.99:64981 -> 91.121.122.64:5081
SIP/2.0 180 Ringing.
To: <sip:41215500335@91.121.122.64:5080>;tag=7d5aee16fdf6e336i0.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as375edc96.
Call-ID: 583f02275626e058549d63ad6d62c545@91.121.122.64:5081.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-41d9ee66123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK41d9ee66;rport.
Server: Linksys/PAP2-3.1.22(LS).
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-87ed1ac7;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=773d71460b9e657o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as43929e4d.
Call-ID: 340d6f98-bba787a3@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:64981 -> 91.121.122.64:5081
SIP/2.0 200 OK.
To: <sip:41215500335@91.121.122.64:5080>;tag=7d5aee16fdf6e336i0.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as375edc96.
Call-ID: 583f02275626e058549d63ad6d62c545@91.121.122.64:5081.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-41d9ee66123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK41d9ee66;rport.
Contact: 41215500335 <sip:41215500335@91.121.122.64:5081>.
Server: Linksys/PAP2-3.1.22(LS).
Content-Length: 246.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: x-sipura, replaces.
Content-Type: application/sdp.
.
v=0.
o=- 47061 47061 IN IP4 10.0.0.7.
s=-.
c=IN IP4 10.0.0.7.
t=0 0.
m=audio 16404 RTP/AVP 18 100 101.
a=rtpmap:18 G729a/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-87ed1ac7;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=773d71460b9e657o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as43929e4d.
Call-ID: 340d6f98-bba787a3@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 15094 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:64981
ACK sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-2898fcca123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK2898fcca;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as375edc96.
To: <sip:41215500335@91.121.122.64:5080>;tag=7d5aee16fdf6e336i0.
Contact: <sip:91.121.122.64>.
Call-ID: 583f02275626e058549d63ad6d62c545@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-ac54c002.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=773d71460b9e657o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as43929e4d.
Call-ID: 340d6f98-bba787a3@192.168.1.40.
CSeq: 102 ACK.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="7df48389",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="0d91ec798cd827d5c92f7fc1cd508ef7".
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 212.147.8.99:64981 -> 91.121.122.64:5060
BYE sip:91.121.122.64 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-378a5fab.
From: <sip:41215500335@91.121.122.64:5080>;tag=7d5aee16fdf6e336i0.
To: "41215500331" <sip:41215500331@91.121.122.64>;tag=as375edc96.
Call-ID: 583f02275626e058549d63ad6d62c545@91.121.122.64:5081.
CSeq: 101 BYE.
Max-Forwards: 70.
User-Agent: Linksys/PAP2-3.1.22(LS).
Content-Length: 0.
U 91.121.122.64:5060 -> 212.147.8.99:64981
SIP/2.0 481 Call leg/transaction does not exist.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK-378a5fab;received=212.147.8.99.
From: <sip:41215500335@91.121.122.64:5080>;tag=7d5aee16fdf6e336i0.
To: "41215500331" <sip:41215500331@91.121.122.64>;tag=as375edc96.
Call-ID: 583f02275626e058549d63ad6d62c545@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-c624253d.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=773d71460b9e657o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as43929e4d.
Call-ID: 340d6f98-bba787a3@192.168.1.40.
CSeq: 103 BYE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="7df48389",uri="sip:0215500335@91.121.122.64",algorithm=MD5,response="6b4e573dd74546a5fe211de3f5df2dd6".
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-c624253d;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=773d71460b9e657o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as43929e4d.
Call-ID: 340d6f98-bba787a3@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:64981
BYE sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-79b8712a123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK79b8712a;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as375edc96.
To: <sip:41215500335@91.121.122.64:5080>;tag=7d5aee16fdf6e336i0.
Call-ID: 583f02275626e058549d63ad6d62c545@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:64981 -> 91.121.122.64:5081
SIP/2.0 481 Call Leg/Transaction Does Not Exist.
To: <sip:41215500335@91.121.122.64:5080>;tag=7d5aee16fdf6e336i0.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as375edc96.
Call-ID: 583f02275626e058549d63ad6d62c545@91.121.122.64.
CSeq: 103 BYE.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-79b8712a123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK79b8712a;rport.
Server: Linksys/PAP2-3.1.22(LS).
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).