<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6001.18148" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Verdana color=#000000 size=2>I was working on one interco problem with a remote SIP proxy running on Kamailio.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Cisco(U1) --> Opensips(P1) --> Internet --> Kamailio(P2) --> Asterisk(U2)</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>The remote proxy(P2) is expecting us to fill the "Route:" header taking information from the "Contact:" header, according to my research the "Route:" header as to be filled using the information found in the last "Record-route:" header.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Note that the "Contact:" header IP address is the one of U2, as it is the destination UA.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>I think our partner using Kalamailio only interconnected UA not Proxy, since they never faced this problem.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>I will have to contact the technicien that as configured there Kalamailio server to validate why face this behavior.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>--------------------------------------------------------------------------</FONT></DIV>
<DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>" 16.12.1.3 Rewriting Record-Route Header Field Values "</FONT></DIV></DIV>
<DIV><PRE><FONT face=Verdana size=2><A href="http://www.ietf.org/rfc/rfc3261.txt">http://www.ietf.org/rfc/rfc3261.txt</A></FONT></PRE></DIV>
<DIV><FONT face=Verdana size=2>--------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>I used a hardcoded ACK to make it work until we reach the butom of this, where we hardcoded the replacement of the IP address in the "Route:" header</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>subst('/^Route: <sip:P2;(.*)$/Route: <sip:U2;\1/');</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>