[Asterisk-Users] Phones that work well through NAT

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Wed Apr 19 08:03:29 MST 2006


On Tuesday 18 April 2006 21:06, Sean Garland wrote:
> So I have * box ----  shorewall/linux NAT firewall ---- internet -----
> WRT54G with openwrt -----  IP500
>
> I have 5060, 4569, and 10000 through 20000 forwarded to * box from
> internet.  I have tried everything I can think of on the wrt to get it to
> work but it appears, looking at tcpdump that my phone is trying to get to
> the * box (I can get one way audio with port mapping in the WRT) using the
> 192.168.x.x address it has as its internal interface...  Is there a way to
> force the IP500 to use the public IP of the * box for RTP?  Then it should
> work...

I think you need to do that on the Asterisk side, in sip.conf, setting 
externip or externhost and externrefresh may be what you want.  Don't forget 
about localnet if you have SIP phones on the LAN too.

(info taken from the sample sip.conf in asterisk)

-A.



More information about the asterisk-users mailing list