[asterisk-users] PJSIP and NAT behind a dynamic IP address

Jeffrey Ollie jeff at ocjtech.us
Wed Oct 22 21:13:40 CDT 2014

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

More information about the asterisk-users mailing list