<div dir="ltr"><div class="gmail_default" style="color:rgb(102,0,0)">If you review the current asterisk 12 sample pjsip config for extension 6002 (viewable here: <a href="http://svnview.digium.com/svn/asterisk/branches/12/configs/pjsip.conf.sample">http://svnview.digium.com/svn/asterisk/branches/12/configs/pjsip.conf.sample</a>), you will find it contains the correct settings for an endpoint behind NAT. Specifically note that you need rewrite_contact enabled so that the contact address is rewritten to match the inbound SIP registration, and also with rtp_symmetric enabled to do the same thing for RTP.</div><div class="gmail_default" style="color:rgb(102,0,0)"><br></div><div class="gmail_default" style="color:rgb(102,0,0)">Also be aware that you will have less problems by omitting the transport= line from the endpoint configuration altogether. It's generally not required to define that the endpoint is restricted to using a specific transport, and doing so interferes with the automatic transport selection, possibly including the symmetric SIP operation.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 22, 2014 at 9:13 PM, Jeffrey Ollie <span dir="ltr"><<a href="mailto:jeff@ocjtech.us" target="_blank">jeff@ocjtech.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What should the PJSIP configuration be if your external IP address is<br>
dynamic, as is common with most home networks, and probably a lot of<br>
small business networks as well? The external_media_address and<br>
external_signaling_address transport settings are static. It would be<br>
possible to write a script that would detect the external IP address<br>
and rewrite the pjsip configuration file, but since you can't change<br>
transports without a full restart of the server that doesn't seem very<br>
friendly. Is the only alternative to rely on your firewall/router to<br>
fix up the address in the SDP?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Jeff Ollie<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>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><img alt="Digium logo" src="https://my.digium.com/images/graphics/digium_RGB_signature.gif" width="288" height="50" style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:12px"><div>Scott Griepentrog<br>Digium, Inc · Software Developer<br>445 Jan Davis Drive NW · Huntsville, AL 35806 · US<br>direct/fax: +1 256 428 6239 · mobile: +1 256 580 6090<br>Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> · <a href="http://asterisk.org" target="_blank">http://asterisk.org</a><br></div></div>
</div>