<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=idOWAReplyText272 dir=ltr>
<DIV dir=ltr><FONT face="Courier New" color=#000000 size=2>thank you, this is a problem as I do not control this proxy (2.2.2.2), is there a suggested way of handling this problem ?</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Maybe there is something esle wrong on my side cusaing this problem so I am including the SIP communication between the proxy this time</FONT></DIV></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></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>#<BR>U 1.1.1.1:5060 -&gt; 2.2.2.2:5060<BR>INVITE sip:15148622633@2.2.2.2 SIP/2.0.<BR>Record-Route: &lt;sip:1.1.1.1;lr&gt;.<BR>Via: SIP/2.0/UDP 1.1.1.1;branch=z9hG4bK09e6.36a0f975.0.<BR>Via: SIP/2.0/UDP 10.0.1.74:58366;received=10.0.1.74;branch=z9hG4bK-d87543-0f348609f47bda44-1--d87543-;rport=58366.<BR>Max-Forwards: 69.<BR>Contact: &lt;sip:777@10.0.1.74:58366&gt;.<BR>To: "15141234567"&lt;sip:15148622633@osip.dev.com&gt;.<BR>From: "777"&lt;sip:777@osip.dev.com&gt;;tag=a030735d.<BR>Call-ID: 8116f933cc4ea03fMjYzN2Q1MGQ5Y2M1ZDc5Yzk4OTRjN2Y5YzEwYWMwMzc..<BR>CSeq: 1 INVITE.<BR>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.<BR>Content-Type: application/sdp.<BR>User-Agent: eyeBeam release 1003s stamp 31159.<BR>Content-Length: 478.<BR>P-hint: Route[6]: mediaproxy .<BR>.<BR>v=0.<BR>o=- 8 2 IN IP4 10.0.1.74.<BR>s=CounterPath eyeBeam 1.5.<BR>c=IN IP4 1.1.1.1.<BR>t=0 0.<BR>m=audio 52550 RTP/AVP 0 8 18 101.<BR>a=alt:1 4 : LM6OZaAl 4x8r9qea 192.168.1.101 50006.<BR>a=alt:2 3 : 84SVypDj oi4PbxZ7 192.168.114.1 50006.<BR>a=alt:3 2 : L4wf6+MH s4gK5GAV 192.168.146.1 50006.<BR>a=alt:4 1 : cg2pbkCG WDFvj29+ 10.0.1.74 50006.<BR>a=fmtp:18 annexb=no.<BR>a=fmtp:101 0-15.<BR>a=rtpmap:101 telephone-event/8000.<BR>a=sendrecv.<BR>a=x-rtp-session-id:D56BCBC26473491FA111854E4C9F3575.<BR>a=direction:active.</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>#<BR>U 2.2.2.2:5060 -&gt; 1.1.1.1:5060<BR>SIP/2.0 100 Trying.<BR>Via: SIP/2.0/UDP 1.1.1.1:5060;branch=z9hG4bK09e6.36a0f975.0;received=1.1.1.1;rport=5060.<BR>Via: SIP/2.0/UDP 10.0.1.74:58366;received=10.0.1.74;branch=z9hG4bK-d87543-0f348609f47bda44-1--d87543-;rport=58366.<BR>To: "15141234567" &lt;sip:15148622633@osip.dev.com&gt;.<BR>From: "777" &lt;sip:777@osip.dev.com&gt;;tag=a030735d.<BR>Call-ID: 8116f933cc4ea03fMjYzN2Q1MGQ5Y2M1ZDc5Yzk4OTRjN2Y5YzEwYWMwMzc..<BR>CSeq: 1 INVITE.<BR>Contact: &lt;sip:15148622633@64.2.142.75&gt;.<BR>Content-Length: 0.<BR>Record-Route: &lt;sip:1.1.1.1;lr&gt;.<BR>User-Agent: Packetrino.<BR>Supported: replaces.<BR>Record-Route: &lt;sip:2.2.2.2:5060;lr&gt;.<BR>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<BR>.</FONT></DIV>
<DIV dir=ltr>&nbsp;</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 3:44 PM<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 Julian,<BR><BR>Julien Chavanton wrote:<BR>&gt;&nbsp;<BR>&gt;&nbsp;<BR>&gt; UA --&gt; PROXY 1.1.1.1 --&gt; PROXY 2.2.2.2 --&gt; UA<BR>&gt;&nbsp;<BR>&gt; P1 --&gt; P2<BR>&gt; INVITE<BR>&gt; Record-Route: &lt;sip:1.1.1.1;lr=on;nat=yes&gt;<BR>&gt;&nbsp;<BR>&gt; P2 --&gt; P1<BR>&gt; 100 Trying<BR>&gt; Record-Route: &lt;sip:1.1.1.1;lr=on;nat=yes&gt;<BR>&gt; Record-Route: &lt;sip:2.2.2.2:5060;lr&gt;<BR>&gt;&nbsp;<BR>^^^^^^^^^^^^<BR><BR>This is not correct. The RR of P2 most me on top of RR of P1 - adding RR<BR>headers works as a stack.<BR><BR>Regards,<BR>Bogdan<BR>&gt;&nbsp;<BR>&gt; Is there something wrong ? shouldn't proxy 2.2.2.2 add his<BR>&gt; Record-Route on top of the existing Record-Route ?<BR>&gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; *From:* Bogdan-Andrei Iancu [<A href="mailto:bogdan@voice-system.ro">mailto:bogdan@voice-system.ro</A>]<BR>&gt; *Sent:* Thu 30/04/2009 8:12 AM<BR>&gt; *To:* Julien Chavanton<BR>&gt; *Cc:* users@lists.opensips.org<BR>&gt; *Subject:* Re: [OpenSIPS-Users] handling multiple proxy / Record-Route<BR>&gt;<BR>&gt; Hi Julien,<BR>&gt;<BR>&gt; I think Asterisk is doing the job properly. As you see the 200 OK has:<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Contact: &lt;sip:15141234567@2.2.2.2:5060&gt;.<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Record-Route: &lt;sip:1.1.1.1;lr=on;nat=yes&gt;.<BR>&gt;&nbsp;&nbsp; Record-Route: &lt;sip:2.2.2.2:5060;lr&gt;.<BR>&gt;<BR>&gt; So, Asterisk is generating the ACK with the Contact in RURI and the<BR>&gt; Route set in the reverted order (correct loose routing).<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; RURI: sip:15141234567@2.2.2.2:5060<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Destination: sip:2.2.2.2:5060;lr<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Route: sip:2.2.2.2:5060;lr + sip:1.1.1.1;lr=on;nat=yes<BR>&gt;<BR>&gt; I think the problem here is who and why adding the bottom RR in 200 OK<BR>&gt; (why 2 of them ?)<BR>&gt;<BR>&gt; Regards,<BR>&gt; Bogdan<BR>&gt;<BR>&gt; Julien Chavanton wrote:<BR>&gt; &gt;<BR>&gt; &gt; Hi,<BR>&gt; &gt;<BR>&gt; &gt; I have a situation whit multiple proxy where ACK is not sent as I<BR>&gt; &gt; would expect.<BR>&gt; &gt;<BR>&gt; &gt; if we look at the following "200 OK", I am expecting ACK to be sent to<BR>&gt; &gt; 1.1.1.1 but the "Asterisk PBX 1.6.0.6." is selecting 2.2.2.2 is this<BR>&gt; &gt; normal ?<BR>&gt; &gt;<BR>&gt; &gt; Do I have to handle Record-Route differently ?<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; U 1.1.1.1:5060 -&gt; 192.168.1.108:5060<BR>&gt; &gt; SIP/2.0 200 OK.<BR>&gt; &gt; Via: SIP/2.0/UDP<BR>&gt; &gt;<BR>&gt; 192.168.1.108:5060;received=74.56.45.88;branch=z9hG4bK2e975bf5;rport=5060.<BR>&gt; &gt; To: &lt;sip:15141234567@osip.dev.com&gt;;tag=as664de2c2.<BR>&gt; &gt; From: "15141234567" &lt;sip:15141234567@192.168.1.108&gt;;tag=as55bd7355.<BR>&gt; &gt; Call-ID: 641cab3f73fa37a871818d1a70c4061b@192.168.1.108<BR>&gt; &gt; &lt;<A href="mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108">mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108</A>&gt;.<BR>&gt; &gt; CSeq: 102 INVITE.<BR>&gt; &gt; Content-Type: application/sdp.<BR>&gt; &gt; Contact: &lt;sip:15141234567@2.2.2.2:5060&gt;.<BR>&gt; &gt; Content-Length: 241.<BR>&gt; &gt; Record-Route: &lt;sip:1.1.1.1;lr=on;nat=yes&gt;.<BR>&gt; &gt; User-Agent: Packetrino.<BR>&gt; &gt; Supported: replaces.<BR>&gt; &gt; Record-Route: &lt;sip:2.2.2.2:5060;lr&gt;.<BR>&gt; &gt; Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; ---------------------------------------------------------<BR>&gt; &gt;<BR>&gt; &gt; complete SIP signaling<BR>&gt; &gt;<BR>&gt; &gt; ---------------------------------------------------------<BR>&gt; &gt;<BR>&gt; &gt; #<BR>&gt; &gt; U 192.168.1.108:5060 -&gt; 1.1.1.1:5060<BR>&gt; &gt; INVITE sip:15141234567@osip.dev.com SIP/2.0.<BR>&gt; &gt; Via: SIP/2.0/UDP 192.168.1.108:5060;branch=z9hG4bK2e975bf5;rport.<BR>&gt; &gt; Max-Forwards: 70.<BR>&gt; &gt; From: "15141234567" &lt;sip:15141234567@192.168.1.108&gt;;tag=as55bd7355.<BR>&gt; &gt; To: &lt;sip:15141234567@osip.dev.com&gt;.<BR>&gt; &gt; Contact: &lt;sip:15141234567@192.168.1.108&gt;.<BR>&gt; &gt; Call-ID: 641cab3f73fa37a871818d1a70c4061b@192.168.1.108<BR>&gt; &gt; &lt;<A href="mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108">mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108</A>&gt;.<BR>&gt; &gt; CSeq: 102 INVITE.<BR>&gt; &gt; User-Agent: Asterisk PBX 1.6.0.6.<BR>&gt; &gt; Date: Wed, 29 Apr 2009 15:38:18 GMT.<BR>&gt; &gt; Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<BR>&gt; &gt; Supported: replaces, timer.<BR>&gt; &gt; Content-Type: application/sdp.<BR>&gt; &gt; Content-Length: 265.<BR>&gt; &gt; .<BR>&gt; &gt; v=0.<BR>&gt; &gt; o=root 1992389746 1992389746 IN IP4 192.168.1.108.<BR>&gt; &gt; s=Asterisk PBX 1.6.0.6.<BR>&gt; &gt; c=IN IP4 192.168.1.108.<BR>&gt; &gt; t=0 0.<BR>&gt; &gt; m=audio 11232 RTP/AVP 0 101.<BR>&gt; &gt; a=rtpmap:0 PCMU/8000.<BR>&gt; &gt; a=rtpmap:101 telephone-event/8000.<BR>&gt; &gt; a=fmtp:101 0-16.<BR>&gt; &gt; a=silenceSupp:off - - - -.<BR>&gt; &gt; a=ptime:20.<BR>&gt; &gt; a=sendrecv.<BR>&gt; &gt;<BR>&gt; &gt; #<BR>&gt; &gt; U 1.1.1.1:5060 -&gt; 192.168.1.108:5060<BR>&gt; &gt; SIP/2.0 100 Giving a try.<BR>&gt; &gt; Via: SIP/2.0/UDP<BR>&gt; &gt;<BR>&gt; 192.168.1.108:5060;branch=z9hG4bK2e975bf5;rport=5060;received=74.56.45.88.<BR>&gt; &gt; From: "15141234567" &lt;sip:15141234567@192.168.1.108&gt;;tag=as55bd7355.<BR>&gt; &gt; To: &lt;sip:15141234567@osip.dev.com&gt;.<BR>&gt; &gt; Call-ID: 641cab3f73fa37a871818d1a70c4061b@192.168.1.108<BR>&gt; &gt; &lt;<A href="mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108">mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108</A>&gt;.<BR>&gt; &gt; CSeq: 102 INVITE.<BR>&gt; &gt; Server: OpenSIPS (1.4.4-notls (x86_64/linux)).<BR>&gt; &gt; Content-Length: 0.<BR>&gt; &gt; .<BR>&gt; &gt;<BR>&gt; &gt; #<BR>&gt; &gt; U 1.1.1.1:5060 -&gt; 192.168.1.108:5060<BR>&gt; &gt; SIP/2.0 183 Session Progress.<BR>&gt; &gt; Via: SIP/2.0/UDP<BR>&gt; &gt;<BR>&gt; 192.168.1.108:5060;received=74.56.45.88;branch=z9hG4bK2e975bf5;rport=5060.<BR>&gt; &gt; To: &lt;sip:15141234567@osip.dev.com&gt;;tag=as664de2c2.<BR>&gt; &gt; From: "15141234567" &lt;sip:15141234567@192.168.1.108&gt;;tag=as55bd7355.<BR>&gt; &gt; Call-ID: 641cab3f73fa37a871818d1a70c4061b@192.168.1.108<BR>&gt; &gt; &lt;<A href="mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108">mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108</A>&gt;.<BR>&gt; &gt; CSeq: 102 INVITE.<BR>&gt; &gt; Content-Type: application/sdp.<BR>&gt; &gt; Contact: &lt;sip:15141234567@2.2.2.2:5060&gt;.<BR>&gt; &gt; Content-Length: 241.<BR>&gt; &gt; Record-Route: &lt;sip:1.1.1.1;lr=on;nat=yes&gt;.<BR>&gt; &gt; User-Agent: Packetrino.<BR>&gt; &gt; Supported: replaces.<BR>&gt; &gt; Record-Route: &lt;sip:2.2.2.2:5060;lr&gt;.<BR>&gt; &gt; Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<BR>&gt; &gt; .<BR>&gt; &gt; v=0.<BR>&gt; &gt; o=root 29378 29378 IN IP4 64.2.142.160.<BR>&gt; &gt; s=session.<BR>&gt; &gt; c=IN IP4 1.1.1.1.<BR>&gt; &gt; t=0 0.<BR>&gt; &gt; m=audio 52528 RTP/AVP 0 101.<BR>&gt; &gt; a=rtpmap:0 PCMU/8000.<BR>&gt; &gt; a=rtpmap:101 telephone-event/8000.<BR>&gt; &gt; a=fmtp:101 0-16.<BR>&gt; &gt; a=silenceSupp:off - - - -.<BR>&gt; &gt; a=ptime:20.<BR>&gt; &gt; a=sendrecv.<BR>&gt; &gt;<BR>&gt; &gt; #<BR>&gt; &gt; U 1.1.1.1:5060 -&gt; 192.168.1.108:5060<BR>&gt; &gt; SIP/2.0 180 Ringing.<BR>&gt; &gt; Via: SIP/2.0/UDP<BR>&gt; &gt;<BR>&gt; 192.168.1.108:5060;received=74.56.45.88;branch=z9hG4bK2e975bf5;rport=5060.<BR>&gt; &gt; To: &lt;sip:15141234567@osip.dev.com&gt;;tag=as664de2c2.<BR>&gt; &gt; From: "15141234567" &lt;sip:15141234567@192.168.1.108&gt;;tag=as55bd7355.<BR>&gt; &gt; Call-ID: 641cab3f73fa37a871818d1a70c4061b@192.168.1.108<BR>&gt; &gt; &lt;<A href="mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108">mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108</A>&gt;.<BR>&gt; &gt; CSeq: 102 INVITE.<BR>&gt; &gt; Contact: &lt;sip:15141234567@2.2.2.2:5060&gt;.<BR>&gt; &gt; Content-Length: 0.<BR>&gt; &gt; Record-Route: &lt;sip:1.1.1.1;lr=on;nat=yes&gt;.<BR>&gt; &gt; User-Agent: Packetrino.<BR>&gt; &gt; Supported: replaces.<BR>&gt; &gt; Record-Route: &lt;sip:2.2.2.2:5060;lr&gt;.<BR>&gt; &gt; Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<BR>&gt; &gt; .<BR>&gt; &gt;<BR>&gt; &gt; #<BR>&gt; &gt; U 1.1.1.1:5060 -&gt; 192.168.1.108:5060<BR>&gt; &gt; SIP/2.0 200 OK.<BR>&gt; &gt; Via: SIP/2.0/UDP<BR>&gt; &gt;<BR>&gt; 192.168.1.108:5060;received=74.56.45.88;branch=z9hG4bK2e975bf5;rport=5060.<BR>&gt; &gt; To: &lt;sip:15141234567@osip.dev.com&gt;;tag=as664de2c2.<BR>&gt; &gt; From: "15141234567" &lt;sip:15141234567@192.168.1.108&gt;;tag=as55bd7355.<BR>&gt; &gt; Call-ID: 641cab3f73fa37a871818d1a70c4061b@192.168.1.108<BR>&gt; &gt; &lt;<A href="mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108">mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108</A>&gt;.<BR>&gt; &gt; CSeq: 102 INVITE.<BR>&gt; &gt; Content-Type: application/sdp.<BR>&gt; &gt; Contact: &lt;sip:15141234567@2.2.2.2:5060&gt;.<BR>&gt; &gt; Content-Length: 241.<BR>&gt; &gt; Record-Route: &lt;sip:1.1.1.1;lr=on;nat=yes&gt;.<BR>&gt; &gt; User-Agent: Packetrino.<BR>&gt; &gt; Supported: replaces.<BR>&gt; &gt; Record-Route: &lt;sip:2.2.2.2:5060;lr&gt;.<BR>&gt; &gt; Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.<BR>&gt; &gt; .<BR>&gt; &gt; v=0.<BR>&gt; &gt; o=root 29378 29379 IN IP4 64.2.142.160.<BR>&gt; &gt; s=session.<BR>&gt; &gt; c=IN IP4 1.1.1.1.<BR>&gt; &gt; t=0 0.<BR>&gt; &gt; m=audio 52528 RTP/AVP 0 101.<BR>&gt; &gt; a=rtpmap:0 PCMU/8000.<BR>&gt; &gt; a=rtpmap:101 telephone-event/8000.<BR>&gt; &gt; a=fmtp:101 0-16.<BR>&gt; &gt; a=silenceSupp:off - - - -.<BR>&gt; &gt; a=ptime:20.<BR>&gt; &gt; a=sendrecv.<BR>&gt; &gt;<BR>&gt; &gt; #<BR>&gt; &gt; U 192.168.1.108:5060 -&gt; 2.2.2.2:5060<BR>&gt; &gt; ACK sip:15141234567@2.2.2.2:5060 SIP/2.0.<BR>&gt; &gt; Via: SIP/2.0/UDP 192.168.1.108:5060;branch=z9hG4bK04335252;rport.<BR>&gt; &gt; Route: &lt;sip:2.2.2.2:5060;lr&gt;,&lt;sip:1.1.1.1;lr=on;nat=yes&gt;.<BR>&gt; &gt; Max-Forwards: 70.<BR>&gt; &gt; From: "15141234567" &lt;sip:15141234567@192.168.1.108&gt;;tag=as55bd7355.<BR>&gt; &gt; To: &lt;sip:15141234567@osip.dev.com&gt;;tag=as664de2c2.<BR>&gt; &gt; Contact: &lt;sip:15141234567@192.168.1.108&gt;.<BR>&gt; &gt; Call-ID: 641cab3f73fa37a871818d1a70c4061b@192.168.1.108<BR>&gt; &gt; &lt;<A href="mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108">mailto:641cab3f73fa37a871818d1a70c4061b@192.168.1.108</A>&gt;.<BR>&gt; &gt; CSeq: 102 ACK.<BR>&gt; &gt; User-Agent: Asterisk PBX 1.6.0.6.<BR>&gt; &gt; Content-Length: 0.<BR>&gt; &gt; .<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; ------------------------------------------------------------------------<BR>&gt; &gt;<BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; Users mailing list<BR>&gt; &gt; Users@lists.opensips.org<BR>&gt; &gt; <A href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A><BR>&gt; &gt;&nbsp;<BR>&gt;<BR><BR></FONT></P></DIV></BODY></HTML>