<div dir="ltr">I don't undestand why you talking of local network.<br><br>The situation i'm talking about is asterisk running behind NAT (for example behind a firewall)</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 22, 2016 at 5:39 PM, Joshua Colp <span dir="ltr"><<a href="mailto:jcolp@digium.com" target="_blank">jcolp@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Francesco Pasqualini wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't understand....<br>
<br>
Asterisk can know its external IP and when it changes (query the value<br>
at interval). When it changes, asterisk could restart itself, for example.<br>
<br>
or not ?<br>
</blockquote>
<br>
Yes, it could use STUN to know its external IP address. It wouldn't need to restart - it could update it. You would still need to set the local network information like I said though. If you are talking to a device on the local network you DO NOT want to put the public address in as it may not work.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Joshua Colp<br>
Digium, Inc. | Senior Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br>
Check us out at: <a href="http://www.digium.com" rel="noreferrer" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" rel="noreferrer" target="_blank">www.asterisk.org</a><br>
<br>
<br>
-- <br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
  <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/mailma<wbr>n/listinfo/asterisk-dev</a><br>
</font></span></blockquote></div><br></div>