Outgoing and incoming call test with GXP1400 and Netgear N150 WNR1000 router
Created on 2012-02-23 by David Gómez
Switzernet
This document describes the test performed with a GXP1400 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:63945 -> 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=z9hG4bK2056735590;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=1492597744.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 945571722-5060-3@BA.A.A.J.
CSeq: 10 INVITE.
Contact: <sip:41215500335@192.168.1.132:49156>.
Max-Forwards: 70.
User-Agent: Grandstream GXP1400 1.0.1.67.
Privacy: none.
P-Preferred-Identity: <sip:41215500335@astrad.switzernet.com>.
Supported: replaces, path, timer.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Type: application/sdp.
Accept: application/sdp, application/dtmf-relay.
Content-Length: 387.
.
v=0.
o=41215500335 8000 8000 IN IP4 192.168.1.132.
s=SIP Call.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 5004 RTP/AVP 0 8 18 4 2 97 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:97 iLBC/8000.
a=fmtp:97 mode=20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
U 91.121.122.64:5060 -> 212.147.8.99:63945
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK2056735590;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=1492597744.
To: <sip:0215500331@astrad.switzernet.com>;tag=as333de706.
Call-ID: 945571722-5060-3@BA.A.A.J.
CSeq: 10 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Proxy-Authenticate: Digest algorithm=MD5, realm="switzernet", nonce="46304aff".
Content-Length: 0.
U 212.147.8.99:63945 -> 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=z9hG4bK2056735590;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=1492597744.
To: <sip:0215500331@astrad.switzernet.com>;tag=as333de706.
Call-ID: 945571722-5060-3@BA.A.A.J.
CSeq: 10 ACK.
Content-Length: 0.
U 212.147.8.99:63945 -> 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=z9hG4bK544168660;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=1492597744.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 945571722-5060-3@BA.A.A.J.
CSeq: 11 INVITE.
Contact: <sip:41215500335@192.168.1.132:49156>.
Proxy-Authorization: Digest username="41215500335", realm="switzernet", nonce="46304aff", uri="sip:0215500331@astrad.switzernet.com", response="e03ad9854edef7174d39442464428146", algorithm=MD5.
Max-Forwards: 70.
User-Agent: Grandstream GXP1400 1.0.1.67.
Privacy: none.
P-Preferred-Identity: <sip:41215500335@astrad.switzernet.com>.
Supported: replaces, path, timer.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Type: application/sdp.
Accept: application/sdp, application/dtmf-relay.
Content-Length: 387.
.
v=0.
o=41215500335 8000 8000 IN IP4 192.168.1.132.
s=SIP Call.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 5004 RTP/AVP 0 8 18 4 2 97 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:97 iLBC/8000.
a=fmtp:97 mode=20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
U 91.121.122.64:5060 -> 212.147.8.99:63945
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK544168660;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=1492597744.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 945571722-5060-3@BA.A.A.J.
CSeq: 11 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@178.198.29.66:1028 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK06215329;rport.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as46eaa98c.
To: <sip:41215500331@178.198.29.66:1028>.
Contact: <sip:41215500335@91.121.122.64>.
Call-ID: 4627bca912b9a9b475597494065f9e43@91.121.122.64.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 14:13:29 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
h323-conf-id: 1572275948-900760316-899902631-347379769.
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 17544 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@178.198.29.66:1028>.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as46eaa98c.
Call-ID: 4627bca912b9a9b475597494065f9e43@91.121.122.64.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK06215329.
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=fd6da85540c39a19i0.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as46eaa98c.
Call-ID: 4627bca912b9a9b475597494065f9e43@91.121.122.64.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK06215329.
Server: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 91.121.122.64:5060 -> 212.147.8.99:63945
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK544168660;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=1492597744.
To: <sip:0215500331@astrad.switzernet.com>;tag=as0f173bbc.
Call-ID: 945571722-5060-3@BA.A.A.J.
CSeq: 11 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=fd6da85540c39a19i0.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as46eaa98c.
Call-ID: 4627bca912b9a9b475597494065f9e43@91.121.122.64.
CSeq: 102 INVITE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK06215329.
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
Server: Linksys/SPA921-5.1.8.
Content-Length: 208.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
.
v=0.
o=- 1473515 1473515 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16424 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=z9hG4bK41fe51c7;rport.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as46eaa98c.
To: <sip:41215500331@178.198.29.66:1028>;tag=fd6da85540c39a19i0.
Contact: <sip:41215500335@91.121.122.64>.
Call-ID: 4627bca912b9a9b475597494065f9e43@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:63945
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK544168660;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=1492597744.
To: <sip:0215500331@astrad.switzernet.com>;tag=as0f173bbc.
Call-ID: 945571722-5060-3@BA.A.A.J.
CSeq: 11 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 6180 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:63945
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK544168660;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=1492597744.
To: <sip:0215500331@astrad.switzernet.com>;tag=as0f173bbc.
Call-ID: 945571722-5060-3@BA.A.A.J.
CSeq: 11 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 6180 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=z9hG4bK5b601a88;rport.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as46eaa98c.
To: <sip:41215500331@178.198.29.66:1028>;tag=fd6da85540c39a19i0.
Call-ID: 4627bca912b9a9b475597494065f9e43@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=fd6da85540c39a19i0.
From: "41215500335" <sip:41215500335@91.121.122.64>;tag=as46eaa98c.
Call-ID: 4627bca912b9a9b475597494065f9e43@91.121.122.64.
CSeq: 103 BYE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK5b601a88.
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:63945 -> 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=z9hG4bK1280924884;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=1965385521.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 222711357-5060-4@BA.A.A.J.
CSeq: 20 INVITE.
Contact: <sip:41215500335@192.168.1.132:49156>.
Max-Forwards: 70.
User-Agent: Grandstream GXP1400 1.0.1.67.
Privacy: none.
P-Preferred-Identity: <sip:41215500335@astrad.switzernet.com>.
Supported: replaces, path, timer.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Type: application/sdp.
Accept: application/sdp, application/dtmf-relay.
Content-Length: 387.
.
v=0.
o=41215500335 8000 8000 IN IP4 192.168.1.132.
s=SIP Call.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 5004 RTP/AVP 0 8 18 4 2 97 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:97 iLBC/8000.
a=fmtp:97 mode=20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
U 91.121.122.64:5060 -> 212.147.8.99:63945
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK1280924884;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=1965385521.
To: <sip:0215500331@astrad.switzernet.com>;tag=as7212adcd.
Call-ID: 222711357-5060-4@BA.A.A.J.
CSeq: 20 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Proxy-Authenticate: Digest algorithm=MD5, realm="switzernet", nonce="7d1a3668".
Content-Length: 0.
U 212.147.8.99:63945 -> 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=z9hG4bK1280924884;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=1965385521.
To: <sip:0215500331@astrad.switzernet.com>;tag=as7212adcd.
Call-ID: 222711357-5060-4@BA.A.A.J.
CSeq: 20 ACK.
Content-Length: 0.
U 212.147.8.99:63945 -> 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=z9hG4bK144265022;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=1965385521.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 222711357-5060-4@BA.A.A.J.
CSeq: 21 INVITE.
Contact: <sip:41215500335@192.168.1.132:49156>.
Proxy-Authorization: Digest username="41215500335", realm="switzernet", nonce="7d1a3668", uri="sip:0215500331@astrad.switzernet.com", response="fa2059656991561e6842d0741b201d02", algorithm=MD5.
Max-Forwards: 70.
User-Agent: Grandstream GXP1400 1.0.1.67.
Privacy: none.
P-Preferred-Identity: <sip:41215500335@astrad.switzernet.com>.
Supported: replaces, path, timer.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Type: application/sdp.
Accept: application/sdp, application/dtmf-relay.
Content-Length: 387.
.
v=0.
o=41215500335 8000 8000 IN IP4 192.168.1.132.
s=SIP Call.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 5004 RTP/AVP 0 8 18 4 2 97 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:97 iLBC/8000.
a=fmtp:97 mode=20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
U 91.121.122.64:5060 -> 212.147.8.99:63945
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK144265022;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=1965385521.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 222711357-5060-4@BA.A.A.J.
CSeq: 21 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:63945
SIP/2.0 302 Moved Temporarily.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK144265022;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=1965385521.
To: <sip:0215500331@astrad.switzernet.com>;tag=as06532665.
Call-ID: 222711357-5060-4@BA.A.A.J.
CSeq: 21 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:63945 -> 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=z9hG4bK144265022;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=1965385521.
To: <sip:0215500331@astrad.switzernet.com>;tag=as06532665.
Call-ID: 222711357-5060-4@BA.A.A.J.
CSeq: 21 ACK.
Content-Length: 0.
U 212.147.8.99:63945 -> 91.121.122.64:5060
INVITE sip:0215500331@astproxy.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK277441845;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=907362137.
To: <sip:0215500331@astproxy.switzernet.com>.
Call-ID: 791844085-5060-15@BA.A.A.J.
CSeq: 22 INVITE.
Contact: <sip:41215500335@192.168.1.132:49156>.
Proxy-Authorization: Digest username="41215500335", realm="switzernet", nonce="7d1a3668", uri="sip:0215500331@astrad.switzernet.com", response="fa2059656991561e6842d0741b201d02", algorithm=MD5.
Max-Forwards: 70.
User-Agent: Grandstream GXP1400 1.0.1.67.
Privacy: none.
P-Preferred-Identity: <sip:41215500335@astrad.switzernet.com>.
Supported: replaces, path, timer.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Type: application/sdp.
Accept: application/sdp, application/dtmf-relay.
Content-Length: 387.
.
v=0.
o=41215500335 8000 8000 IN IP4 192.168.1.132.
s=SIP Call.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 5004 RTP/AVP 0 8 18 4 2 97 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:97 iLBC/8000.
a=fmtp:97 mode=20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
U 91.121.122.64:5060 -> 212.147.8.99:63945
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK277441845;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=907362137.
To: <sip:0215500331@astproxy.switzernet.com>;tag=as362fb4e1.
Call-ID: 791844085-5060-15@BA.A.A.J.
CSeq: 22 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Proxy-Authenticate: Digest algorithm=MD5, realm="switzernet", nonce="70fcf23d".
Content-Length: 0.
U 212.147.8.99:63945 -> 91.121.122.64:5060
ACK sip:0215500331@astproxy.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK277441845;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=907362137.
To: <sip:0215500331@astproxy.switzernet.com>;tag=as362fb4e1.
Call-ID: 791844085-5060-15@BA.A.A.J.
CSeq: 22 ACK.
Content-Length: 0.
U 212.147.8.99:63945 -> 91.121.122.64:5060
INVITE sip:0215500331@astproxy.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK1453924326;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=907362137.
To: <sip:0215500331@astproxy.switzernet.com>.
Call-ID: 791844085-5060-15@BA.A.A.J.
CSeq: 23 INVITE.
Contact: <sip:41215500335@192.168.1.132:49156>.
Proxy-Authorization: Digest username="41215500335", realm="switzernet", nonce="70fcf23d", uri="sip:0215500331@astproxy.switzernet.com", response="974d62518cbce26eff24fbbf2f900fb2", algorithm=MD5.
Max-Forwards: 70.
User-Agent: Grandstream GXP1400 1.0.1.67.
Privacy: none.
P-Preferred-Identity: <sip:41215500335@astrad.switzernet.com>.
Supported: replaces, path, timer.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Type: application/sdp.
Accept: application/sdp, application/dtmf-relay.
Content-Length: 387.
.
v=0.
o=41215500335 8000 8000 IN IP4 192.168.1.132.
s=SIP Call.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 5004 RTP/AVP 0 8 18 4 2 97 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:97 iLBC/8000.
a=fmtp:97 mode=20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
U 91.121.122.64:5060 -> 212.147.8.99:63945
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK1453924326;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=907362137.
To: <sip:0215500331@astproxy.switzernet.com>.
Call-ID: 791844085-5060-15@BA.A.A.J.
CSeq: 23 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:63945
SIP/2.0 302 Moved Temporarily.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK1453924326;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=907362137.
To: <sip:0215500331@astproxy.switzernet.com>;tag=as47bc829f.
Call-ID: 791844085-5060-15@BA.A.A.J.
CSeq: 23 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:63945 -> 91.121.122.64:5060
ACK sip:0215500331@astproxy.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK1453924326;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=907362137.
To: <sip:0215500331@astproxy.switzernet.com>;tag=as47bc829f.
Call-ID: 791844085-5060-15@BA.A.A.J.
CSeq: 23 ACK.
Content-Length: 0.
…
…
With this scheme, the outgoing calls don’t work. The problem is that the phone doesn’t understand the 302 Moved Temporarily message and always send the messages to the ASTRAD server (Route: <sip:astrad.switzernet.com:5060;lr>), doing a loop.
Trying to solve the loop problem that we have with incoming calls in “Case 1”, we use another Perl script configuration.
U 212.147.8.99:63945 -> 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=z9hG4bK1710462027;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=141418503.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 467941243-5060-1206@BA.A.A.J.
CSeq: 40 INVITE.
Contact: <sip:41215500335@192.168.1.132:49156>.
Max-Forwards: 70.
User-Agent: Grandstream GXP1400 1.0.1.67.
Privacy: none.
P-Preferred-Identity: <sip:41215500335@astrad.switzernet.com>.
Supported: replaces, path, timer.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Type: application/sdp.
Accept: application/sdp, application/dtmf-relay.
Content-Length: 387.
.
v=0.
o=41215500335 8000 8000 IN IP4 192.168.1.132.
s=SIP Call.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 5004 RTP/AVP 0 8 18 4 2 97 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:97 iLBC/8000.
a=fmtp:97 mode=20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
U 91.121.122.64:5060 -> 212.147.8.99:63945
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK1710462027;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=141418503.
To: <sip:0215500331@astrad.switzernet.com>;tag=as74d1e824.
Call-ID: 467941243-5060-1206@BA.A.A.J.
CSeq: 40 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Proxy-Authenticate: Digest algorithm=MD5, realm="switzernet", nonce="5d746669".
Content-Length: 0.
U 212.147.8.99:63945 -> 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=z9hG4bK1710462027;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=141418503.
To: <sip:0215500331@astrad.switzernet.com>;tag=as74d1e824.
Call-ID: 467941243-5060-1206@BA.A.A.J.
CSeq: 40 ACK.
Content-Length: 0.
U 212.147.8.99:63945 -> 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=z9hG4bK193079738;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=141418503.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 467941243-5060-1206@BA.A.A.J.
CSeq: 41 INVITE.
Contact: <sip:41215500335@192.168.1.132:49156>.
Proxy-Authorization: Digest username="41215500335", realm="switzernet", nonce="5d746669", uri="sip:0215500331@astrad.switzernet.com", response="e1351e1315e8222b7d86a07658ecb248", algorithm=MD5.
Max-Forwards: 70.
User-Agent: Grandstream GXP1400 1.0.1.67.
Privacy: none.
P-Preferred-Identity: <sip:41215500335@astrad.switzernet.com>.
Supported: replaces, path, timer.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Type: application/sdp.
Accept: application/sdp, application/dtmf-relay.
Content-Length: 387.
.
v=0.
o=41215500335 8000 8000 IN IP4 192.168.1.132.
s=SIP Call.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 5004 RTP/AVP 0 8 18 4 2 97 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:97 iLBC/8000.
a=fmtp:97 mode=20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
U 91.121.122.64:5060 -> 212.147.8.99:63945
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK193079738;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=141418503.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 467941243-5060-1206@BA.A.A.J.
CSeq: 41 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:63945
SIP/2.0 302 Moved Temporarily.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK193079738;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=141418503.
To: <sip:0215500331@astrad.switzernet.com>;tag=as75bbc462.
Call-ID: 467941243-5060-1206@BA.A.A.J.
CSeq: 41 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:63945 -> 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=z9hG4bK193079738;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=141418503.
To: <sip:0215500331@astrad.switzernet.com>;tag=as75bbc462.
Call-ID: 467941243-5060-1206@BA.A.A.J.
CSeq: 41 ACK.
Content-Length: 0.
U 212.147.8.99:63945 -> 91.121.122.64:5060
INVITE sip:0215500331@astproxy.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK723802578;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=1416859330.
To: <sip:0215500331@astproxy.switzernet.com>.
Call-ID: 663034622-5060-1217@BA.A.A.J.
CSeq: 42 INVITE.
Contact: <sip:41215500335@192.168.1.132:49156>.
Proxy-Authorization: Digest username="41215500335", realm="switzernet", nonce="5d746669", uri="sip:0215500331@astrad.switzernet.com", response="e1351e1315e8222b7d86a07658ecb248", algorithm=MD5.
Max-Forwards: 70.
User-Agent: Grandstream GXP1400 1.0.1.67.
Privacy: none.
P-Preferred-Identity: <sip:41215500335@astrad.switzernet.com>.
Supported: replaces, path, timer.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Type: application/sdp.
Accept: application/sdp, application/dtmf-relay.
Content-Length: 387.
.
v=0.
o=41215500335 8000 8000 IN IP4 192.168.1.132.
s=SIP Call.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 5004 RTP/AVP 0 8 18 4 2 97 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:97 iLBC/8000.
a=fmtp:97 mode=20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
As happen in “Outgoing calls - Case 1” the caller phone don’t understand the 302 Moved Temporarily message and get into a loop with the ASTRAD server.
Trying to solve the loop problem that we have, we use another Perl script configuration.
U 212.147.8.99:63945 -> 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=z9hG4bK792831157;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=668506023.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 860703755-5060-2157@BA.A.A.J.
CSeq: 50 INVITE.
Contact: <sip:41215500335@192.168.1.132:49156>.
Max-Forwards: 70.
User-Agent: Grandstream GXP1400 1.0.1.67.
Privacy: none.
P-Preferred-Identity: <sip:41215500335@astrad.switzernet.com>.
Supported: replaces, path, timer.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Type: application/sdp.
Accept: application/sdp, application/dtmf-relay.
Content-Length: 387.
.
v=0.
o=41215500335 8000 8000 IN IP4 192.168.1.132.
s=SIP Call.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 5004 RTP/AVP 0 8 18 4 2 97 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:97 iLBC/8000.
a=fmtp:97 mode=20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
U 91.121.122.64:5060 -> 212.147.8.99:63945
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK792831157;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=668506023.
To: <sip:0215500331@astrad.switzernet.com>;tag=as12b2e796.
Call-ID: 860703755-5060-2157@BA.A.A.J.
CSeq: 50 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Proxy-Authenticate: Digest algorithm=MD5, realm="switzernet", nonce="016c1b9f".
Content-Length: 0.
U 212.147.8.99:63945 -> 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=z9hG4bK792831157;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=668506023.
To: <sip:0215500331@astrad.switzernet.com>;tag=as12b2e796.
Call-ID: 860703755-5060-2157@BA.A.A.J.
CSeq: 50 ACK.
Content-Length: 0.
U 212.147.8.99:63945 -> 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=z9hG4bK131693817;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=668506023.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 860703755-5060-2157@BA.A.A.J.
CSeq: 51 INVITE.
Contact: <sip:41215500335@192.168.1.132:49156>.
Proxy-Authorization: Digest username="41215500335", realm="switzernet", nonce="016c1b9f", uri="sip:0215500331@astrad.switzernet.com", response="8678eabe22d63d41a76ffc1a24cd2404", algorithm=MD5.
Max-Forwards: 70.
User-Agent: Grandstream GXP1400 1.0.1.67.
Privacy: none.
P-Preferred-Identity: <sip:41215500335@astrad.switzernet.com>.
Supported: replaces, path, timer.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Type: application/sdp.
Accept: application/sdp, application/dtmf-relay.
Content-Length: 387.
.
v=0.
o=41215500335 8000 8000 IN IP4 192.168.1.132.
s=SIP Call.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 5004 RTP/AVP 0 8 18 4 2 97 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:97 iLBC/8000.
a=fmtp:97 mode=20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
U 91.121.122.64:5060 -> 212.147.8.99:63945
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK131693817;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=668506023.
To: <sip:0215500331@astrad.switzernet.com>.
Call-ID: 860703755-5060-2157@BA.A.A.J.
CSeq: 51 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:63945
SIP/2.0 302 Moved Temporarily.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK131693817;received=212.147.8.99;rport=63945.
From: <sip:41215500335@astrad.switzernet.com>;tag=668506023.
To: <sip:0215500331@astrad.switzernet.com>;tag=as39f217e1.
Call-ID: 860703755-5060-2157@BA.A.A.J.
CSeq: 51 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:63945 -> 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=z9hG4bK131693817;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=668506023.
To: <sip:0215500331@astrad.switzernet.com>;tag=as39f217e1.
Call-ID: 860703755-5060-2157@BA.A.A.J.
CSeq: 51 ACK.
Content-Length: 0.
U 212.147.8.99:63945 -> 91.121.122.64:5060
INVITE sip:0215500331@astproxy.switzernet.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK1636125130;rport.
Route: <sip:astrad.switzernet.com:5060;lr>.
From: <sip:41215500335@astrad.switzernet.com>;tag=1325580454.
To: <sip:0215500331@astproxy.switzernet.com>.
Call-ID: 2057683883-5060-2168@BA.A.A.J.
CSeq: 52 INVITE.
Contact: <sip:41215500335@192.168.1.132:49156>.
Proxy-Authorization: Digest username="41215500335", realm="switzernet", nonce="016c1b9f", uri="sip:0215500331@astrad.switzernet.com", response="8678eabe22d63d41a76ffc1a24cd2404", algorithm=MD5.
Max-Forwards: 70.
User-Agent: Grandstream GXP1400 1.0.1.67.
Privacy: none.
P-Preferred-Identity: <sip:41215500335@astrad.switzernet.com>.
Supported: replaces, path, timer.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Type: application/sdp.
Accept: application/sdp, application/dtmf-relay.
Content-Length: 387.
.
v=0.
o=41215500335 8000 8000 IN IP4 192.168.1.132.
s=SIP Call.
c=IN IP4 192.168.1.132.
t=0 0.
m=audio 5004 RTP/AVP 0 8 18 4 2 97 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:4 G723/8000.
a=rtpmap:2 G726-32/8000.
a=rtpmap:97 iLBC/8000.
a=fmtp:97 mode=20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
As we can see, we still have the problem with the caller phone redirection. We ca conclude that this phone model doesn’t support the 302 Moved Temporarily message.
Also we can conclude that the GXP1400 couldn’t reach a destination if it’s connected to a Netgear N150 WNR1000 router.
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-720bfa96.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=e629b0b039f70186o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: b7fd7778-6fd4a95e@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: 397.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
.
v=0.
o=- 1525751 1525751 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16426 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-720bfa96;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=e629b0b039f70186o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as07216c1b.
Call-ID: b7fd7778-6fd4a95e@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="13b53c65".
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-720bfa96.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=e629b0b039f70186o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as07216c1b.
Call-ID: b7fd7778-6fd4a95e@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-3f237712.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=e629b0b039f70186o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: b7fd7778-6fd4a95e@192.168.1.40.
CSeq: 102 INVITE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="13b53c65",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="464a3e802f145d93a49645f791207c7b".
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
Expires: 240.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 397.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
.
v=0.
o=- 1525751 1525751 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16426 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-3f237712;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=e629b0b039f70186o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: b7fd7778-6fd4a95e@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-3f237712;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=e629b0b039f70186o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as1bc2f848.
Call-ID: b7fd7778-6fd4a95e@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 10262 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:63945
INVITE sip:41215500335@212.147.8.99:63945 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK23c85fb8;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as084536a5.
To: <sip:41215500335@212.147.8.99:63945>.
Contact: <sip:41215500331@91.121.122.64>.
Call-ID: 2fa5e2a97cfe3d0023a061b2294cc7c8@91.121.122.64.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 14:22:14 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
h323-conf-id: 1208555419-1533983119-459983757-544034533.
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 7920 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:63945
INVITE sip:41215500335@212.147.8.99:63945 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK23c85fb8;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as084536a5.
To: <sip:41215500335@212.147.8.99:63945>.
Contact: <sip:41215500331@91.121.122.64>.
Call-ID: 2fa5e2a97cfe3d0023a061b2294cc7c8@91.121.122.64.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 14:22:14 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
h323-conf-id: 1208555419-1533983119-459983757-544034533.
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 7920 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:63945
CANCEL sip:41215500335@212.147.8.99:63945 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK23c85fb8;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as084536a5.
To: <sip:41215500335@212.147.8.99:63945>.
Call-ID: 2fa5e2a97cfe3d0023a061b2294cc7c8@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-3f237712;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=e629b0b039f70186o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as1bc2f848.
Call-ID: b7fd7778-6fd4a95e@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-3f237712.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=e629b0b039f70186o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as1bc2f848.
Call-ID: b7fd7778-6fd4a95e@192.168.1.40.
CSeq: 102 ACK.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="13b53c65",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="464a3e802f145d93a49645f791207c7b".
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:63945
CANCEL sip:41215500335@212.147.8.99:63945 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK23c85fb8;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as084536a5.
To: <sip:41215500335@212.147.8.99:63945>.
Call-ID: 2fa5e2a97cfe3d0023a061b2294cc7c8@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-44765210.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=a4d9fe67c764f7b0o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: f60441f3-82dea994@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: 397.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
.
v=0.
o=- 1542252 1542252 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16432 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-44765210;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=a4d9fe67c764f7b0o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as0b69ed9a.
Call-ID: f60441f3-82dea994@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="4b5a6a65".
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-44765210.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=a4d9fe67c764f7b0o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as0b69ed9a.
Call-ID: f60441f3-82dea994@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-92094920.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=a4d9fe67c764f7b0o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: f60441f3-82dea994@192.168.1.40.
CSeq: 102 INVITE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="4b5a6a65",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="3304c503a2cea2781817610caff17d3e".
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
Expires: 240.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 397.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
.
v=0.
o=- 1542252 1542252 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16432 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-92094920;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=a4d9fe67c764f7b0o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: f60441f3-82dea994@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-92094920;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=a4d9fe67c764f7b0o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as6d5941d0.
Call-ID: f60441f3-82dea994@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 9230 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:63945
INVITE sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-08f21739123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK08f21739;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as318bda49.
To: <sip:41215500335@91.121.122.64:5080>.
Contact: <sip:91.121.122.64>.
Call-ID: 7f33a409408ebbea6f86ff1752f1a2b1@91.121.122.64.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 14:24:59 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
X-Astrad-RPL: 212.147.8.99:63945.
X-Astrad-RP: 1.
X-Astrad-SA: 1.
h323-conf-id: 309564664-1495774606-424978452-1709712296.
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 9746 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:63945 -> 91.121.122.64:5081
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-08f21739123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK08f21739;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as318bda49.
To: <sip:41215500335@91.121.122.64:5080>.
Call-ID: 7f33a409408ebbea6f86ff1752f1a2b1@91.121.122.64:5081.
CSeq: 102 INVITE.
Supported: replaces, path, timer.
User-Agent: Grandstream GXP1400 1.0.1.67.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Length: 0.
Note: this message doesn’t appear on the Wireshark datagram.
U 212.147.8.99:63945 -> 91.121.122.64:5081
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-08f21739123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK08f21739;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as318bda49.
To: <sip:41215500335@91.121.122.64:5080>;tag=765178058.
Call-ID: 7f33a409408ebbea6f86ff1752f1a2b1@91.121.122.64:5081.
CSeq: 102 INVITE.
Contact: <sip:41215500335@91.121.122.64:5081>.
Supported: replaces, path, timer.
User-Agent: Grandstream GXP1400 1.0.1.67.
Allow-Events: talk, hold.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
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-92094920;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=a4d9fe67c764f7b0o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as6d5941d0.
Call-ID: f60441f3-82dea994@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:63945 -> 91.121.122.64:5081
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-08f21739123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK08f21739;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as318bda49.
To: <sip:41215500335@91.121.122.64:5080>;tag=765178058.
Call-ID: 7f33a409408ebbea6f86ff1752f1a2b1@91.121.122.64:5081.
CSeq: 102 INVITE.
Contact: <sip:41215500335@91.121.122.64:5081>.
Supported: replaces, path, timer.
User-Agent: Grandstream GXP1400 1.0.1.67.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Type: application/sdp.
Content-Length: 383.
.
v=0.
o=41215500335 8000 8000 IN IP4 10.0.0.9.
s=SIP Call.
c=IN IP4 10.0.0.9.
t=0 0.
m=audio 5004 RTP/AVP 0 8 18 4 111 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
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-15.
a=silenceSupp:off - - - -.
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-92094920;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=a4d9fe67c764f7b0o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as6d5941d0.
Call-ID: f60441f3-82dea994@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 9230 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:63945
ACK sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-43c39a23123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK43c39a23;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as318bda49.
To: <sip:41215500335@91.121.122.64:5080>;tag=765178058.
Contact: <sip:91.121.122.64>.
Call-ID: 7f33a409408ebbea6f86ff1752f1a2b1@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-64ef061d.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=a4d9fe67c764f7b0o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as6d5941d0.
Call-ID: f60441f3-82dea994@192.168.1.40.
CSeq: 102 ACK.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="4b5a6a65",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="3304c503a2cea2781817610caff17d3e".
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=z9hG4bK4dda2f9f;rport.
From: <sip:0215500335@astrad.switzernet.com>;tag=as6d5941d0.
To: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=a4d9fe67c764f7b0o0.
Call-ID: f60441f3-82dea994@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:63945
BYE sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-376f21d8123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK376f21d8;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as318bda49.
To: <sip:41215500335@91.121.122.64:5080>;tag=765178058.
Call-ID: 7f33a409408ebbea6f86ff1752f1a2b1@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=a4d9fe67c764f7b0o0.
From: <sip:0215500335@astrad.switzernet.com>;tag=as6d5941d0.
Call-ID: f60441f3-82dea994@192.168.1.40.
CSeq: 102 BYE.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK4dda2f9f.
Server: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 212.147.8.99:63945 -> 91.121.122.64:5081
SIP/2.0 481 Call Leg/Transaction Does Not Exist.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-376f21d8123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK376f21d8;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as318bda49.
To: <sip:41215500335@91.121.122.64:5080>;tag=765178058.
Call-ID: 7f33a409408ebbea6f86ff1752f1a2b1@91.121.122.64.
CSeq: 103 BYE.
Supported: replaces, path, timer.
User-Agent: Grandstream GXP1400 1.0.1.67.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
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: 7f33a409408ebbea6f86ff1752f1a2b1@91.121.122.64.
· Messages that the destination phone answers to the SIP server (TRYING and RINGING):
Call-ID: 7f33a409408ebbea6f86ff1752f1a2b1@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-52d800a1.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8815559f6392e548o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: 3ba91ab-77d9f8ac@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: 397.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
.
v=0.
o=- 1549276 1549276 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16434 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-52d800a1;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8815559f6392e548o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as43bbd55b.
Call-ID: 3ba91ab-77d9f8ac@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="2b934ea4".
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-52d800a1.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8815559f6392e548o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as43bbd55b.
Call-ID: 3ba91ab-77d9f8ac@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-93c24d9a.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8815559f6392e548o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: 3ba91ab-77d9f8ac@192.168.1.40.
CSeq: 102 INVITE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="2b934ea4",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="f5d3213e0dbabb714505d4930ea1d9b2".
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
Expires: 240.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 397.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
Supported: replaces.
Content-Type: application/sdp.
.
v=0.
o=- 1549276 1549276 IN IP4 192.168.1.40.
s=-.
c=IN IP4 192.168.1.40.
t=0 0.
m=audio 16434 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-93c24d9a;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8815559f6392e548o0.
To: <sip:0215500335@astrad.switzernet.com>.
Call-ID: 3ba91ab-77d9f8ac@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-93c24d9a;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8815559f6392e548o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as1b6e390d.
Call-ID: 3ba91ab-77d9f8ac@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 18120 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:63945
INVITE sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-2e2bb38b123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK2e2bb38b;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as2a053509.
To: <sip:41215500335@91.121.122.64:5080>.
Contact: <sip:91.121.122.64>.
Call-ID: 35b281f33010627162646003489b94ba@91.121.122.64:5081
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Max-Forwards: 70.
Date: Wed, 15 Feb 2012 14:26:10 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
X-Astrad-RPL: 212.147.8.99:63945.
X-Astrad-RP: 1.
X-Astrad-SA: 2.
h323-conf-id: 565947222-678526150-369837693-1926016832.
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 11098 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:63945 -> 91.121.122.64:5081
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-2e2bb38b123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK2e2bb38b;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as2a053509.
To: <sip:41215500335@91.121.122.64:5080>.
Call-ID: 35b281f33010627162646003489b94ba@91.121.122.64:5081.
CSeq: 102 INVITE.
Supported: replaces, path, timer.
User-Agent: Grandstream GXP1400 1.0.1.67.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Length: 0.
U 212.147.8.99:63945 -> 91.121.122.64:5081
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-2e2bb38b123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK2e2bb38b;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as2a053509.
To: <sip:41215500335@91.121.122.64:5080>;tag=233480075.
Call-ID: 35b281f33010627162646003489b94ba@91.121.122.64:5081.
CSeq: 102 INVITE.
Contact: <sip:41215500335@91.121.122.64:5081>.
Supported: replaces, path, timer.
User-Agent: Grandstream GXP1400 1.0.1.67.
Allow-Events: talk, hold.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
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-93c24d9a;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8815559f6392e548o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as1b6e390d.
Call-ID: 3ba91ab-77d9f8ac@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:63945 -> 91.121.122.64:5081
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-2e2bb38b123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK2e2bb38b;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as2a053509.
To: <sip:41215500335@91.121.122.64:5080>;tag=233480075.
Call-ID: 35b281f33010627162646003489b94ba@91.121.122.64:5081.
CSeq: 102 INVITE.
Contact: <sip:41215500335@91.121.122.64:5081>.
Supported: replaces, path, timer.
User-Agent: Grandstream GXP1400 1.0.1.67.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Type: application/sdp.
Content-Length: 383.
.
v=0.
o=41215500335 8000 8000 IN IP4 10.0.0.9.
s=SIP Call.
c=IN IP4 10.0.0.9.
t=0 0.
m=audio 5004 RTP/AVP 0 8 18 4 111 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
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-15.
a=silenceSupp:off - - - -.
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-93c24d9a;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8815559f6392e548o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as1b6e390d.
Call-ID: 3ba91ab-77d9f8ac@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 18120 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:63945
ACK sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-68eaf23b123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK68eaf23b;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as2a053509.
To: <sip:41215500335@91.121.122.64:5080>;tag=233480075.
Contact: <sip:91.121.122.64>.
Call-ID: 35b281f33010627162646003489b94ba@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-bb526680.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8815559f6392e548o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as1b6e390d.
Call-ID: 3ba91ab-77d9f8ac@192.168.1.40.
CSeq: 102 ACK.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="2b934ea4",uri="sip:0215500335@astrad.switzernet.com",algorithm=MD5,response="f5d3213e0dbabb714505d4930ea1d9b2".
Contact: "41215500331" <sip:41215500331@192.168.1.40:5060>.
User-Agent: Linksys/SPA921-5.1.8.
Content-Length: 0.
U 212.147.8.99:63945 -> 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=z9hG4bK901155543;rport.
From: <sip:41215500335@91.121.122.64:5080>;tag=233480075.
To: "41215500331" <sip:41215500331@91.121.122.64>;tag=as2a053509.
Call-ID: 35b281f33010627162646003489b94ba@91.121.122.64:5081.
CSeq: 103 BYE.
Contact: <sip:41215500335@192.168.1.132:49156>.
Max-Forwards: 70.
Supported: replaces, path, timer.
User-Agent: Grandstream GXP1400 1.0.1.67.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
Content-Length: 0.
U 91.121.122.64:5060 -> 212.147.8.99:63945
SIP/2.0 481 Call leg/transaction does not exist.
Via: SIP/2.0/UDP 192.168.1.132:49156;branch=z9hG4bK901155543;received=212.147.8.99;rport=63945.
From: <sip:41215500335@91.121.122.64:5080>;tag=233480075.
To: "41215500331" <sip:41215500331@91.121.122.64>;tag=as2a053509.
Call-ID: 35b281f33010627162646003489b94ba@91.121.122.64:5081.
CSeq: 103 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-924afbd2.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8815559f6392e548o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as1b6e390d.
Call-ID: 3ba91ab-77d9f8ac@192.168.1.40.
CSeq: 103 BYE.
Max-Forwards: 70.
Proxy-Authorization: Digest username="41215500331",realm="switzernet",nonce="2b934ea4",uri="sip:0215500335@91.121.122.64",algorithm=MD5,response="c9d36bb913da9eac1cc6bd0a24707a3f".
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-924afbd2;received=178.198.29.66.
From: "41215500331" <sip:41215500331@astrad.switzernet.com>;tag=8815559f6392e548o0.
To: <sip:0215500335@astrad.switzernet.com>;tag=as1b6e390d.
Call-ID: 3ba91ab-77d9f8ac@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:63945
BYE sip:41215500335@91.121.122.64:5080 SIP/2.0.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-58489328123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK58489328;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as2a053509.
To: <sip:41215500335@91.121.122.64:5080>;tag=233480075.
Call-ID: 35b281f33010627162646003489b94ba@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:63945 -> 91.121.122.64:5081
SIP/2.0 481 Call Leg/Transaction Does Not Exist.
Via: SIP/2.0/UDP 91.121.122.64:5081;branch=z9hG4bK-58489328123.
Via: SIP/2.0/UDP 91.121.122.64:5060;branch=z9hG4bK58489328;rport.
From: "41215500331" <sip:41215500331@91.121.122.64>;tag=as2a053509.
To: <sip:41215500335@91.121.122.64:5080>;tag=233480075.
Call-ID: 35b281f33010627162646003489b94ba@91.121.122.64.
CSeq: 103 BYE.
Supported: replaces, path, timer.
User-Agent: Grandstream GXP1400 1.0.1.67.
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE.
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).