On 10/08/2010 10:16 PM, bruce bruce wrote:

> I said previously, Asterisk receives packets like extens...@192.168.0.10
> <mailto:extens...@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 extens...@123.123.123.123
> <mailto:extens...@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: kflem...@digium.com
Check us out at www.digium.com & www.asterisk.org

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to