Synopsis
localnet = net.ip.addr/subnet.mask
Description
Hosts falling within the network ranges specified by the localnet option will be excluded from any NATing efforts by Asterisk. As a result, the source IP address within the SIP requests/responses will use the internal IP address of the network interface associated with bindaddr .
Examples
[general]
localnet=192.168.2.0/255.255.255.0
localnet=10.5.1.0/255.255.255.192
Notes
Multiple localnet statements can specified. The system will use them all.
This option is only recognized under the [general] section of the sip.conf.