[SR-Users] How to determine correct port to set in record-route header

Володимир Іванець volodyaivanets at gmail.com
Fri Mar 30 15:53:54 CEST 2018


Hello!

Does anyone know if it is possible to pass variable
to set_advertised_address() function?

2017-01-24 17:58 GMT+02:00 Daniel Tryba <d.tryba at pocos.nl>:

> On Tue, Jan 24, 2017 at 03:50:24PM +0000, Pranathi Venkatayogi wrote:
> >   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.
> >   However now I am having trouble choosing the right port number in all
> scenarios.
>
>
> Take a look at https://www.kamailio.org/wiki/cookbooks/4.4.x/core#listen
> and the mentioned set_advertised_address() / set_advertised_port() cfg
> functions.
>
> To quote the documentation:
>  A typical use case for advertise address is when running SIP server
>  behind a NAT/Firewall, when the local IP address (to be used for bind)
>  is different than the public IP address (to be used for advertising).
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180330/08da6125/attachment.html>


More information about the sr-users mailing list