How to apply the public IP? My asterisk continuously send local IP in SIP packets
Added by torontob torontob over 9 years ago
Hi everyone,
I do NOT have a public IP interface. I only have a local IP like 192.168.2.5 for GoAutoDial server. I do have a public IP that NAT forwards to GoAutoDial server. I have tried to enter externhost=xx.xx.xx.xx (my public IP) in /etc/asterisk/sip_nat.conf and also in server settings on GoAutoDial GUI but it seems to not work. Whenever I check the Asterisk SIP packets I still see the 192.168.2.5 sent which naturally results in no authentication etc...
What are the steps I have to take to make sure my public IP is sent in SIP packets?
Thanks,
Replies (3)
RE: How to apply the public IP? My asterisk continuously send local IP in SIP packets
-
Added by striker 247 over 9 years ago
hi
in sip.conf enter externip=yourpublicip
and also in sip carrier settings use nat=yes
br
striker
www.striker24x7.blogspot.com
RE: How to apply the public IP? My asterisk continuously send local IP in SIP packets
-
Added by torontob torontob over 9 years ago
I have done both of those and it fails as in I still see my local ip in the packets. It seems like sip.conf changes has no effect on the system.
RE: How to apply the public IP? My asterisk continuously send local IP in SIP packets
-
Added by Jefferson Varias over 9 years ago
Hi,
You can try to reload or restart your asterisk after making changes on sip.conf.
Thanks