[Freeswitch-users] IPV6 addr change killed sofia profile internal

Francis sms at icefire.qza.net.au
Thu May 29 00:29:06 MSD 2014


I had the same issue on a HP T5745, where the IPV6 interface would come 
up late after boot and cause the profiles to restart, but the internal 
would fail to load:

https://jira.freeswitch.org/browse/FS-6537

Testing from git Master last week, there is a new timer that prevents 
the profile from being restarted if it has been up for less than 10 
seconds. I've only tried this with manually restarting though, I still 
have to test it in a scenario where the IPV6 address randomly changes. 
Anthony pointed out that there is a setting in sofia.conf.xml:

     <param name="auto-restart" value="false"/>

... which prevents the profiles from auto-reloading if the IP address 
changes. This is ok for me, but if you want to continue using IPV6, then 
it won't help you.
Have you tried the latest master?

PS,  I think your idea of auto attempting restarts on fail is a good 
one, something like:

<param name="auto-restart" 
value="<n-Attempts|Indefinitely>,<n-Seconds-Delay>"/>

would be the sweet spot.


-Francis


On 2014-05-29 04:07, Mario G wrote:
> I have a mix of native IPV4/6. A mac runs FreeSWITCH using a static
> IP4 address and has IPV6 addresses. For some reason (I am not an IPV6
> expert) the IPV6 address changes once or twice a day. Everything on
> the mac runs fine except FreeSWITCH stops all the profiles then
> restarts them, it then loses the internal profile. The sequence is
> below, If anyone knows of a FS param or something I can use to
> workaround this please let me know. BTW, I am not using IPV6 to the
> external ITSPs, but the Yealink phones have it on, I could turn it off
> but was hoping for a real solution. Thanks,
> Mario G
> 
> 1 - Log shows: [INFO] mod_sofia.c:5286 IP change detected []->[] 
> [2601:9…..
> 
> 2 - FreeSWITCH stops all 7 external profiles and the internal profile.
> 
> 3 - All profiles are restarted, but only the external ones start
> successfully. The internal does not start because the port has not
> been freed by OS X yet. And FreeSWITCH never attempts to restart it
> again. I am sure this is related to Jira
> http://jira.freeswitch.org:8080/browse/FS-5223 but is a bigger problem
> since I have to turn off IPV6 to stop it.
> 
> 4 - I have to "sofia profile internal start” to get it going again.
> 
> PS: Would love to find a way to get FS to keep trying to restart
> internal rather than give up, would help both problems.
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list