Outgoing and incoming call test with SPA3000 and Netgear N150 WNR1000 router

Created on 2012-02-20 by David Gómez

Switzernet

 

Outgoing calls

Case 0

Case 1

 

Incoming calls

Case 0

Case 1

Case 2

 

This document describes the test performed with a SPA3000 connected to a Netgear N150 WNR1000 router. This router filters the SIP messages modifying them doing impossible that a call could be established.

Outgoing calls

 

Case 0

“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:60693 -> 91.121.122.64:5060

INVITE sip:0215500331@astrad.switzernet.com SIP/2.0.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-366cba9c.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a248e9bbf1844d9bo0.

To: <sip:0215500331@astrad.switzernet.com>.

Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=calling.

Call-ID: 5307b43b-390051b@10.0.0.5.

CSeq: 101 INVITE.

Max-Forwards: 70.

Contact: 41215500335 <sip:41215500335@192.168.1.132:49154>.

Expires: 240.

User-Agent: Linksys/SPA3000-3.1.10(GWd).

Content-Length: 444.

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.

Supported: x-sipura.

Content-Type: application/sdp.

.

v=0.

o=- 192923 192923 IN IP4 192.168.1.132.

s=-.

c=IN IP4 192.168.1.132.

t=0 0.

m=audio 16452 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:60693

SIP/2.0 407 Proxy Authentication Required.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-366cba9c;received=212.147.8.99.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a248e9bbf1844d9bo0.

To: <sip:0215500331@astrad.switzernet.com>;tag=as329ef1a5.

Call-ID: 5307b43b-390051b@10.0.0.5.

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="3b8cd081".

Content-Length: 0.

 

 

 

U 212.147.8.99:60693 -> 91.121.122.64:5060

ACK sip:0215500331@astrad.switzernet.com SIP/2.0.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-366cba9c.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a248e9bbf1844d9bo0.

To: <sip:0215500331@astrad.switzernet.com>;tag=as329ef1a5.

Call-ID: 5307b43b-390051b@10.0.0.5.

CSeq: 101 ACK.

Max-Forwards: 70.

Contact: 41215500335 <sip:41215500335@192.168.1.132:49154>.

User-Agent: Linksys/SPA3000-3.1.10(GWd).

Content-Length: 0.

 

 

 

U 212.147.8.99:60693 -> 91.121.122.64:5060

INVITE sip:0215500331@astrad.switzernet.com SIP/2.0.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-32d3d770.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a248e9bbf1844d9bo0.

To: <sip:0215500331@astrad.switzernet.com>.

Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=calling.

Call-ID: 5307b43b-390051b@10.0.0.5.

CSeq: 102 INVITE.

Max-Forwards: 70.

Proxy-Authorization: Digest username="41215500335",realm="switzernet",nonce="3b8cd081",uri="sip:0215500331@astrad.switzernet.com",algorithm=MD5,response="d19ebdeef14137441144656a72cf5254".

Contact: 41215500335 <sip:41215500335@192.168.1.132:49154>.

Expires: 240.

User-Agent: Linksys/SPA3000-3.1.10(GWd).

Content-Length: 444.

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.

Supported: x-sipura.

Content-Type: application/sdp.

.

v=0.

o=- 192923 192923 IN IP4 192.168.1.132.

s=-.

c=IN IP4 192.168.1.132.

t=0 0.

m=audio 16452 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:60693

SIP/2.0 100 Trying.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-32d3d770;received=212.147.8.99.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a248e9bbf1844d9bo0.

To: <sip:0215500331@astrad.switzernet.com>.

Call-ID: 5307b43b-390051b@10.0.0.5.

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 -> 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=z9hG4bK38a6d6cc;rport.

From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as2a74bc73.

To: <sip:41215500331@192.168.1.40:5060>.

Contact: <sip:41215500335@91.121.122.64>.

Call-ID: 6e8d96e541db38b364812122280a8412@91.121.122.64.

CSeq: 102 INVITE.

User-Agent: Asterisk PBX.

Max-Forwards: 70.

Date: Wed, 15 Feb 2012 10:18:29 GMT.

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.

Supported: replaces.

h323-conf-id: 1219818676-414341641-780912255-1340284941.

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 11980 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=as2a74bc73.

Call-ID: 6e8d96e541db38b364812122280a8412@91.121.122.64.

CSeq: 102 INVITE.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK38a6d6cc.

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=580579178281ac3bi0.

From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as2a74bc73.

Call-ID: 6e8d96e541db38b364812122280a8412@91.121.122.64.

CSeq: 102 INVITE.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK38a6d6cc.

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=580579178281ac3bi0.

From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as2a74bc73.

Call-ID: 6e8d96e541db38b364812122280a8412@91.121.122.64.

CSeq: 102 INVITE.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK38a6d6cc.

Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.

Server: Linksys/SPA921-5.1.8.

Content-Length: 204.

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.

Supported: replaces.

Content-Type: application/sdp.

.

v=0.

o=- 63463 63463 IN IP4 192.168.1.40.

s=-.

c=IN IP4 192.168.1.40.

t=0 0.

m=audio 16462 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=z9hG4bK657bf3d0;rport.

From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as2a74bc73.

To: <sip:41215500331@192.168.1.40:5060>;tag=580579178281ac3bi0.

Contact: <sip:41215500335@91.121.122.64>.

Call-ID: 6e8d96e541db38b364812122280a8412@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:60693

SIP/2.0 200 OK.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-32d3d770;received=212.147.8.99.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a248e9bbf1844d9bo0.

To: <sip:0215500331@astrad.switzernet.com>;tag=as37557c8a.

Call-ID: 5307b43b-390051b@10.0.0.5.

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 14096 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:60693

SIP/2.0 200 OK.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-32d3d770;received=212.147.8.99.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a248e9bbf1844d9bo0.

To: <sip:0215500331@astrad.switzernet.com>;tag=as37557c8a.

Call-ID: 5307b43b-390051b@10.0.0.5.

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 14096 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=z9hG4bK6aa52c79;rport.

From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as2a74bc73.

To: <sip:41215500331@192.168.1.40:5060>;tag=580579178281ac3bi0.

Call-ID: 6e8d96e541db38b364812122280a8412@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=580579178281ac3bi0.

From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as2a74bc73.

Call-ID: 6e8d96e541db38b364812122280a8412@91.121.122.64.

CSeq: 103 BYE.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK6aa52c79.

Server: Linksys/SPA921-5.1.8.

Content-Length: 0.

 

[SCM]actwin,0,0,0,0;tracespa3000_out0.pcap - Graph Analysis
wireshark
2012-02-20 , 10:16:39

Wireshark file

 

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.

 

 


Case 1

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:60693 -> 91.121.122.64:5060

INVITE sip:0215500331@astrad.switzernet.com SIP/2.0.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-9ac64554.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=ed0bd406d0d0274o0.

To: <sip:0215500331@astrad.switzernet.com>.

Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=calling.

Call-ID: 365b7e30-7ddfb644@10.0.0.5.

CSeq: 101 INVITE.

Max-Forwards: 70.

Contact: 41215500335 <sip:41215500335@192.168.1.132:49154>.

Expires: 240.

User-Agent: Linksys/SPA3000-3.1.10(GWd).

Content-Length: 444.

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.

Supported: x-sipura.

Content-Type: application/sdp.

.

v=0.

o=- 224309 224309 IN IP4 192.168.1.132.

s=-.

c=IN IP4 192.168.1.132.

t=0 0.

m=audio 16456 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:60693

SIP/2.0 407 Proxy Authentication Required.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-9ac64554;received=212.147.8.99.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=ed0bd406d0d0274o0.

To: <sip:0215500331@astrad.switzernet.com>;tag=as554264c3.

Call-ID: 365b7e30-7ddfb644@10.0.0.5.

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="15891f4d".

Content-Length: 0.

 

 

 

U 212.147.8.99:60693 -> 91.121.122.64:5060

ACK sip:0215500331@astrad.switzernet.com SIP/2.0.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-9ac64554.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=ed0bd406d0d0274o0.

To: <sip:0215500331@astrad.switzernet.com>;tag=as554264c3.

Call-ID: 365b7e30-7ddfb644@10.0.0.5.

CSeq: 101 ACK.

Max-Forwards: 70.

Contact: 41215500335 <sip:41215500335@192.168.1.132:49154>.

User-Agent: Linksys/SPA3000-3.1.10(GWd).

Content-Length: 0.

 

 

 

U 212.147.8.99:60693 -> 91.121.122.64:5060

INVITE sip:0215500331@astrad.switzernet.com SIP/2.0.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-c68b9bb0.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=ed0bd406d0d0274o0.

To: <sip:0215500331@astrad.switzernet.com>.

Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=calling.

Call-ID: 365b7e30-7ddfb644@10.0.0.5.

CSeq: 102 INVITE.

Max-Forwards: 70.

Proxy-Authorization: Digest username="41215500335",realm="switzernet",nonce="15891f4d",uri="sip:0215500331@astrad.switzernet.com",algorithm=MD5,response="d0aab00f28df8b466a5674735b41b6e5".

Contact: 41215500335 <sip:41215500335@192.168.1.132:49154>.

Expires: 240.

User-Agent: Linksys/SPA3000-3.1.10(GWd).

Content-Length: 444.

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.

Supported: x-sipura.

Content-Type: application/sdp.

.

v=0.

o=- 224309 224309 IN IP4 192.168.1.132.

s=-.

c=IN IP4 192.168.1.132.

t=0 0.

m=audio 16456 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:60693

SIP/2.0 100 Trying.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-c68b9bb0;received=212.147.8.99.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=ed0bd406d0d0274o0.

To: <sip:0215500331@astrad.switzernet.com>.

Call-ID: 365b7e30-7ddfb644@10.0.0.5.

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:60693

SIP/2.0 302 Moved Temporarily.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-c68b9bb0;received=212.147.8.99.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=ed0bd406d0d0274o0.

To: <sip:0215500331@astrad.switzernet.com>;tag=as3cd658f9.

Call-ID: 365b7e30-7ddfb644@10.0.0.5.

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:60693 -> 91.121.122.64:5060

ACK sip:0215500331@astrad.switzernet.com SIP/2.0.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-c68b9bb0.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=ed0bd406d0d0274o0.

To: <sip:0215500331@astrad.switzernet.com>;tag=as3cd658f9.

Call-ID: 365b7e30-7ddfb644@10.0.0.5.

CSeq: 102 ACK.

Max-Forwards: 70.

Proxy-Authorization: Digest username="41215500335",realm="switzernet",nonce="15891f4d",uri="sip:0215500331@astrad.switzernet.com",algorithm=MD5,response="d04c405a34f0a84cc06bbfc87f18e20a".

Contact: 41215500335 <sip:41215500335@192.168.1.132:49154>.

User-Agent: Linksys/SPA3000-3.1.10(GWd).

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=z9hG4bK3233.c2ba646.0.

Via: SIP/2.0/UDP 192.168.1.132:49154;rport=60693;received=212.147.8.99;branch=z9hG4bK-455c40a.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=2c056bb9aecafe98o0.

To: 0215500331 <sip:0215500331@astrad.switzernet.com>.

Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=calling.

Call-ID: f172370d-e1a8b54@10.0.0.5.

CSeq: 101 INVITE.

Max-Forwards: 69.

Contact: 41215500335 <sip:41215500335@212.147.8.99:60693>.

Expires: 240.

User-Agent: Linksys/SPA3000-3.1.10(GWd).

Content-Length: 462.

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.

Supported: x-sipura.

Content-Type: application/sdp.

X-Astrad-Relay: 1.

.

v=0.

o=- 224382 224382 IN IP4 91.121.140.57.

s=-.

c=IN IP4 91.121.140.57.

t=0 0.

m=audio 35432 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=z9hG4bK3233.c2ba646.0;received=91.121.140.57.

Via: SIP/2.0/UDP 192.168.1.132:49154;rport=60693;received=212.147.8.99;branch=z9hG4bK-455c40a.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=2c056bb9aecafe98o0.

To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as54a22146.

Call-ID: f172370d-e1a8b54@10.0.0.5.

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="4784b640".

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=z9hG4bK3233.c2ba646.0.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=2c056bb9aecafe98o0.

To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as54a22146.

Call-ID: f172370d-e1a8b54@10.0.0.5.

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=z9hG4bK0233.710bc801.0.

Via: SIP/2.0/UDP 192.168.1.132:49154;rport=60693;received=212.147.8.99;branch=z9hG4bK-51c9be46.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=2c056bb9aecafe98o0.

To: 0215500331 <sip:0215500331@astrad.switzernet.com>.

Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=calling.

Call-ID: f172370d-e1a8b54@10.0.0.5.

CSeq: 102 INVITE.

Max-Forwards: 69.

Proxy-Authorization: Digest username="41215500335",realm="switzernet",nonce="4784b640",uri="sip:0215500331@astproxy.switzernet.com",algorithm=MD5,response="29b174e5ab3a636b62835f6f5f640622".

Contact: 41215500335 <sip:41215500335@212.147.8.99:60693>.

Expires: 240.

User-Agent: Linksys/SPA3000-3.1.10(GWd).

Content-Length: 462.

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.

Supported: x-sipura.

Content-Type: application/sdp.

X-Astrad-Relay: 1.

.

v=0.

o=- 224382 224382 IN IP4 91.121.140.57.

s=-.

c=IN IP4 91.121.140.57.

t=0 0.

m=audio 35434 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=

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=z9hG4bK0233.710bc801.0;received=91.121.140.57.

Via: SIP/2.0/UDP 192.168.1.132:49154;rport=60693;received=212.147.8.99;branch=z9hG4bK-51c9be46.

Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=2c056bb9aecafe98o0.

To: 0215500331 <sip:0215500331@astrad.switzernet.com>.

Call-ID: f172370d-e1a8b54@10.0.0.5.

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 -> 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=z9hG4bK159a6c14;rport.

From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as39693e1f.

To: <sip:41215500331@192.168.1.40:5060>.

Contact: <sip:41215500335@91.121.122.64>.

Call-ID: 225781b654a597ee169519951948ca31@91.121.122.64.

CSeq: 102 INVITE.

User-Agent: Asterisk PBX.

Max-Forwards: 70.

Date: Wed, 15 Feb 2012 10:23:44 GMT.

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.

Supported: replaces.

h323-conf-id: 311085580-672393561-1189777319-702826364.

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 6186 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=as39693e1f.

Call-ID: 225781b654a597ee169519951948ca31@91.121.122.64.

CSeq: 102 INVITE.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK159a6c14.

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=fa906f95e3f872bci0.

From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as39693e1f.

Call-ID: 225781b654a597ee169519951948ca31@91.121.122.64.

CSeq: 102 INVITE.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK159a6c14.

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=z9hG4bK0233.710bc801.0;received=91.121.140.57.

Via: SIP/2.0/UDP 192.168.1.132:49154;rport=60693;received=212.147.8.99;branch=z9hG4bK-51c9be46.

Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=2c056bb9aecafe98o0.

To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as2f6ecd0a.

Call-ID: f172370d-e1a8b54@10.0.0.5.

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=fa906f95e3f872bci0.

From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as39693e1f.

Call-ID: 225781b654a597ee169519951948ca31@91.121.122.64.

CSeq: 102 INVITE.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK159a6c14.

Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.

Server: Linksys/SPA921-5.1.8.

Content-Length: 204.

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.

Supported: replaces.

Content-Type: application/sdp.

.

v=0.

o=- 94926 94926 IN IP4 192.168.1.40.

s=-.

c=IN IP4 192.168.1.40.

t=0 0.

m=audio 16466 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=z9hG4bK490874aa;rport.

From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as39693e1f.

To: <sip:41215500331@192.168.1.40:5060>;tag=fa906f95e3f872bci0.

Contact: <sip:41215500335@91.121.122.64>.

Call-ID: 225781b654a597ee169519951948ca31@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=z9hG4bK0233.710bc801.0;received=91.121.140.57.

Via: SIP/2.0/UDP 192.168.1.132:49154;rport=60693;received=212.147.8.99;branch=z9hG4bK-51c9be46.

Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=2c056bb9aecafe98o0.

To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as2f6ecd0a.

Call-ID: f172370d-e1a8b54@10.0.0.5.

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: 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 8552 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:49154;rport=60693;received=212.147.8.99;branch=z9hG4bK-a00586dd.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=2c056bb9aecafe98o0.

To: Transfer <sip:0215500331@astproxy.switzernet.com>;tag=as2f6ecd0a.

Call-ID: f172370d-e1a8b54@10.0.0.5.

CSeq: 102 ACK.

Max-Forwards: 69.

Proxy-Authorization: Digest username="41215500335",realm="switzernet",nonce="4784b640",uri="sip:91.121.122.64",algorithm=MD5,response="709f439bcaabfde73661057570b0dfc7".

Contact: 41215500335 <sip:41215500335@212.147.8.99:60693>.

User-Agent: Linksys/SPA3000-3.1.10(GWd).

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-6ce3f48f.

From: <sip:41215500331@192.168.1.40:5060>;tag=fa906f95e3f872bci0.

To: "41215500335" <sip:41215500335@91.121.122.64>;tag=as39693e1f.

Call-ID: 225781b654a597ee169519951948ca31@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-6ce3f48f;received=178.198.29.66.

From: <sip:41215500331@192.168.1.40:5060>;tag=fa906f95e3f872bci0.

To: "41215500335" <sip:41215500335@91.121.122.64>;tag=as39693e1f.

Call-ID: 225781b654a597ee169519951948ca31@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:60693 SIP/2.0.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK5c6c9b3e;rport.

Route: <sip:91.121.140.57;lr=on;nat=yes>.

From: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as2f6ecd0a.

To: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=2c056bb9aecafe98o0.

Call-ID: f172370d-e1a8b54@10.0.0.5.

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=2c056bb9aecafe98o0.

From: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as2f6ecd0a.

Call-ID: f172370d-e1a8b54@10.0.0.5.

CSeq: 102 BYE.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK5c6c9b3e;rport=5060.

Server: Linksys/SPA3000-3.1.10(GWd).

Content-Length: 0.

 

[SCM]actwin,0,0,0,0;tracespa3000_out1.pcap - Graph Analysis
wireshark
2012-02-20 , 11:55:21

Wireshark file

 

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:60693

SIP/2.0 200 OK.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-32d3d770;received=212.147.8.99.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=a248e9bbf1844d9bo0.

To: <sip:0215500331@astrad.switzernet.com>;tag=as37557c8a.

Call-ID: 5307b43b-390051b@10.0.0.5.

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=z9hG4bK0233.710bc801.0;received=91.121.140.57.

Via: SIP/2.0/UDP 192.168.1.132:49154;rport=60693;received=212.147.8.99;branch=z9hG4bK-51c9be46.

Record-Route: <sip:91.121.140.57;lr=on;nat=yes>.

From: 41215500335 <sip:41215500335@astrad.switzernet.com>;tag=2c056bb9aecafe98o0.

To: 0215500331 <sip:0215500331@astrad.switzernet.com>;tag=as2f6ecd0a.

Call-ID: f172370d-e1a8b54@10.0.0.5.

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.

 

 

 


Incoming calls

 

Case 0

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-8f745c1.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=31f3ed4d48789538o0.

To: <sip:0215500335@astrad.switzernet.com>.

Call-ID: b87c3ab1-3f4c0724@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=- 112546 112546 IN IP4 192.168.1.40.

s=-.

c=IN IP4 192.168.1.40.

t=0 0.

m=audio 16468 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-8f745c1;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=31f3ed4d48789538o0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as525590b7.

Call-ID: b87c3ab1-3f4c0724@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="139e9e77".

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-8f745c1.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=31f3ed4d48789538o0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as525590b7.

Call-ID: b87c3ab1-3f4c0724@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-dd8f9272.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=31f3ed4d48789538o0.

To: <sip:0215500335@astrad.switzernet.com>.

Call-ID: b87c3ab1-3f4c0724@192.168.1.40.

CSeq: 102 INVITE.

Max-Forwards: 70.

Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="139e9e77",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="a72ec1f82f1adf51c518da804c02e5d4".

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=- 112546 112546 IN IP4 192.168.1.40.

s=-.

c=IN IP4 192.168.1.40.

t=0 0.

m=audio 16468 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-dd8f9272;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=31f3ed4d48789538o0.

To: <sip:0215500335@astrad.switzernet.com>.

Call-ID: b87c3ab1-3f4c0724@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-dd8f9272;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=31f3ed4d48789538o0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as6607e1b3.

Call-ID: b87c3ab1-3f4c0724@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 5406 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:60693

INVITE sip:41215500335@212.147.8.99:60693 SIP/2.0.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4402b39c;rport.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as0f0e2061.

To: <sip:41215500335@212.147.8.99:60693>.

Contact: <sip:41215500331@91.121.122.64>.

Call-ID: 1b04709f083cfc543af127cc4e8fc643@91.121.122.64.

CSeq: 102 INVITE.

User-Agent: Asterisk PBX.

Max-Forwards: 70.

Date: Wed, 15 Feb 2012 10:26:42 GMT.

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.

Supported: replaces.

h323-conf-id: 1468143607-1251521983-1545033572-763170773.

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 9722 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:60693

INVITE sip:41215500335@212.147.8.99:60693 SIP/2.0.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4402b39c;rport.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as0f0e2061.

To: <sip:41215500335@212.147.8.99:60693>.

Contact: <sip:41215500331@91.121.122.64>.

Call-ID: 1b04709f083cfc543af127cc4e8fc643@91.121.122.64.

CSeq: 102 INVITE.

User-Agent: Asterisk PBX.

Max-Forwards: 70.

Date: Wed, 15 Feb 2012 10:26:42 GMT.

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.

Supported: replaces.

h323-conf-id: 1468143607-1251521983-1545033572-763170773.

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 9722 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:60693

CANCEL sip:41215500335@212.147.8.99:60693 SIP/2.0.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4402b39c;rport.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as0f0e2061.

To: <sip:41215500335@212.147.8.99:60693>.

Call-ID: 1b04709f083cfc543af127cc4e8fc643@91.121.122.64.

CSeq: 102 CANCEL.

User-Agent: Asterisk PBX.

Max-Forwards: 70.

Content-Length: 0.

 

 

 

 

 

 

U 178.198.29.66:1028 -> 91.121.122.64:5060

CANCEL sip:0215500335@astrad.switzernet.com SIP/2.0.

Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-dd8f9272.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=31f3ed4d48789538o0.

To: <sip:0215500335@astrad.switzernet.com>.

Call-ID: b87c3ab1-3f4c0724@192.168.1.40.

CSeq: 102 CANCEL.

Max-Forwards: 70.

Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="139e9e77",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="751caa5f4ddad958d9520c7819237982".

User-Agent: Linksys/SPA921-5.1.8.

Content-Length: 0.

 

 

 

U 91.121.122.64:5060 -> 178.198.29.66:1028

SIP/2.0 487 Request Terminated.

Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-dd8f9272;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=31f3ed4d48789538o0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as6607e1b3.

Call-ID: b87c3ab1-3f4c0724@192.168.1.40.

CSeq: 102 INVITE.

User-Agent: Asterisk PBX.

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.

Supported: replaces.

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-dd8f9272;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=31f3ed4d48789538o0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as6607e1b3.

Call-ID: b87c3ab1-3f4c0724@192.168.1.40.

CSeq: 102 CANCEL.

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-dd8f9272.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=31f3ed4d48789538o0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as6607e1b3.

Call-ID: b87c3ab1-3f4c0724@192.168.1.40.

CSeq: 102 ACK.

Max-Forwards: 70.

Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="139e9e77",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="a72ec1f82f1adf51c518da804c02e5d4".

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:60693

CANCEL sip:41215500335@212.147.8.99:60693 SIP/2.0.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4402b39c;rport.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as0f0e2061.

To: <sip:41215500335@212.147.8.99:60693>.

Call-ID: 1b04709f083cfc543af127cc4e8fc643@91.121.122.64.

CSeq: 102 CANCEL.

User-Agent: Asterisk PBX.

Max-Forwards: 70.

Content-Length: 0.

 

[SCM]actwin,0,0,0,0;tracespa3000_in0.pcap - Graph Analysis
wireshark
2012-02-20 , 14:12:56

Wireshark file

 

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.

 

 


Case 1

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-24190505.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=1f9beec8e5facbc5o0.

To: <sip:0215500335@astrad.switzernet.com>.

Call-ID: d8a3b144-78e38b79@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=- 129390 129390 IN IP4 192.168.1.40.

s=-.

c=IN IP4 192.168.1.40.

t=0 0.

m=audio 16472 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-24190505;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=1f9beec8e5facbc5o0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as51a97297.

Call-ID: d8a3b144-78e38b79@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="3d08ff6e".

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-24190505.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=1f9beec8e5facbc5o0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as51a97297.

Call-ID: d8a3b144-78e38b79@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-5232b8b9.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=1f9beec8e5facbc5o0.

To: <sip:0215500335@astrad.switzernet.com>.

Call-ID: d8a3b144-78e38b79@192.168.1.40.

CSeq: 102 INVITE.

Max-Forwards: 70.

Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="3d08ff6e",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="aed70ebe5798dd026d59a9d6c20c8acd".

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=- 129390 129390 IN IP4 192.168.1.40.

s=-.

c=IN IP4 192.168.1.40.

t=0 0.

m=audio 16472 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-5232b8b9;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=1f9beec8e5facbc5o0.

To: <sip:0215500335@astrad.switzernet.com>.

Call-ID: d8a3b144-78e38b79@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-5232b8b9;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=1f9beec8e5facbc5o0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as175ee336.

Call-ID: d8a3b144-78e38b79@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 27166 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:60693

INVITE sip:41215500335@91.121.122.64:5080 SIP/2.0.

Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-21dad724123.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK21dad724;rport.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as5e84cb1e.

To: <sip:41215500335@91.121.122.64:5080>.

Contact: <sip:91.121.122.64>.

Call-ID: 25355f53455ae3ea21255d7957838db1@91.121.122.64.

CSeq: 102 INVITE.

User-Agent: Asterisk PBX.

Max-Forwards: 70.

Date: Wed, 15 Feb 2012 10:29:31 GMT.

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.

Supported: replaces.

X-Astrad-RPL: 212.147.8.99:60693.

X-Astrad-RP: 1.

X-Astrad-SA: 1.

h323-conf-id: 751111139-324133093-1667977464-676646136.

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 19324 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:60693 -> 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=as5e84cb1e.

Call-ID: 25355f53455ae3ea21255d7957838db1@91.121.122.64:5081.

CSeq: 102 INVITE.

Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-21dad724123.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK21dad724;rport.

Server: Linksys/SPA3000-3.1.10(GWd).

Content-Length: 0.

Note: this message doesn’t appear on the Wireshark datagram.

 

 

U 212.147.8.99:60693 -> 91.121.122.64:5081

SIP/2.0 180 Ringing.

To: <sip:41215500335@91.121.122.64:5080>;tag=17851a13cf31c10i0.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as5e84cb1e.

Call-ID: 25355f53455ae3ea21255d7957838db1@91.121.122.64:5081.

CSeq: 102 INVITE.

Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-21dad724123.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK21dad724;rport.

Server: Linksys/SPA3000-3.1.10(GWd).

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-5232b8b9;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=1f9beec8e5facbc5o0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as175ee336.

Call-ID: d8a3b144-78e38b79@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:60693 -> 91.121.122.64:5081

SIP/2.0 200 OK.

To: <sip:41215500335@91.121.122.64:5080>;tag=17851a13cf31c10i0.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as5e84cb1e.

Call-ID: 25355f53455ae3ea21255d7957838db1@91.121.122.64:5081.

CSeq: 102 INVITE.

Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-21dad724123.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK21dad724;rport.

Contact: 41215500335 <sip:41215500335@91.121.122.64:5081>.

Server: Linksys/SPA3000-3.1.10(GWd).

Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=called.

Content-Length: 245.

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.

Supported: x-sipura.

Content-Type: application/sdp.

.

v=0.

o=- 259208 259208 IN IP4 10.0.0.5.

s=-.

c=IN IP4 10.0.0.5.

t=0 0.

m=audio 16458 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-5232b8b9;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=1f9beec8e5facbc5o0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as175ee336.

Call-ID: d8a3b144-78e38b79@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 27166 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:60693

ACK sip:41215500335@91.121.122.64:5080 SIP/2.0.

Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-1405f1d1123.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK1405f1d1;rport.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as5e84cb1e.

To: <sip:41215500335@91.121.122.64:5080>;tag=17851a13cf31c10i0.

Contact: <sip:91.121.122.64>.

Call-ID: 25355f53455ae3ea21255d7957838db1@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-c720a9a8.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=1f9beec8e5facbc5o0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as175ee336.

Call-ID: d8a3b144-78e38b79@192.168.1.40.

CSeq: 102 ACK.

Max-Forwards: 70.

Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="3d08ff6e",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="aed70ebe5798dd026d59a9d6c20c8acd".

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 -> 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=z9hG4bK59ad4d76;rport.

From: <sip:0215500335@astrad.switzernet.com>;tag=as175ee336.

To: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=1f9beec8e5facbc5o0.

Call-ID: d8a3b144-78e38b79@192.168.1.40.

CSeq: 102 BYE.

User-Agent: Asterisk PBX.

Max-Forwards: 70.

Content-Length: 0.

 

 

 

U 91.121.122.64:5081 -> 212.147.8.99:60693

BYE sip:41215500335@91.121.122.64:5080 SIP/2.0.

Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-34bd2c8c123.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK34bd2c8c;rport.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as5e84cb1e.

To: <sip:41215500335@91.121.122.64:5080>;tag=17851a13cf31c10i0.

Call-ID: 25355f53455ae3ea21255d7957838db1@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: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=1f9beec8e5facbc5o0.

From: <sip:0215500335@astrad.switzernet.com>;tag=as175ee336.

Call-ID: d8a3b144-78e38b79@192.168.1.40.

CSeq: 102 BYE.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK59ad4d76.

Server: Linksys/SPA921-5.1.8.

Content-Length: 0.

 

 

 

U 212.147.8.99:60693 -> 91.121.122.64:5081

SIP/2.0 481 Call Leg/Transaction Does Not Exist.

To: <sip:41215500335@91.121.122.64:5080>;tag=17851a13cf31c10i0.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as5e84cb1e.

Call-ID: 25355f53455ae3ea21255d7957838db1@91.121.122.64.

CSeq: 103 BYE.

Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-34bd2c8c123.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK34bd2c8c;rport.

Server: Linksys/SPA3000-3.1.10(GWd).

Content-Length: 0.

 

 

 

U 212.147.8.99:60693 -> 91.121.122.64:5060

BYE sip:91.121.122.64 SIP/2.0.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-99ee2deb.

From: <sip:41215500335@91.121.122.64:5080>;tag=17851a13cf31c10i0.

To: "41215500331" <sip:41215500331@91.121.122.64>;tag=as5e84cb1e.

Call-ID: 25355f53455ae3ea21255d7957838db1@91.121.122.64:5081.

CSeq: 101 BYE.

Max-Forwards: 70.

User-Agent: Linksys/SPA3000-3.1.10(GWd).

Content-Length: 0.

Note: this message doesn’t appear on the Wireshark datagram.

 

 

U 91.121.122.64:5060 -> 212.147.8.99:60693

SIP/2.0 481 Call leg/transaction does not exist.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-99ee2deb;received=212.147.8.99.

From: <sip:41215500335@91.121.122.64:5080>;tag=17851a13cf31c10i0.

To: "41215500331" <sip:41215500331@91.121.122.64>;tag=as5e84cb1e.

Call-ID: 25355f53455ae3ea21255d7957838db1@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.

 

[SCM]actwin,0,0,0,0;tracespa3000_in1.pcap - Graph Analysis
wireshark
2012-02-20 , 15:43:33

Wireshark file

 

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: 25355f53455ae3ea21255d7957838db1@91.121.122.64.

 

·        Messages that the destination phone answers to the SIP server (TRYING and RINGING):

 

Call-ID: 25355f53455ae3ea21255d7957838db1@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.

 

 

 

 

 

 

 

 


Case 2

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-22d2dda3.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8b8f6c0866bb8f5bo0.

To: <sip:0215500335@astrad.switzernet.com>.

Call-ID: e421a74c-1ceaece7@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=- 137540 137540 IN IP4 192.168.1.40.

s=-.

c=IN IP4 192.168.1.40.

t=0 0.

m=audio 16474 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-22d2dda3;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8b8f6c0866bb8f5bo0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as13c9726b.

Call-ID: e421a74c-1ceaece7@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="1dba8435".

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-22d2dda3.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8b8f6c0866bb8f5bo0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as13c9726b.

Call-ID: e421a74c-1ceaece7@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-3783930c.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8b8f6c0866bb8f5bo0.

To: <sip:0215500335@astrad.switzernet.com>.

Call-ID: e421a74c-1ceaece7@192.168.1.40.

CSeq: 102 INVITE.

Max-Forwards: 70.

Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="1dba8435",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="0cf588c69325da4ce51431be9c700eb8".

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=- 137540 137540 IN IP4 192.168.1.40.

s=-.

c=IN IP4 192.168.1.40.

t=0 0.

m=audio 16474 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-3783930c;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8b8f6c0866bb8f5bo0.

To: <sip:0215500335@astrad.switzernet.com>.

Call-ID: e421a74c-1ceaece7@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-3783930c;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8b8f6c0866bb8f5bo0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as10c60b71.

Call-ID: e421a74c-1ceaece7@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 26248 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:60693

INVITE sip:41215500335@91.121.122.64:5080 SIP/2.0.

Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-4462c5f8123.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4462c5f8;rport.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as312ff508.

To: <sip:41215500335@91.121.122.64:5080>.

Contact: <sip:91.121.122.64>.

Call-ID: 0e51f85231d31c907465866370ec9eac@91.121.122.64:5081

CSeq: 102 INVITE.

User-Agent: Asterisk PBX.

Max-Forwards: 70.

Date: Wed, 15 Feb 2012 10:30:52 GMT.

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.

Supported: replaces.

X-Astrad-RPL: 212.147.8.99:60693.

X-Astrad-RP: 1.

X-Astrad-SA: 2.

h323-conf-id: 1335474912-719832012-1027903356-1776158853.

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 21872 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:60693 -> 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=as312ff508.

Call-ID: 0e51f85231d31c907465866370ec9eac@91.121.122.64:5081.

CSeq: 102 INVITE.

Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-4462c5f8123.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4462c5f8;rport.

Server: Linksys/SPA3000-3.1.10(GWd).

Content-Length: 0.

 

 

 

U 212.147.8.99:60693 -> 91.121.122.64:5081

SIP/2.0 180 Ringing.

To: <sip:41215500335@91.121.122.64:5080>;tag=d5d726c8363b0e96i0.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as312ff508.

Call-ID: 0e51f85231d31c907465866370ec9eac@91.121.122.64:5081.

CSeq: 102 INVITE.

Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-4462c5f8123.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4462c5f8;rport.

Server: Linksys/SPA3000-3.1.10(GWd).

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-3783930c;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8b8f6c0866bb8f5bo0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as10c60b71.

Call-ID: e421a74c-1ceaece7@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:60693 -> 91.121.122.64:5081

SIP/2.0 200 OK.

To: <sip:41215500335@91.121.122.64:5080>;tag=d5d726c8363b0e96i0.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as312ff508.

Call-ID: 0e51f85231d31c907465866370ec9eac@91.121.122.64:5081.

CSeq: 102 INVITE.

Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-4462c5f8123.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4462c5f8;rport.

Contact: 41215500335 <sip:41215500335@91.121.122.64:5081>.

Server: Linksys/SPA3000-3.1.10(GWd).

Remote-Party-ID: 41215500335 <sip:41215500335@astrad.switzernet.com>;screen=yes;party=called.

Content-Length: 245.

Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.

Supported: x-sipura.

Content-Type: application/sdp.

.

v=0.

o=- 267327 267327 IN IP4 10.0.0.5.

s=-.

c=IN IP4 10.0.0.5.

t=0 0.

m=audio 16460 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-3783930c;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8b8f6c0866bb8f5bo0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as10c60b71.

Call-ID: e421a74c-1ceaece7@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 26248 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:60693

ACK sip:41215500335@91.121.122.64:5080 SIP/2.0.

Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-71e4812b123.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK71e4812b;rport.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as312ff508.

To: <sip:41215500335@91.121.122.64:5080>;tag=d5d726c8363b0e96i0.

Contact: <sip:91.121.122.64>.

Call-ID: 0e51f85231d31c907465866370ec9eac@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-be2bf641.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8b8f6c0866bb8f5bo0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as10c60b71.

Call-ID: e421a74c-1ceaece7@192.168.1.40.

CSeq: 102 ACK.

Max-Forwards: 70.

Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="1dba8435",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="0cf588c69325da4ce51431be9c700eb8".

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

BYE sip:0215500335@91.121.122.64 SIP/2.0.

Via: SIP/2.0/UDP 192.168.1.40:5060;branch=z9hG4bK-d4fe82d4.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8b8f6c0866bb8f5bo0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as10c60b71.

Call-ID: e421a74c-1ceaece7@192.168.1.40.

CSeq: 103 BYE.

Max-Forwards: 70.

Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="1dba8435",uri="sip:0215500335@91.121.122.64",algorithm=MD5,response="6e0f766c48bbb2b6697961a90ef42ac5".

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-d4fe82d4;received=178.198.29.66.

From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8b8f6c0866bb8f5bo0.

To: <sip:0215500335@astrad.switzernet.com>;tag=as10c60b71.

Call-ID: e421a74c-1ceaece7@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:60693

BYE sip:41215500335@91.121.122.64:5080 SIP/2.0.

Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-4c460676123.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4c460676;rport.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as312ff508.

To: <sip:41215500335@91.121.122.64:5080>;tag=d5d726c8363b0e96i0.

Call-ID: 0e51f85231d31c907465866370ec9eac@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:60693 -> 91.121.122.64:5081

SIP/2.0 481 Call Leg/Transaction Does Not Exist.

To: <sip:41215500335@91.121.122.64:5080>;tag=d5d726c8363b0e96i0.

From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as312ff508.

Call-ID: 0e51f85231d31c907465866370ec9eac@91.121.122.64.

CSeq: 103 BYE.

Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-4c460676123.

Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4c460676;rport.

Server: Linksys/SPA3000-3.1.10(GWd).

Content-Length: 0.

Note: this message doesn’t appear on the Wireshark datagram.

 

 

U 212.147.8.99:60693 -> 91.121.122.64:5060

BYE sip:91.121.122.64 SIP/2.0.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-12f50453.

From: <sip:41215500335@91.121.122.64:5080>;tag=d5d726c8363b0e96i0.

To: "41215500331" <sip:41215500331@91.121.122.64>;tag=as312ff508.

Call-ID: 0e51f85231d31c907465866370ec9eac@91.121.122.64:5081.

CSeq: 101 BYE.

Max-Forwards: 70.

User-Agent: Linksys/SPA3000-3.1.10(GWd).

Content-Length: 0.

 

 

 

U 91.121.122.64:5060 -> 212.147.8.99:60693

SIP/2.0 481 Call leg/transaction does not exist.

Via: SIP/2.0/UDP 192.168.1.132:49154;branch=z9hG4bK-12f50453;received=212.147.8.99.

From: <sip:41215500335@91.121.122.64:5080>;tag=d5d726c8363b0e96i0.

To: "41215500331" <sip:41215500331@91.121.122.64>;tag=as312ff508.

Call-ID: 0e51f85231d31c907465866370ec9eac@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.

 

[SCM]actwin,0,0,0,0;tracespa3000_in2.pcap - Graph Analysis
wireshark
2012-02-20 , 16:10:21

Wireshark file

 

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).