[asterisk-dev] STUN support in chan_sip revisited

David Vossel dvossel at digium.com
Fri Aug 6 17:23:50 CDT 2010


I don't want to completely derail this current discussion about proper use of STUN with SIP, but during a talk with Kevin an interesting usage of STUN was brought up that would be trivial to implement.

What you do you all think about using STUN as a way to simply detect when a network's external IP address has changed?  There is a common problem people have who are using Asterisk behind a NAT with an external dynamic IP address.  Anytime the external IP changes, all the external SIP devices the Asterisk box has registered to will be sending calls to the wrong address until the SIP registration is renewed.  In the past people have had to respond to this problem by forcing Asterisk to restart in order to renew all their SIP registrations.  Since there are freely available STUN servers  all over the place it seems like giving Asterisk the ability to use a STUN server as a way to detect a network address change would be a great idea.  By doing this, any channel drivers that register with external devices can be made aware of the IP change and automatically renew their registrations.

David Vossel
Digium, Inc. | Software Developer, Open Source Software
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org
The_Boy_Wonder in #asterisk-dev



More information about the asterisk-dev mailing list