[asterisk-dev] avoid public IP address in conf

Joshua Colp jcolp at digium.com
Sun Oct 23 12:49:38 CDT 2016


Guido Falsi wrote:
> 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.

That is incorrect. It does not alter the SIP headers. It adds ICE 
candidates to the SDP which can be used to negotiate the path for RTP. 
That also requires the remote side to also support ICE.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org




More information about the asterisk-dev mailing list