[SR-Users] Kamailio behind NAT- alias issue

Fred Posner fred at palner.com
Sat Aug 2 14:19:47 CEST 2014


Hello Yuriy,

> If I write at kamailio.cfg:
> alias=sip.myserver.com
>
> I see error at log - bad_uri sip.myserver.com

try adding the port...

alias=sip.myserver.com:5060

Also, since you're behind NAT make sure you also advertise the address
with advertised_address="sip.myserver.com".

Fred Posner
The Palner Group, Inc.
http://www.palner.com (web)
+1-503-914-0999 (direct)
+1-954-472-2896 (fax)

On 08/02/2014 07:51 AM, Yuriy Gorlichenko wrote:
> Hello. I have Kamailio running behind NAT. It lesten eth0 with ip
> 192.168.0.3 and
> I have external IP that have domain name (for example sip.myserver.com).
> 
> Register packets from clients comes from external IP.
> 
> If I write at kamailio.cfg:
> alias=sip.myserver.com
> 
> I see error at log - bad_uri sip.myserver.com
> 
> I think it happens because kamailio does not know atything about external
> ip pecause kamamiliol working with server interfaces (eth0, eth1, etc.)
> 
> So my question - how to listen external IP with domain name on kamailio
> that running behind NAT?
> 
> P.S. I do not have any access to router, that present NAT for me.

> 



More information about the sr-users mailing list