[asterisk-users] SPA-2102 sending local IP instead of WAN IP in SIP packets
Kevin P. Fleming
kpfleming at digium.com
Sat Oct 9 07:27:22 CDT 2010
On 10/08/2010 10:16 PM, bruce bruce wrote:
> I said previously, Asterisk receives packets like extension at 192.168.0.10
> <mailto:extension at 192.168.0.10> is trying to register to it. So,
> Asterisk sends out to local LAN an ACK which obviously is not right.
> SPA-2102 should send SIP request like extension at 123.123.123.123
> <mailto:extension at 123.123.123.123> (public IP).
If you set 'nat=yes' in the sip.conf peer entry for that device in
Asterisk, Asterisk will reply to the IP address and port number the
REGISTER request was received from, not the address in the Contact
header provided in the request itself. It will also record this address
and port number as the location of that peer for future INVITE messages
to be sent to it.
--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kfleming at digium.com
Check us out at www.digium.com & www.asterisk.org
More information about the asterisk-users
mailing list