VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
jeff at ocjtech.us Guest
|
Posted: Wed Oct 22, 2014 9:14 pm Post subject: [asterisk-users] PJSIP and NAT behind a dynamic IP address |
|
|
What should the PJSIP configuration be if your external IP address is
dynamic, as is common with most home networks, and probably a lot of
small business networks as well? The external_media_address and
external_signaling_address transport settings are static. It would be
possible to write a script that would detect the external IP address
and rewrite the pjsip configuration file, but since you can't change
transports without a full restart of the server that doesn't seem very
friendly. Is the only alternative to rely on your firewall/router to
fix up the address in the SDP?
--
Jeff Ollie
--
_____________________________________________________________________
-- 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 |
|
Back to top |
|
|
sgriepentrog at digium... Guest
|
Posted: Thu Oct 23, 2014 12:47 am Post subject: [asterisk-users] PJSIP and NAT behind a dynamic IP address |
|
|
If you review the current asterisk 12 sample pjsip config for extension 6002 (viewable here: http://svnview.digium.com/svn/asterisk/branches/12/configs/pjsip.conf.sample), 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.
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.
On Wed, Oct 22, 2014 at 9:13 PM, Jeffrey Ollie <jeff@ocjtech.us (jeff@ocjtech.us)> wrote:
Quote: | What should the PJSIP configuration be if your external IP address is
dynamic, as is common with most home networks, and probably a lot of
small business networks as well? The external_media_address and
external_signaling_address transport settings are static. It would be
possible to write a script that would detect the external IP address
and rewrite the pjsip configuration file, but since you can't change
transports without a full restart of the server that doesn't seem very
friendly. Is the only alternative to rely on your firewall/router to
fix up the address in the SDP?
--
Jeff Ollie
--
_____________________________________________________________________
-- 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
|
--
Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 256 580 6090
Check us out at: http://digium.com · http://asterisk.org |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|