[asterisk-users] SPA-2102 sending local IP instead of WAN IP in SIP packets

bruce bruce bruceb444 at gmail.com
Sat Oct 9 13:34:28 CDT 2010


And that is exactly what is done on the device: Nat=yes but Asterisk still
sees the SIP packet coming in to register with a local IP an so it responds
to a local IP which doesn't even exist on the Asterisk network. This is what
frustrates me that it's not so straight forward to Asterisk to obtain the
proper public IP of the device from the IP packet headers rather than the
SIP packets.

Thanks

On Sat, Oct 9, 2010 at 8:27 AM, Kevin P. Fleming <kpfleming at digium.com>wrote:

> 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
>
> --
> _____________________________________________________________________
> -- 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101009/9c9b1cde/attachment.htm 


More information about the asterisk-users mailing list