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 <[email protected]>wrote: > On 10/08/2010 10:16 PM, bruce bruce wrote: > > > I said previously, Asterisk receives packets like [email protected] > > <mailto:[email protected]> 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 [email protected] > > <mailto:[email protected]> (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: [email protected] > 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 >
-- _____________________________________________________________________ -- 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
