<div dir="ltr">Hello!<div><br></div><div>Does anyone know if it is possible to pass variable to set_advertised_address() function?</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-24 17:58 GMT+02:00 Daniel Tryba <span dir="ltr"><<a href="mailto:d.tryba@pocos.nl" target="_blank">d.tryba@pocos.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Jan 24, 2017 at 03:50:24PM +0000, Pranathi Venkatayogi wrote:<br>
>   I am using Kamailio behind NAT, unable to figure how to make it put “public ip” in Record-route header, I am manually inserting the hard-coded header myself as below.<br>
>   However now I am having trouble choosing the right port number in all scenarios.<br>
<br>
<br>
Take a look at <a href="https://www.kamailio.org/wiki/cookbooks/4.4.x/core#listen" rel="noreferrer" target="_blank">https://www.kamailio.org/wiki/<wbr>cookbooks/4.4.x/core#listen</a><br>
and the mentioned set_advertised_address() / set_advertised_port() cfg<br>
functions.<br>
<br>
To quote the documentation:<br>
 A typical use case for advertise address is when running SIP server<br>
 behind a NAT/Firewall, when the local IP address (to be used for bind)<br>
 is different than the public IP address (to be used for advertising).<br>
<br>
<br>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</blockquote></div><br></div>