Asterisk under NAT

From Kolmisoft Wiki
Revision as of 14:00, 27 December 2007 by Admin (talk | contribs)
Jump to navigationJump to search

If your Asterisk box is under NAT, you should edit /etc/asterisk/sip.conf file:

externip = <YOUR REAL IP>
localnet = <LOCAL NET IP/MASK>

Example:

externip = 23.45.67.89
localnet = 10.10.1.0/255.255.255.0

Forward SIP ports (UDP 5060, 10000-20000) on your firewall to this Asterisk machine.

Restart Asterisk.