<div dir="ltr"><font color="#3366ff"><font><font face="tahoma,sans-serif">I know about record_route_advertised_address(&quot;ip:port&quot;) function. If I understood correctly, it inserts a top-most RR header with the public IP if double RR is enabled. But that doesn&#39;t solve the multiple ports problem. I would get in the SIP header :<br>

<br>Record-Route: &lt;public_ip;lr=on&gt;<br>Record-Route: &lt;private_ip:port;lr=on&gt;<br><br>If user B sees the first Record-Route header, it remembers port=5060 for future requests.<br>I cannot manually set the port in the config file since it depends on which port user B is registered, which I don&#39;t have a way to find it.<br>

<br>RA<br clear="all"></font></font></font><br>
<br><br><div class="gmail_quote">On Mon, Jan 16, 2012 at 15:51, Andrew Pogrebennyk <span dir="ltr">&lt;<a href="mailto:apogrebennyk@sipwise.com">apogrebennyk@sipwise.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<div class="im"><br>
On 01/16/2012 03:41 PM, Reda Aouad wrote:<br>
&gt; I suggest that the function record_route( ) takes a public IP address as<br>
&gt; a parameter, still doing what it does (correct record routing and cookie<br>
&gt; addition did=xxx and loose route lr=on), but only replacing the private<br>
&gt; IP address on which Kamailio listens with a public IP address. Or that<br>
&gt; the record_route( ) function uses the advertised_address to construct<br>
&gt; the RR header.<br>
<br>
</div>maybe you are looking for the function record_route_advertised_address()<br>
which is available in git master:<br>
<a href="http://web.archiveorange.com/archive/v/jZFTGE0yjPqCTTcAkzuf" target="_blank">http://web.archiveorange.com/archive/v/jZFTGE0yjPqCTTcAkzuf</a><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br></div>