[OpenSIPS-Devel] [ opensips-Bugs-3496501 ] advertised_address &enable_double_rr incompatible

SourceForge.net noreply at sourceforge.net
Mon Mar 5 12:16:42 CET 2012


Bugs item #3496501, was opened at 2012-03-03 00:13
Message generated for change (Comment added) made by vladut-paiu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3496501&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.7.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Vladut-Stefan Paiu (vladut-paiu)
Summary: advertised_address &enable_double_rr  incompatible

Initial Comment:
I'm trying to set up a opensips server on virtualBox. As it is behind nat, I need to use "advertised_address" and "advertised_port". It works fine when clients are using the same protocol, i.e. all using TCP. But when I "enable_double_rr  ", and when one client is using TCP while the other using UDP, problem appears:
Using UDP as the Caller, and TCP as the callee, UDP can't send ACK response to opensips server

After digging the log file. I found the two record-route generated by the server:
Record-Route: <sip:localhost:50600;transport=tcp;r2=on;lr>.
Record-Route: <sip:10.0.2.15;r2=on;lr>.
So it seems the advertised_address and port works on the first header, but no the second one, and the UDP client got trouble sending ACK to 10.0.2.15 as it is address inside the NAT.

Expected behavior: sip uri in both Record-Routes should be "sip:advertised_address:advertised_port"

opensips.cfg is attached, and ngrep file, logfile for UDP client are pasted below
ngrep.log
------------------------------------------------------------------------------------------------
interface: any
filter: (ip or ip6) and ( port 5060 )
match: .
#
U 2012/03/03 14:42:29.472821 10.0.2.2:5060 -> 10.0.2.15:5060
INVITE sip:dfeng at localhost SIP/2.0.
Via: SIP/2.0/UDP 172.16.87.250:5060;rport;branch=z9hG4bKPj153fe06d25ec4c2c9eb0e4dc0137c025.
Max-Forwards: 70.
From: <sip:tr071 at localhost>;tag=5f672e1f704d45f3866ac4386105309b.
To: <sip:dfeng at localhost>.
Contact: <sip:tr071 at 172.16.87.250:5060;ob>;+sip.ice.
Call-ID: 5b4c1b59e90143d69cca9e07ab00f5b9.
CSeq: 23987 INVITE.
Route: <sip:localhost:50600;lr>.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Supported: replaces, 100rel, timer, norefersub.
Session-Expires: 1800.
Min-SE: 90.
User-Agent: MicroSIP/3.0.8.
Content-Type: application/sdp.
Content-Length:   682.
.
v=0.
o=- 3539774550 3539774550 IN IP4 172.16.87.250.
s=pjmedia.
c=IN IP4 172.16.87.250.
b=AS:84.
t=0 0.
a=X-nat:0.
m=audio 57686 RTP/AVP 104 98 97 99 3 0 8 9 96.
c=IN IP4 172.16.87.250.
b=TIAS:64000.
a=rtcp:57688 IN IP4 172.16.87.250.
a=sendrecv.
a=rtpmap:104 iLBC/8000.
a=fmtp:104 mode=30.
a=rtpmap:98 speex/16000.
a=rtpmap:97 speex/8000.
a=rtpmap:99 speex/32000.
a=rtpmap:3 GSM/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:9 G722/8000.
a=rtpmap:96 telephone-event/8000.
a=fmtp:96 0-15.
a=ice-ufrag:4ae13d6c.
a=ice-pwd:2cd672ae.
a=candidate:Hac1057fa 1 UDP 2130706431 172.16.87.250 57686 typ host.
a=candidate:Hac1057fa 2 UDP 2130706430 172.16.87.250 57688 typ host.

#
U 2012/03/03 14:42:29.473459 10.0.2.15:5060 -> 10.0.2.2:5060
SIP/2.0 100 Giving a try.
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj153fe06d25ec4c2c9eb0e4dc0137c025.
From: <sip:tr071 at localhost>;tag=5f672e1f704d45f3866ac4386105309b.
To: <sip:dfeng at localhost>.
Call-ID: 5b4c1b59e90143d69cca9e07ab00f5b9.
CSeq: 23987 INVITE.
Server: OpenSIPS (1.7.1-tls (i386/linux)).
Content-Length: 0.
.

#
T 2012/03/03 14:42:29.473899 10.0.2.15:5060 -> 10.0.2.2:49498 [A]
INVITE sip:dfeng at 10.0.2.2:49498;rinstance=ccc3e5ee1e7da151;transport=TCP SIP/2.0.
Record-Route: <sip:localhost:50600;transport=tcp;r2=on;lr>.
Record-Route: <sip:10.0.2.15;r2=on;lr>.
Via: SIP/2.0/TCP localhost:50600;branch=z9hG4bK2ece.6f042833.0.
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj153fe06d25ec4c2c9eb0e4dc0137c025.
Max-Forwards: 69.
From: <sip:tr071 at localhost>;tag=5f672e1f704d45f3866ac4386105309b.
To: <sip:dfeng at localhost>.
Contact: <sip:tr071 at 10.0.2.2:5060;ob>;+sip.ice.
Call-ID: 5b4c1b59e90143d69cca9e07ab00f5b9.
CSeq: 23987 INVITE.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Supported: replaces, 100rel, timer, norefersub.
Session-Expires: 1800.
Min-SE: 90.
User-Agent: MicroSIP/3.0.8.
Content-Type: application/sdp.
Content-Length:   682.
.
v=0.
o=- 3539774550 3539774550 IN IP4 172.16.87.250.
s=pjmedia.
c=IN IP4 172.16.87.250.
b=AS:84.
t=0 0.
a=X-nat:0.
m=audio 57686 RTP/AVP 104 98 97 99 3 0 8 9 96.
c=IN IP4 172.16.87.250.
b=TIAS:64000.
a=rtcp:57688 IN IP4 172.16.87.250.
a=sendrecv.
a=rtpmap:104 iLBC/8000.
a=fmtp:104 mode=30.
a=rtpmap:98 speex/16000.
a=rtpmap:97 speex/8000.
a=rtpmap:99 speex/32000.
a=rtpmap:3 GSM/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:9 G722/8000.
a=rtpmap:96 telephone-event/8000.
a=fmtp:96 0-15.
a=ice-ufrag:4ae13d6c.
a=ice-pwd:2cd672ae.
a=candidate:Hac1057fa 1 UDP 2130706431 172.16.87.250 57686 typ host.
a=can
#
T 2012/03/03 14:42:29.473931 10.0.2.15:5060 -> 10.0.2.2:49498 [AP]
didate:Hac1057fa 2 UDP 2130706430 172.16.87.250 57688 typ host.

##
T 2012/03/03 14:42:29.503045 10.0.2.2:49498 -> 10.0.2.15:5060 [AP]
SIP/2.0 180 Ringing.
Via: SIP/2.0/TCP localhost:50600;branch=z9hG4bK2ece.6f042833.0;received=127.0.0.1.
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj153fe06d25ec4c2c9eb0e4dc0137c025.
Record-Route: <sip:localhost:50600;transport=tcp;lr;r2=on>.
Record-Route: <sip:10.0.2.15;r2=on;lr>.
Contact: <sip:dfeng at 10.0.2.2:49498;rinstance=ccc3e5ee1e7da151;transport=TCP>.
To: <sip:dfeng at localhost>;tag=1b4d047f.
From: <sip:tr071 at localhost>;tag=5f672e1f704d45f3866ac4386105309b.
Call-ID: 5b4c1b59e90143d69cca9e07ab00f5b9.
CSeq: 23987 INVITE.
User-Agent: PortGo v6.0, Build 09082010.
Content-Length: 0.
.

#
U 2012/03/03 14:42:29.503322 10.0.2.15:5060 -> 10.0.2.2:5060
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj153fe06d25ec4c2c9eb0e4dc0137c025.
Record-Route: <sip:localhost:50600;transport=tcp;lr;r2=on>.
Record-Route: <sip:10.0.2.15;r2=on;lr>.
Contact: <sip:dfeng at 10.0.2.2:49498;rinstance=ccc3e5ee1e7da151;transport=TCP>.
To: <sip:dfeng at localhost>;tag=1b4d047f.
From: <sip:tr071 at localhost>;tag=5f672e1f704d45f3866ac4386105309b.
Call-ID: 5b4c1b59e90143d69cca9e07ab00f5b9.
CSeq: 23987 INVITE.
User-Agent: PortGo v6.0, Build 09082010.
Content-Length: 0.
.

##
T 2012/03/03 14:42:31.608035 10.0.2.2:49498 -> 10.0.2.15:5060 [AP]
SIP/2.0 200 OK.
Via: SIP/2.0/TCP localhost:50600;branch=z9hG4bK2ece.6f042833.0;received=127.0.0.1.
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj153fe06d25ec4c2c9eb0e4dc0137c025.
Record-Route: <sip:localhost:50600;transport=tcp;lr;r2=on>.
Record-Route: <sip:10.0.2.15;r2=on;lr>.
Contact: <sip:dfeng at 10.0.2.2:49498;rinstance=ccc3e5ee1e7da151;transport=TCP>.
To: <sip:dfeng at localhost>;tag=1b4d047f.
From: <sip:tr071 at localhost>;tag=5f672e1f704d45f3866ac4386105309b.
Call-ID: 5b4c1b59e90143d69cca9e07ab00f5b9.
CSeq: 23987 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, REGISTER, SUBSCRIBE, INFO.
Content-Type: application/sdp.
Supported: replaces.
User-Agent: PortGo v6.0, Build 09082010.
Content-Length: 236.
.
v=0.
o=- 231952709 231952709 IN IP4 172.16.87.250.
s=http://www.portsip.com.
c=IN IP4 172.16.87.250.
t=0 0.
m=audio 20916 RTP/AVP 104 96.
a=rtpmap:104 iLBC/8000.
a=rtpmap:96 telephone-event/8000.
a=fmtp:96 0-15.
a=ptime:20.
a=sendrecv.

##
U 2012/03/03 14:42:31.623531 10.0.2.15:5060 -> 10.0.2.2:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj153fe06d25ec4c2c9eb0e4dc0137c025.
Record-Route: <sip:localhost:50600;transport=tcp;lr;r2=on>.
Record-Route: <sip:10.0.2.15;r2=on;lr>.
Contact: <sip:dfeng at 10.0.2.2:49498;rinstance=ccc3e5ee1e7da151;transport=TCP>.
To: <sip:dfeng at localhost>;tag=1b4d047f.
From: <sip:tr071 at localhost>;tag=5f672e1f704d45f3866ac4386105309b.
Call-ID: 5b4c1b59e90143d69cca9e07ab00f5b9.
CSeq: 23987 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, REGISTER, SUBSCRIBE, INFO.
Content-Type: application/sdp.
Supported: replaces.
User-Agent: PortGo v6.0, Build 09082010.
Content-Length: 236.
.
v=0.
o=- 231952709 231952709 IN IP4 172.16.87.250.
s=http://www.portsip.com.
c=IN IP4 172.16.87.250.
t=0 0.
m=audio 20916 RTP/AVP 104 96.
a=rtpmap:104 iLBC/8000.
a=rtpmap:96 telephone-event/8000.
a=fmtp:96 0-15.
a=ptime:20.
a=sendrecv.

#
T 2012/03/03 14:42:32.108125 10.0.2.2:49498 -> 10.0.2.15:5060 [AP]
SIP/2.0 200 OK.
Via: SIP/2.0/TCP localhost:50600;branch=z9hG4bK2ece.6f042833.0;received=127.0.0.1.
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj153fe06d25ec4c2c9eb0e4dc0137c025.
Record-Route: <sip:localhost:50600;transport=tcp;lr;r2=on>.
Record-Route: <sip:10.0.2.15;r2=on;lr>.
Contact: <sip:dfeng at 10.0.2.2:49498;rinstance=ccc3e5ee1e7da151;transport=TCP>.
To: <sip:dfeng at localhost>;tag=1b4d047f.
From: <sip:tr071 at localhost>;tag=5f672e1f704d45f3866ac4386105309b.
Call-ID: 5b4c1b59e90143d69cca9e07ab00f5b9.
CSeq: 23987 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, REGISTER, SUBSCRIBE, INFO.
Content-Type: application/sdp.
Supported: replaces.
User-Agent: PortGo v6.0, Build 09082010.
Content-Length: 236.
.
v=0.
o=- 231952709 231952709 IN IP4 172.16.87.250.
s=http://www.portsip.com.
c=IN IP4 172.16.87.250.
t=0 0.
m=audio 20916 RTP/AVP 104 96.
a=rtpmap:104 iLBC/8000.
a=rtpmap:96 telephone-event/8000.
a=fmtp:96 0-15.
a=ptime:20.
a=sendrecv.

##
U 2012/03/03 14:42:32.137982 10.0.2.15:5060 -> 10.0.2.2:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj153fe06d25ec4c2c9eb0e4dc0137c025.
Record-Route: <sip:localhost:50600;transport=tcp;lr;r2=on>.
Record-Route: <sip:10.0.2.15;r2=on;lr>.
Contact: <sip:dfeng at 10.0.2.2:49498;rinstance=ccc3e5ee1e7da151;transport=TCP>.
To: <sip:dfeng at localhost>;tag=1b4d047f.
From: <sip:tr071 at localhost>;tag=5f672e1f704d45f3866ac4386105309b.
Call-ID: 5b4c1b59e90143d69cca9e07ab00f5b9.
CSeq: 23987 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, REGISTER, SUBSCRIBE, INFO.
Content-Type: application/sdp.
Supported: replaces.
User-Agent: PortGo v6.0, Build 09082010.
Content-Length: 236.
.
v=0.
o=- 231952709 231952709 IN IP4 172.16.87.250.
s=http://www.portsip.com.
c=IN IP4 172.16.87.250.
t=0 0.
m=audio 20916 RTP/AVP 104 96.
a=rtpmap:104 iLBC/8000.
a=rtpmap:96 telephone-event/8000.
a=fmtp:96 0-15.
a=ptime:20.
a=sendrecv.

#
T 2012/03/03 14:42:33.126182 10.0.2.2:49498 -> 10.0.2.15:5060 [AP]
SIP/2.0 200 OK.
Via: SIP/2.0/TCP localhost:50600;branch=z9hG4bK2ece.6f042833.0;received=127.0.0.1.
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj153fe06d25ec4c2c9eb0e4dc0137c025.
Record-Route: <sip:localhost:50600;transport=tcp;lr;r2=on>.
Record-Route: <sip:10.0.2.15;r2=on;lr>.
Contact: <sip:dfeng at 10.0.2.2:49498;rinstance=ccc3e5ee1e7da151;transport=TCP>.
To: <sip:dfeng at localhost>;tag=1b4d047f.
From: <sip:tr071 at localhost>;tag=5f672e1f704d45f3866ac4386105309b.
Call-ID: 5b4c1b59e90143d69cca9e07ab00f5b9.
CSeq: 23987 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, REGISTER, SUBSCRIBE, INFO.
Content-Type: application/sdp.
Supported: replaces.
User-Agent: PortGo v6.0, Build 09082010.
Content-Length: 236.
.
v=0.
o=- 231952709 231952709 IN IP4 172.16.87.250.
s=http://www.portsip.com.
c=IN IP4 172.16.87.250.
t=0 0.
m=audio 20916 RTP/AVP 104 96.
a=rtpmap:104 iLBC/8000.
a=rtpmap:96 telephone-event/8000.
a=fmtp:96 0-15.
a=ptime:20.
a=sendrecv.

##
U 2012/03/03 14:42:33.141960 10.0.2.15:5060 -> 10.0.2.2:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj153fe06d25ec4c2c9eb0e4dc0137c025.
Record-Route: <sip:localhost:50600;transport=tcp;lr;r2=on>.
Record-Route: <sip:10.0.2.15;r2=on;lr>.
Contact: <sip:dfeng at 10.0.2.2:49498;rinstance=ccc3e5ee1e7da151;transport=TCP>.
To: <sip:dfeng at localhost>;tag=1b4d047f.
From: <sip:tr071 at localhost>;tag=5f672e1f704d45f3866ac4386105309b.
Call-ID: 5b4c1b59e90143d69cca9e07ab00f5b9.
CSeq: 23987 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, REGISTER, SUBSCRIBE, INFO.
Content-Type: application/sdp.
Supported: replaces.
User-Agent: PortGo v6.0, Build 09082010.
Content-Length: 236.
.
v=0.
o=- 231952709 231952709 IN IP4 172.16.87.250.
s=http://www.portsip.com.
c=IN IP4 172.16.87.250.
t=0 0.
m=audio 20916 RTP/AVP 104 96.
a=rtpmap:104 iLBC/8000.
a=rtpmap:96 telephone-event/8000.
a=fmtp:96 0-15.
a=ptime:20.
a=sendrecv.

#
T 2012/03/03 14:42:35.129527 10.0.2.2:49498 -> 10.0.2.15:5060 [AP]
SIP/2.0 200 OK.
Via: SIP/2.0/TCP localhost:50600;branch=z9hG4bK2ece.6f042833.0;received=127.0.0.1.
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj153fe06d25ec4c2c9eb0e4dc0137c025.
Record-Route: <sip:localhost:50600;transport=tcp;lr;r2=on>.
Record-Route: <sip:10.0.2.15;r2=on;lr>.
Contact: <sip:dfeng at 10.0.2.2:49498;rinstance=ccc3e5ee1e7da151;transport=TCP>.
To: <sip:dfeng at localhost>;tag=1b4d047f.
From: <sip:tr071 at localhost>;tag=5f672e1f704d45f3866ac4386105309b.
Call-ID: 5b4c1b59e90143d69cca9e07ab00f5b9.
CSeq: 23987 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, REGISTER, SUBSCRIBE, INFO.
Content-Type: application/sdp.
Supported: replaces.
User-Agent: PortGo v6.0, Build 09082010.
Content-Length: 236.
.
v=0.
o=- 231952709 231952709 IN IP4 172.16.87.250.
s=http://www.portsip.com.
c=IN IP4 172.16.87.250.
t=0 0.
m=audio 20916 RTP/AVP 104 96.
a=rtpmap:104 iLBC/8000.
a=rtpmap:96 telephone-event/8000.
a=fmtp:96 0-15.
a=ptime:20.
a=sendrecv.

##
U 2012/03/03 14:42:35.129958 10.0.2.15:5060 -> 10.0.2.2:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj153fe06d25ec4c2c9eb0e4dc0137c025.
Record-Route: <sip:localhost:50600;transport=tcp;lr;r2=on>.
Record-Route: <sip:10.0.2.15;r2=on;lr>.
Contact: <sip:dfeng at 10.0.2.2:49498;rinstance=ccc3e5ee1e7da151;transport=TCP>.
To: <sip:dfeng at localhost>;tag=1b4d047f.
From: <sip:tr071 at localhost>;tag=5f672e1f704d45f3866ac4386105309b.
Call-ID: 5b4c1b59e90143d69cca9e07ab00f5b9.
CSeq: 23987 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, REGISTER, SUBSCRIBE, INFO.
Content-Type: application/sdp.
Supported: replaces.
User-Agent: PortGo v6.0, Build 09082010.
Content-Length: 236.
.
v=0.
o=- 231952709 231952709 IN IP4 172.16.87.250.
s=http://www.portsip.com.
c=IN IP4 172.16.87.250.
t=0 0.
m=audio 20916 RTP/AVP 104 96.
a=rtpmap:104 iLBC/8000.
a=rtpmap:96 telephone-event/8000.
a=fmtp:96 0-15.
a=ptime:20.
a=sendrecv.

#
T 2012/03/03 14:42:39.136194 10.0.2.2:49498 -> 10.0.2.15:5060 [AP]
SIP/2.0 200 OK.
Via: SIP/2.0/TCP localhost:50600;branch=z9hG4bK2ece.6f042833.0;received=127.0.0.1.
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj153fe06d25ec4c2c9eb0e4dc0137c025.
Record-Route: <sip:localhost:50600;transport=tcp;lr;r2=on>.
Record-Route: <sip:10.0.2.15;r2=on;lr>.
Contact: <sip:dfeng at 10.0.2.2:49498;rinstance=ccc3e5ee1e7da151;transport=TCP>.
To: <sip:dfeng at localhost>;tag=1b4d047f.
From: <sip:tr071 at localhost>;tag=5f672e1f704d45f3866ac4386105309b.
Call-ID: 5b4c1b59e90143d69cca9e07ab00f5b9.
CSeq: 23987 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, REGISTER, SUBSCRIBE, INFO.
Content-Type: application/sdp.
Supported: replaces.
User-Agent: PortGo v6.0, Build 09082010.
Content-Length: 236.
.
v=0.
o=- 231952709 231952709 IN IP4 172.16.87.250.
s=http://www.portsip.com.
c=IN IP4 172.16.87.250.
t=0 0.
m=audio 20916 RTP/AVP 104 96.
a=rtpmap:104 iLBC/8000.
a=rtpmap:96 telephone-event/8000.
a=fmtp:96 0-15.
a=ptime:20.
a=sendrecv.

#
-------------------------------------------------------------------------------
PJSUA.log (for UDP caller)
-------------------------------------------------------------------------------

15:35:49.526       endpoint  ...Request msg INVITE/cseq=20279 (tdta00D5F660) exceeds UDP size threshold (1300), sending with TCP
15:35:49.526    tsx00D61674  ...Temporary failure in sending Request msg INVITE/cseq=20279 (tdta00D5F660), will try next server. Err=171064 (Unsuitable transport selected (PJSIP_ETPNOTSUITABLE))
15:35:49.526   pjsua_core.c  ...TX 1329 bytes Request msg INVITE/cseq=20279 (tdta00D5F660) to UDP 127.0.0.1:50600:
INVITE sip:dfeng at localhost SIP/2.0
Via: SIP/2.0/UDP 172.16.87.250:5060;rport;branch=z9hG4bKPj640d2f7cff82488588e08a169344fcb6
Max-Forwards: 70
From: <sip:tr071 at localhost>;tag=5999b7317d1f46c5aa3400c823cb5cdd
To: <sip:dfeng at localhost>
Contact: <sip:tr071 at 172.16.87.250:5060;ob>;+sip.ice
Call-ID: 5dec02115c1c453b969eccfb19550f46
CSeq: 20279 INVITE
Route: <sip:localhost:50600;lr>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
User-Agent: MicroSIP/3.0.8
Content-Type: application/sdp
Content-Length:   682

v=0
o=- 3539777749 3539777749 IN IP4 172.16.87.250
s=pjmedia
c=IN IP4 172.16.87.250
b=AS:84
t=0 0
a=X-nat:0
m=audio 49814 RTP/AVP 104 98 97 99 3 0 8 9 96
c=IN IP4 172.16.87.250
b=TIAS:64000
a=rtcp:49816 IN IP4 172.16.87.250
a=sendrecv
a=rtpmap:104 iLBC/8000
a=fmtp:104 mode=30
a=rtpmap:98 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:99 speex/32000
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=ice-ufrag:4ae13d6c
a=ice-pwd:2cd672ae
a=candidate:Hac1057fa 1 UDP 2130706431 172.16.87.250 49814 typ host
a=candidate:Hac1057fa 2 UDP 2130706430 172.16.87.250 49816 typ host

--end msg--
15:35:49.526    tsx00D61674  ...State changed from Null to Calling, event=TX_MSG
15:35:49.526    dlg00D4F02C  ....Transaction tsx00D61674 state changed to Calling
15:35:49.531 sip_endpoint.c  Processing incoming message: Response msg 100/INVITE/cseq=20279 (rdata00D484EC)
15:35:49.531   pjsua_core.c  .RX 361 bytes Response msg 100/INVITE/cseq=20279 (rdata00D484EC) from UDP 127.0.0.1:50600:
SIP/2.0 100 Giving a try
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj640d2f7cff82488588e08a169344fcb6
From: <sip:tr071 at localhost>;tag=5999b7317d1f46c5aa3400c823cb5cdd
To: <sip:dfeng at localhost>
Call-ID: 5dec02115c1c453b969eccfb19550f46
CSeq: 20279 INVITE
Server: OpenSIPS (1.7.1-tls (i386/linux))
Content-Length: 0


--end msg--
15:35:49.531    tsx00D61674  .Incoming Response msg 100/INVITE/cseq=20279 (rdata00D484EC) in state Calling
15:35:49.531    tsx00D61674  ..State changed from Calling to Proceeding, event=RX_MSG
15:35:49.531    dlg00D4F02C  ...Received Response msg 100/INVITE/cseq=20279 (rdata00D484EC)
15:35:49.531    dlg00D4F02C  ...Transaction tsx00D61674 state changed to Proceeding
15:35:49.563 sip_endpoint.c  Processing incoming message: Response msg 180/INVITE/cseq=20279 (rdata00D484EC)
15:35:49.563   pjsua_core.c  .RX 545 bytes Response msg 180/INVITE/cseq=20279 (rdata00D484EC) from UDP 127.0.0.1:50600:
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj640d2f7cff82488588e08a169344fcb6
Record-Route: <sip:localhost:50600;transport=tcp;lr;r2=on>
Record-Route: <sip:10.0.2.15;r2=on;lr>
Contact: <sip:dfeng at 10.0.2.2:49650;rinstance=ca44d1fc7617e02a;transport=TCP>
To: <sip:dfeng at localhost>;tag=0f5c4c26
From: <sip:tr071 at localhost>;tag=5999b7317d1f46c5aa3400c823cb5cdd
Call-ID: 5dec02115c1c453b969eccfb19550f46
CSeq: 20279 INVITE
User-Agent: PortGo v6.0, Build 09082010
Content-Length: 0


--end msg--
15:35:49.563    tsx00D61674  .Incoming Response msg 180/INVITE/cseq=20279 (rdata00D484EC) in state Proceeding
15:35:49.563    tsx00D61674  ..State changed from Proceeding to Proceeding, event=RX_MSG
15:35:49.563    dlg00D4F02C  ...Received Response msg 180/INVITE/cseq=20279 (rdata00D484EC)
15:35:49.563    dlg00D4F02C  ....Route-set updated
15:35:49.563    dlg00D4F02C  ...Transaction tsx00D61674 state changed to Proceeding
15:35:51.466 sip_endpoint.c  Processing incoming message: Response msg 200/INVITE/cseq=20279 (rdata00D484EC)
15:35:51.466   pjsua_core.c  .RX 923 bytes Response msg 200/INVITE/cseq=20279 (rdata00D484EC) from UDP 127.0.0.1:50600:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.87.250:5060;received=10.0.2.2;rport=5060;branch=z9hG4bKPj640d2f7cff82488588e08a169344fcb6
Record-Route: <sip:localhost:50600;transport=tcp;lr;r2=on>
Record-Route: <sip:10.0.2.15;r2=on;lr>
Contact: <sip:dfeng at 10.0.2.2:49650;rinstance=ca44d1fc7617e02a;transport=TCP>
To: <sip:dfeng at localhost>;tag=0f5c4c26
From: <sip:tr071 at localhost>;tag=5999b7317d1f46c5aa3400c823cb5cdd
Call-ID: 5dec02115c1c453b969eccfb19550f46
CSeq: 20279 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, REGISTER, SUBSCRIBE, INFO
Content-Type: application/sdp
Supported: replaces
User-Agent: PortGo v6.0, Build 09082010
Content-Length: 236

v=0
o=- 235151863 235151863 IN IP4 172.16.87.250
s=http://www.portsip.com
c=IN IP4 172.16.87.250
t=0 0
m=audio 20328 RTP/AVP 104 96
a=rtpmap:104 iLBC/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=ptime:20
a=sendrecv

--end msg--
15:35:51.466    tsx00D61674  .Incoming Response msg 200/INVITE/cseq=20279 (rdata00D484EC) in state Proceeding
15:35:51.466    tsx00D61674  ..State changed from Proceeding to Terminated, event=RX_MSG
15:35:51.466    dlg00D4F02C  ...Received Response msg 200/INVITE/cseq=20279 (rdata00D484EC)
15:35:51.466    dlg00D4F02C  ....Route-set updated
15:35:51.466    dlg00D4F02C  ....Route-set frozen
15:35:51.466    dlg00D4F02C  ...Transaction tsx00D61674 state changed to Terminated
15:35:51.471    inv00D4F02C  ....Got SDP answer in Response msg 200/INVITE/cseq=20279 (rdata00D484EC)
15:35:51.471    inv00D4F02C  ....SDP negotiation done, status=0
15:35:51.471   pjsua_call.c  .....Call 0: remote NAT type is 0 (Unknown)
15:35:51.471  pjsua_media.c  .....Call 0: updating media..
15:35:51.471  pjsua_media.c  .......Media session call00:0 is destroyed
15:35:51.471  pjsua_media.c  ......Audio channel update..
15:35:51.471        icetp00  .......Stopping ICE, reason=Remote answer doesn't support ICE
15:35:51.471        icetp00  .......Destroying ICE session
15:35:51.471   ilbc00D58EBC  .......iLBC codec opened, mode=30
15:35:51.471   strm00D64384  .......VAD temporarily disabled
15:35:51.472          rtp.c  .......pjmedia_rtp_session_init: ses=00D514D8, default_pt=104, ssrc=0x5ac55329
15:35:51.472          rtp.c  .......pjmedia_rtp_session_init: ses=00D516AC, default_pt=104, ssrc=0x5ac55329
15:35:51.472       stream.c  .......Stream strm00D64384 created
15:35:51.472   strm00D64384  .......Encoder stream started
15:35:51.472   strm00D64384  .......Decoder stream started
15:35:51.472     resample.c  .......resample created: high qualiy, large filter, in/out rate=8000/16000
15:35:51.472     resample.c  .......resample created: high qualiy, large filter, in/out rate=16000/8000
15:35:51.472  pjsua_media.c  .......Audio updated, stream #0: iLBC (sendrecv)
15:35:51.472  pjsua_media.c  .....Conf connect: 1 --> 0
15:35:51.472   conference.c  ......Port 1 (sip:dfeng at localhost) transmitting to port 0 (Wave mapper)
15:35:51.472  pjsua_media.c  .....Conf connect: 0 --> 1
15:35:51.472   conference.c  ......Port 0 (Wave mapper) transmitting to port 1 (sip:dfeng at localhost)
15:35:51.472    inv00D4F02C  ....Received Response msg 200/INVITE/cseq=20279 (rdata00D484EC), sending ACK
15:35:51.472       endpoint  ....Request msg ACK/cseq=20279 (tdta00D65958) created.
15:35:51.472    dlg00D4F02C  .....Sending Request msg ACK/cseq=20279 (tdta00D65958)
15:35:51.472  sip_resolve.c  .....Target '10.0.2.15:0' type=Unspecified resolved to '10.0.2.15:5060' type=UDP (UDP transport)
15:35:51.472   pjsua_core.c  .....TX 463 bytes Request msg ACK/cseq=20279 (tdta00D65958) to UDP 10.0.2.15:5060:
ACK sip:dfeng at 10.0.2.2:49650;transport=TCP;rinstance=ca44d1fc7617e02a SIP/2.0
Via: SIP/2.0/UDP 172.16.87.250:5060;rport;branch=z9hG4bKPj4e4cd2c3728d4fa8be547d348ba91fa5
Max-Forwards: 70
From: <sip:tr071 at localhost>;tag=5999b7317d1f46c5aa3400c823cb5cdd
To: <sip:dfeng at localhost>;tag=0f5c4c26
Call-ID: 5dec02115c1c453b969eccfb19550f46
CSeq: 20279 ACK
Route: <sip:10.0.2.15;lr;r2=on>
Route: <sip:localhost:50600;transport=tcp;lr;r2=on>
Content-Length:  0


----------------------------------------------------------------------

>Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2012-03-05 03:16

Message:
Hello,

The behavior with enable_double_rr and set_advertised_address seems correct
to me.
When you do double RR, the first RR header is the outbound interface, which
is the one that is affected by set_advertised_address. The seconds one is
the inbound interface, which is not affected by set_advertised_address.

In your case, I see the INVITE comes in to 10.0.2.15. The ACK is generated
ok by your client, with the Record-Route headers reversed : 
Route: <sip:10.0.2.15;lr;r2=on>
Route: <sip:localhost:50600;transport=tcp;lr;r2=on>

So why can't the ACK reach 10.0.2.15 , since the initial INVITE came in on
10.0.2.15 ?

Regards,
Vlad

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3496501&group_id=232389



More information about the Devel mailing list