<HTML dir=ltr><HEAD><TITLE>Re: [OpenSIPS-Users] handling multiple proxy / Record-Route</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6001.18148" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText5702 dir=ltr>
<DIV dir=ltr><FONT face="Courier New" color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" color=#000000 size=2>UA&nbsp;--&gt; PROXY 1.1.1.1 --&gt; PROXY 2.2.2.2 --&gt; UA</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>P1 --&gt; P2</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>INVITE </FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Record-Route: &lt;sip:1.1.1.1;lr=on;nat=yes&gt;</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>P2 --&gt; P1</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>100 Trying</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Record-Route: &lt;sip:1.1.1.1;lr=on;nat=yes&gt;</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Record-Route: &lt;sip:2.2.2.2:5060;lr&gt;</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Is there something wrong ? shouldn't proxy 2.2.2.2 add his Record-Route on top of the existing Record-Route ?</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro]<BR><B>Sent:</B> Thu 30/04/2009 8:12 AM<BR><B>To:</B> Julien Chavanton<BR><B>Cc:</B> users@lists.opensips.org<BR><B>Subject:</B> Re: [OpenSIPS-Users] handling multiple proxy / Record-Route<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hi Julien,<BR><BR>I think Asterisk is doing the job properly. As you see the 200 OK has:<BR>&nbsp;&nbsp;&nbsp; Contact: &lt;sip:15141234567@2.2.2.2:5060&gt;.<BR>&nbsp;&nbsp;&nbsp; Record-Route: &lt;sip:1.1.1.1;lr=on;nat=yes&gt;.<BR>&nbsp; Record-Route: &lt;sip:2.2.2.2:5060;lr&gt;.<BR><BR>So, Asterisk is generating the ACK with the Contact in RURI and the<BR>Route set in the reverted order (correct loose routing).<BR>&nbsp;&nbsp;&nbsp; -&gt; RURI: sip:15141234567@2.2.2.2:5060<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Destination: sip:2.2.2.2:5060;lr<BR>&nbsp;&nbsp;&nbsp;&nbsp; Route: sip:2.2.2.2:5060;lr + sip:1.1.1.1;lr=on;nat=yes<BR><BR>I think the problem here is who and why adding the bottom RR in 200 OK<BR>(why 2 of them ?)<BR><BR>Regards,<BR>Bogdan<BR><BR>Julien Chavanton wrote:<BR>&gt;<BR>&gt; Hi,<BR>&gt;<BR>&gt; I have a situation whit multiple proxy where ACK is not sent as I<BR>&gt; would expect.<BR>&gt;<BR>&gt; if we look at the following "200 OK", I am expecting ACK to be sent to<BR>&gt; 1.1.1.1 but the "Asterisk PBX 1.6.0.6." is selecting 2.2.2.2 is this<BR>&gt; normal ?<BR>&gt;<BR>&gt; Do I have to handle Record-Route differently ?<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt; U 1.1.1.1:5060 -&gt; 192.168.1.108:5060<BR>&gt; SIP/2.0 200 OK.<BR>&gt; Via: SIP/2.0/UDP<BR>&gt; 192.168.1.108:5060;received=74.56.45.88;branch=z9hG4bK2e975bf5;rport=5060.<BR>&gt; To: &lt;sip:15141234567@osip.dev.com&gt;;tag=as664de2c2.<BR>&gt; From: "15141234567" &lt;sip:15141234567@192.168.1.108&gt;;tag=as55bd7355.<BR>&gt; Call-ID: 641cab3f73fa37a871818d1a70c4061b@192.168.1.108<BR>&gt; &lt;<A href="mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108">mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108</A>&gt;.<BR>&gt; CSeq: 102 INVITE.<BR>&gt; Content-Type: application/sdp.<BR>&gt; Contact: &lt;sip:15141234567@2.2.2.2:5060&gt;.<BR>&gt; Content-Length: 241.<BR>&gt; Record-Route: &lt;sip:1.1.1.1;lr=on;nat=yes&gt;.<BR>&gt; User-Agent: Packetrino.<BR>&gt; Supported: replaces.<BR>&gt; Record-Route: &lt;sip:2.2.2.2:5060;lr&gt;.<BR>&gt; Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt; ---------------------------------------------------------<BR>&gt;<BR>&gt; complete SIP signaling<BR>&gt;<BR>&gt; ---------------------------------------------------------<BR>&gt;<BR>&gt; #<BR>&gt; U 192.168.1.108:5060 -&gt; 1.1.1.1:5060<BR>&gt; INVITE sip:15141234567@osip.dev.com SIP/2.0.<BR>&gt; Via: SIP/2.0/UDP 192.168.1.108:5060;branch=z9hG4bK2e975bf5;rport.<BR>&gt; Max-Forwards: 70.<BR>&gt; From: "15141234567" &lt;sip:15141234567@192.168.1.108&gt;;tag=as55bd7355.<BR>&gt; To: &lt;sip:15141234567@osip.dev.com&gt;.<BR>&gt; Contact: &lt;sip:15141234567@192.168.1.108&gt;.<BR>&gt; Call-ID: 641cab3f73fa37a871818d1a70c4061b@192.168.1.108<BR>&gt; &lt;<A href="mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108">mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108</A>&gt;.<BR>&gt; CSeq: 102 INVITE.<BR>&gt; User-Agent: Asterisk PBX 1.6.0.6.<BR>&gt; Date: Wed, 29 Apr 2009 15:38:18 GMT.<BR>&gt; Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<BR>&gt; Supported: replaces, timer.<BR>&gt; Content-Type: application/sdp.<BR>&gt; Content-Length: 265.<BR>&gt; .<BR>&gt; v=0.<BR>&gt; o=root 1992389746 1992389746 IN IP4 192.168.1.108.<BR>&gt; s=Asterisk PBX 1.6.0.6.<BR>&gt; c=IN IP4 192.168.1.108.<BR>&gt; t=0 0.<BR>&gt; m=audio 11232 RTP/AVP 0 101.<BR>&gt; a=rtpmap:0 PCMU/8000.<BR>&gt; a=rtpmap:101 telephone-event/8000.<BR>&gt; a=fmtp:101 0-16.<BR>&gt; a=silenceSupp:off - - - -.<BR>&gt; a=ptime:20.<BR>&gt; a=sendrecv.<BR>&gt;<BR>&gt; #<BR>&gt; U 1.1.1.1:5060 -&gt; 192.168.1.108:5060<BR>&gt; SIP/2.0 100 Giving a try.<BR>&gt; Via: SIP/2.0/UDP<BR>&gt; 192.168.1.108:5060;branch=z9hG4bK2e975bf5;rport=5060;received=74.56.45.88.<BR>&gt; From: "15141234567" &lt;sip:15141234567@192.168.1.108&gt;;tag=as55bd7355.<BR>&gt; To: &lt;sip:15141234567@osip.dev.com&gt;.<BR>&gt; Call-ID: 641cab3f73fa37a871818d1a70c4061b@192.168.1.108<BR>&gt; &lt;<A href="mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108">mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108</A>&gt;.<BR>&gt; CSeq: 102 INVITE.<BR>&gt; Server: OpenSIPS (1.4.4-notls (x86_64/linux)).<BR>&gt; Content-Length: 0.<BR>&gt; .<BR>&gt;<BR>&gt; #<BR>&gt; U 1.1.1.1:5060 -&gt; 192.168.1.108:5060<BR>&gt; SIP/2.0 183 Session Progress.<BR>&gt; Via: SIP/2.0/UDP<BR>&gt; 192.168.1.108:5060;received=74.56.45.88;branch=z9hG4bK2e975bf5;rport=5060.<BR>&gt; To: &lt;sip:15141234567@osip.dev.com&gt;;tag=as664de2c2.<BR>&gt; From: "15141234567" &lt;sip:15141234567@192.168.1.108&gt;;tag=as55bd7355.<BR>&gt; Call-ID: 641cab3f73fa37a871818d1a70c4061b@192.168.1.108<BR>&gt; &lt;<A href="mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108">mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108</A>&gt;.<BR>&gt; CSeq: 102 INVITE.<BR>&gt; Content-Type: application/sdp.<BR>&gt; Contact: &lt;sip:15141234567@2.2.2.2:5060&gt;.<BR>&gt; Content-Length: 241.<BR>&gt; Record-Route: &lt;sip:1.1.1.1;lr=on;nat=yes&gt;.<BR>&gt; User-Agent: Packetrino.<BR>&gt; Supported: replaces.<BR>&gt; Record-Route: &lt;sip:2.2.2.2:5060;lr&gt;.<BR>&gt; Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<BR>&gt; .<BR>&gt; v=0.<BR>&gt; o=root 29378 29378 IN IP4 64.2.142.160.<BR>&gt; s=session.<BR>&gt; c=IN IP4 1.1.1.1.<BR>&gt; t=0 0.<BR>&gt; m=audio 52528 RTP/AVP 0 101.<BR>&gt; a=rtpmap:0 PCMU/8000.<BR>&gt; a=rtpmap:101 telephone-event/8000.<BR>&gt; a=fmtp:101 0-16.<BR>&gt; a=silenceSupp:off - - - -.<BR>&gt; a=ptime:20.<BR>&gt; a=sendrecv.<BR>&gt;<BR>&gt; #<BR>&gt; U 1.1.1.1:5060 -&gt; 192.168.1.108:5060<BR>&gt; SIP/2.0 180 Ringing.<BR>&gt; Via: SIP/2.0/UDP<BR>&gt; 192.168.1.108:5060;received=74.56.45.88;branch=z9hG4bK2e975bf5;rport=5060.<BR>&gt; To: &lt;sip:15141234567@osip.dev.com&gt;;tag=as664de2c2.<BR>&gt; From: "15141234567" &lt;sip:15141234567@192.168.1.108&gt;;tag=as55bd7355.<BR>&gt; Call-ID: 641cab3f73fa37a871818d1a70c4061b@192.168.1.108<BR>&gt; &lt;<A href="mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108">mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108</A>&gt;.<BR>&gt; CSeq: 102 INVITE.<BR>&gt; Contact: &lt;sip:15141234567@2.2.2.2:5060&gt;.<BR>&gt; Content-Length: 0.<BR>&gt; Record-Route: &lt;sip:1.1.1.1;lr=on;nat=yes&gt;.<BR>&gt; User-Agent: Packetrino.<BR>&gt; Supported: replaces.<BR>&gt; Record-Route: &lt;sip:2.2.2.2:5060;lr&gt;.<BR>&gt; Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<BR>&gt; .<BR>&gt;<BR>&gt; #<BR>&gt; U 1.1.1.1:5060 -&gt; 192.168.1.108:5060<BR>&gt; SIP/2.0 200 OK.<BR>&gt; Via: SIP/2.0/UDP<BR>&gt; 192.168.1.108:5060;received=74.56.45.88;branch=z9hG4bK2e975bf5;rport=5060.<BR>&gt; To: &lt;sip:15141234567@osip.dev.com&gt;;tag=as664de2c2.<BR>&gt; From: "15141234567" &lt;sip:15141234567@192.168.1.108&gt;;tag=as55bd7355.<BR>&gt; Call-ID: 641cab3f73fa37a871818d1a70c4061b@192.168.1.108<BR>&gt; &lt;<A href="mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108">mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108</A>&gt;.<BR>&gt; CSeq: 102 INVITE.<BR>&gt; Content-Type: application/sdp.<BR>&gt; Contact: &lt;sip:15141234567@2.2.2.2:5060&gt;.<BR>&gt; Content-Length: 241.<BR>&gt; Record-Route: &lt;sip:1.1.1.1;lr=on;nat=yes&gt;.<BR>&gt; User-Agent: Packetrino.<BR>&gt; Supported: replaces.<BR>&gt; Record-Route: &lt;sip:2.2.2.2:5060;lr&gt;.<BR>&gt; Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<BR>&gt; .<BR>&gt; v=0.<BR>&gt; o=root 29378 29379 IN IP4 64.2.142.160.<BR>&gt; s=session.<BR>&gt; c=IN IP4 1.1.1.1.<BR>&gt; t=0 0.<BR>&gt; m=audio 52528 RTP/AVP 0 101.<BR>&gt; a=rtpmap:0 PCMU/8000.<BR>&gt; a=rtpmap:101 telephone-event/8000.<BR>&gt; a=fmtp:101 0-16.<BR>&gt; a=silenceSupp:off - - - -.<BR>&gt; a=ptime:20.<BR>&gt; a=sendrecv.<BR>&gt;<BR>&gt; #<BR>&gt; U 192.168.1.108:5060 -&gt; 2.2.2.2:5060<BR>&gt; ACK sip:15141234567@2.2.2.2:5060 SIP/2.0.<BR>&gt; Via: SIP/2.0/UDP 192.168.1.108:5060;branch=z9hG4bK04335252;rport.<BR>&gt; Route: &lt;sip:2.2.2.2:5060;lr&gt;,&lt;sip:1.1.1.1;lr=on;nat=yes&gt;.<BR>&gt; Max-Forwards: 70.<BR>&gt; From: "15141234567" &lt;sip:15141234567@192.168.1.108&gt;;tag=as55bd7355.<BR>&gt; To: &lt;sip:15141234567@osip.dev.com&gt;;tag=as664de2c2.<BR>&gt; Contact: &lt;sip:15141234567@192.168.1.108&gt;.<BR>&gt; Call-ID: 641cab3f73fa37a871818d1a70c4061b@192.168.1.108<BR>&gt; &lt;<A href="mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108">mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108</A>&gt;.<BR>&gt; CSeq: 102 ACK.<BR>&gt; User-Agent: Asterisk PBX 1.6.0.6.<BR>&gt; Content-Length: 0.<BR>&gt; .<BR>&gt;<BR>&gt;&nbsp;<BR>&gt; ------------------------------------------------------------------------<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; Users mailing list<BR>&gt; Users@lists.opensips.org<BR>&gt; <A href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A><BR>&gt;&nbsp;&nbsp;<BR><BR></FONT></P></DIV></BODY></HTML>