[asterisk-users] PJSIP Stun/ICE

Francis Mendoza francis.mendoza8 at gmail.com
Tue Jan 26 19:55:29 CST 2016

Hi JC,

I have the same case as you are my server has static public IP assigned and
my client has public dynamic IP address in order to connect them without
issue what I did was to setup openvpn in my other side that has
public static IP and then the client server asterisk will connect into it
and they will communicate with the VPN local IP adresses that I assigned.
hope this 'workaround' helps


On Wednesday, 27 January 2016, Joshua Colp <jcolp at digium.com> wrote:

> James Cloos wrote:
>> "JC" == Joshua Colp<jcolp at digium.com>  writes:
>> JC>  This stems from PJSIP not being dynamic with transports (it
>> JC>  doesn't like its environment changed to that degree while
>> JC>  in use). I'm afraid if your IP changes you'd have to restart
>> JC>  Asterisk when you are using PJSIP.
>> Wow.
>> I say this having voted for pjsip over the listed alternatives back when
>> the plan to depricate chan_sip was first floated:
>> That should have excluded pj from the options.  Which of course means
>> there were no reasonable options.
> PJSIP doesn't like changing existing transports, the NAT functionality is
> provided by the Asterisk implementation and can't be reloaded as a side
> effect due to the heavy handed restriction. With work it could be changed
> to allow the non low level things to be changed. What you can't do with
> PJSIP is create a UDP transport, reload, and have it removed. Once it's
> there it is there unless you restart.
>> Can ari get around that bug?
> ARI is a REST interface to Asterisk, it doesn't have anything to do with
> this.
>> Lack of full support for traversing nat makes pjsip worthless for a
>> large number of users.  And the whole point of realtime is to have all
>> of the rt config fully dymanic.
> I disagree that it makes it worthless for a large number of users. It's
> only within the last few days that a few people have run into this
> particular issue where they have a public IP address that is changing a lot
> and PJSIP does not support changing it without a restart. If it were a huge
> sweeping issue we'd be seeing it more often. If it continues to show up a
> community member or us (heck maybe even myself in my spare time) may look
> into implementing it.
>> If ari cannot avoid that limitation, chan_sip should get full ongoing
>> maintainance until pjsip is fixed.
> The support level for chan_sip has already been changed and was announced
> long ago. Patches will continue to be accepted for it and community members
> can support it. We (Digium) are putting our effort towards PJSIP.
> --
> 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
> --
> _____________________________________________________________________
> -- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160127/bf52c3a4/attachment.html>

More information about the asterisk-users mailing list