I have set that from the beginning, but of no avail.
advertised_address="63.149.103.72"
listen=udp:MY_IP_ADDR:5060 advertise MY_PUBLICIP_ADDR:5060
-----Original Message-----
From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Daniel Tryba
Sent: Tuesday, January 24, 2017 7:59 AM
To: Kamailio (SER) - Users Mailing List <sr-users(a)lists.sip-router.org>
Subject: Re: [SR-Users] How to determine correct port to set in record-route header
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(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users