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.<div>
<br></div><div>Thanks<br><br><div class="gmail_quote">On Sat, Oct 9, 2010 at 8:27 AM, Kevin P. Fleming <span dir="ltr"><<a href="mailto:kpfleming@digium.com">kpfleming@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 10/08/2010 10:16 PM, bruce bruce wrote:<br>
<br>
> I said previously, Asterisk receives packets like <a href="mailto:extension@192.168.0.10">extension@192.168.0.10</a><br>
</div>> <mailto:<a href="mailto:extension@192.168.0.10">extension@192.168.0.10</a>> is trying to register to it. So,<br>
<div class="im">> Asterisk sends out to local LAN an ACK which obviously is not right.<br>
> SPA-2102 should send SIP request like <a href="mailto:extension@123.123.123.123">extension@123.123.123.123</a><br>
</div>> <mailto:<a href="mailto:extension@123.123.123.123">extension@123.123.123.123</a>> (public IP).<br>
<br>
If you set 'nat=yes' in the sip.conf peer entry for that device in<br>
Asterisk, Asterisk will reply to the IP address and port number the<br>
REGISTER request was received from, not the address in the Contact<br>
header provided in the request itself. It will also record this address<br>
and port number as the location of that peer for future INVITE messages<br>
to be sent to it.<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Kevin P. Fleming<br>
Digium, Inc. | Director of Software Technologies<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
skype: kpfleming | jabber: <a href="mailto:kfleming@digium.com">kfleming@digium.com</a><br>
Check us out at <a href="http://www.digium.com" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>