[asterisk-dev] avoid public IP address in conf

Guido Falsi mad at madpilot.net
Sun Oct 23 04:01:40 CDT 2016


On 10/22/16 17:35, Francesco Pasqualini wrote:
> I don't understand....
> 
> Asterisk can know its external IP and when it changes (query the value
> at interval). When it changes, asterisk could restart itself, for example.
> 
> or not ?

I don't think any of this is really needed. Enabling ICE support in
sip.conf or pjsip.conf and configuring a STUN server should be enough
for what you are trying to do.

With ICE support asterisk will fill the SIP request with alternative IPs
it found out using STUN and the external IP will also be there for the
other communication end to try to connect to.

If you also have access to a TURN server you can configure that will
make things work even better, but is not strictly required if you
configure your router to forward a port range to your asterisk machine.

-- 
Guido Falsi <mad at madpilot.net>



More information about the asterisk-dev mailing list