When sip is behind a NAT do not forget to specify:

in sip.conf

externip = X.X.X.X
fromdomain =
localnet = 192.168.X.0/

The host specified by externip can be either a fully qualified domain name (FQDN) or an IP address.

For versions of Asterisk pre v1.2, the hostname associated with externip is only looked up when Asterisk startups up or if a 'sip reload' is executed.

You should also add qualify=yes (it wasn't said here before) if You don't add this line You won't be able to do or receive any SIP-call from behind NAT
Created by: adla, Last modification: Tue 10 of Oct, 2006 (21:01 UTC) by kowalma
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+