Thanks for advice/ My kamailio starts and now listening my external address, but I still see errors of  tm module

ERROR: tm [ut.h:272]: uri2dst2(): ERROR: uri2dst: bad_uri: sip.myserver.com
Aug  3 07:45:31 Kamailio kamailio: ERROR: tm [uac.c:266]: t_uac_prepare(): t_uac: no socket found



2014-08-02 16:19 GMT+04:00 Fred Posner <fred@palner.com>:
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.

>

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users