<div dir="ltr">See commit 956da6d<div><br></div><div>This is the kind of discussion better suited for Jira we should find a way to migrate mailing list threads into Jira automatically and preserve the conversation.</div><div>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 2, 2014 at 12:06 PM, Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">auto-restart is also a per-profile setting the one noted just sets it on all of them. <div>It will restart profiles who have the ip that changed present in the rtp-ip or sip-ip.</div>
<div><br></div><div>I did just see an errant restart_all_profiles call in the code in questions which will be corrected.</div>
<div><br></div><div>We can see if we can improve its resilience. </div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Thu, May 29, 2014 at 3:32 PM, Mario G <span dir="ltr"><<a href="mailto:mario_fs@mgtech.com" target="_blank">mario_fs@mgtech.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have nailed this down and this looks like it should affect other people… I discovered why the IPV6 address changes.. It has to do with privacy addressing (<a href="http://tools.ietf.org/html/rfc3041" target="_blank">http://tools.ietf.org/html/rfc3041</a>) which is (a good thing) defaulted since OS X 10.7, and on windows, and other devices. When enabled, the system will generate a temporary IPV6 address with a random suffix in addition to the EUI-64-based address. This is so the device mac address does not get published on the public interface.<br>
<br>
I think FreeSWITCH will need something to handle this eventually and not restart all profiles. If the IPV6 changes why restart IPV4 only profiles? Also, we need a better way to handle the port busy condition when the internal profile is restarted.<br>
<span><font color="#888888">Mario G<br>
</font></span><div><div><br>
On May 29, 2014, at 12:44 PM, Mario G <<a href="mailto:mario_fs@mgtech.com" target="_blank">mario_fs@mgtech.com</a>> wrote:<br>
<br>
> That would solve both my problems (I think), may have to bribe Anthony…<br>
> Mario G<br>
><br>
> I like your idea:<br>
> <param name="auto-restart" value="<n-Attempts|Indefinitely>,<n-Seconds-Delay>”/><br>
><br>
> On May 28, 2014, at 1:29 PM, Francis <<a href="mailto:sms@icefire.qza.net.au" target="_blank">sms@icefire.qza.net.au</a>> wrote:<br>
><br>
>> I had the same issue on a HP T5745, where the IPV6 interface would come<br>
>> up late after boot and cause the profiles to restart, but the internal<br>
>> would fail to load:<br>
>><br>
>> <a href="https://jira.freeswitch.org/browse/FS-6537" target="_blank">https://jira.freeswitch.org/browse/FS-6537</a><br>
>><br>
>> Testing from git Master last week, there is a new timer that prevents<br>
>> the profile from being restarted if it has been up for less than 10<br>
>> seconds. I've only tried this with manually restarting though, I still<br>
>> have to test it in a scenario where the IPV6 address randomly changes.<br>
>> Anthony pointed out that there is a setting in sofia.conf.xml:<br>
>><br>
>> <param name="auto-restart" value="false"/><br>
>><br>
>> ... which prevents the profiles from auto-reloading if the IP address<br>
>> changes. This is ok for me, but if you want to continue using IPV6, then<br>
>> it won't help you.<br>
>> Have you tried the latest master?<br>
>><br>
>> PS, I think your idea of auto attempting restarts on fail is a good<br>
>> one, something like:<br>
>><br>
>> <param name="auto-restart"<br>
>> value="<n-Attempts|Indefinitely>,<n-Seconds-Delay>"/><br>
>><br>
>> would be the sweet spot.<br>
>><br>
>><br>
>> -Francis<br>
>><br>
>><br>
>> On 2014-05-29 04:07, Mario G wrote:<br>
>>> I have a mix of native IPV4/6. A mac runs FreeSWITCH using a static<br>
>>> IP4 address and has IPV6 addresses. For some reason (I am not an IPV6<br>
>>> expert) the IPV6 address changes once or twice a day. Everything on<br>
>>> the mac runs fine except FreeSWITCH stops all the profiles then<br>
>>> restarts them, it then loses the internal profile. The sequence is<br>
>>> below, If anyone knows of a FS param or something I can use to<br>
>>> workaround this please let me know. BTW, I am not using IPV6 to the<br>
>>> external ITSPs, but the Yealink phones have it on, I could turn it off<br>
>>> but was hoping for a real solution. Thanks,<br>
>>> Mario G<br>
>>><br>
>>> 1 - Log shows: [INFO] mod_sofia.c:5286 IP change detected []->[]<br>
>>> [2601:9…..<br>
>>><br>
>>> 2 - FreeSWITCH stops all 7 external profiles and the internal profile.<br>
>>><br>
>>> 3 - All profiles are restarted, but only the external ones start<br>
>>> successfully. The internal does not start because the port has not<br>
>>> been freed by OS X yet. And FreeSWITCH never attempts to restart it<br>
>>> again. I am sure this is related to Jira<br>
>>> <a href="http://jira.freeswitch.org:8080/browse/FS-5223" target="_blank">http://jira.freeswitch.org:8080/browse/FS-5223</a> but is a bigger problem<br>
>>> since I have to turn off IPV6 to stop it.<br>
>>><br>
>>> 4 - I have to "sofia profile internal start” to get it going again.<br>
>>><br>
>>> PS: Would love to find a way to get FS to keep trying to restart<br>
>>> internal rather than give up, would help both problems.<br>
>>><br>
>>><br>
>>> _________________________________________________________________________<br>
>>> Professional FreeSWITCH Consulting Services:<br>
>>> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>><br>
>>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>>> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
>>><br>
>>> Official FreeSWITCH Sites<br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
>>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>>><br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>> _________________________________________________________________________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>><br>
>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>><br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr">Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a> ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a> ☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div>
<div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br>
</div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a> ☎ <a href="tel:%2B19193869900" value="+19193869900" target="_blank">+19193869900</a> </div><div><br>
</div></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a> ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a> ☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div>
<div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br>
</div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a> ☎ +19193869900 </div><div><br></div></div></div></div>
</div>