<p dir="ltr">My patch included auto retry too.  I&#39;m on the road so I can&#39;t look up the commit now but you should find it in sofia</p>
<div class="gmail_quote">On Jun 15, 2014 3:43 PM, &quot;Mario G&quot; &lt;<a href="mailto:mario_fs@mgtech.com">mario_fs@mgtech.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">An update: I did not find a JIRA or I would have posted there. Anthony’s patch has been in for 2 weeks and no problem with auto changing IP6 addresses so far. Still, we need some time of auto-retry for profile internal failures to solve other issues.<div>
Mario<br><div><br></div><div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">PS,  I think your idea of auto attempting restarts on fail is a good<br>
one, something like:<br><br>&lt;param name=&quot;auto-restart&quot;<br>value=&quot;&lt;n-Attempts|Indefinitely&gt;,&lt;n-Seconds-Delay&gt;”/&gt;<br></blockquote></blockquote></blockquote></blockquote></blockquote><br></div>
<div><br></div><div>Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt; wrote:<br><br><blockquote type="cite">See commit 956da6d<br><br>This is the kind of discussion better suited for Jira we should find a way<br>
to migrate mailing list threads into Jira automatically and preserve the<br>conversation.</blockquote><div><br></div><br><div><div>On Jun 3, 2014, at 10:48 AM, Mario G &lt;<a href="mailto:mario_fs@mgtech.com" target="_blank">mario_fs@mgtech.com</a>&gt; wrote:</div>
<br><blockquote type="cite"><div style="word-wrap:break-word">Just an FYI I have been testing Anthony’s patch for 19 hours. I will migrate over to the Jira.<div>Mario G<br><div><br><div><div>On Jun 3, 2014, at 7:04 AM, Brian West &lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt; wrote:</div>
<br><blockquote type="cite"><div style="word-wrap:break-word">I&#39;m filing a jira to see if we can make this possible.<br><div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<span style="border-collapse:separate;font-family:Helvetica;border-spacing:0px"><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">
--</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">
Brian West</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">
<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></div><br></span></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote></div></div></div></div></blockquote>
<div><br></div></div><blockquote type="cite">On Mon, Jun 2, 2014 at 12:06 PM, Anthony Minessale &lt;<br><a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt; wrote:<br><br><blockquote type="cite">
auto-restart is also a per-profile setting the one noted just sets it on<br>all of them.<br>It will restart profiles who have the ip that changed present in the<br>rtp-ip or sip-ip.<br><br>I did just see an errant restart_all_profiles call in the code in<br>
questions which will be corrected.<br><br>We can see if we can improve its resilience.<br><br><br>On Thu, May 29, 2014 at 3:32 PM, Mario G &lt;<a href="mailto:mario_fs@mgtech.com" target="_blank">mario_fs@mgtech.com</a>&gt; wrote:<br>
<br><blockquote type="cite">I have nailed this down and this looks like it should affect other<br>people… I discovered why the IPV6 address changes.. It has to do with<br>privacy addressing (<a href="http://tools.ietf.org/html/rfc3041" target="_blank">http://tools.ietf.org/html/rfc3041</a>) which is (a good<br>
thing) defaulted since OS X 10.7, and on windows, and other devices. When<br>enabled, the system will generate a temporary IPV6 address with a random<br>suffix in addition to the EUI-64-based address. This is so the device mac<br>
address does not get published on the public interface.<br><br>I think FreeSWITCH will need something to handle this eventually and not<br>restart all profiles. If the IPV6 changes why restart IPV4 only profiles?<br>Also, we need a better way to handle the port busy condition when the<br>
internal profile is restarted.<br>Mario G<br><br>On May 29, 2014, at 12:44 PM, Mario G &lt;<a href="mailto:mario_fs@mgtech.com" target="_blank">mario_fs@mgtech.com</a>&gt; wrote:<br><br><blockquote type="cite">That would solve both my problems (I think), may have to bribe Anthony…<br>
Mario G<br><br>I like your idea:<br>&lt;param name=&quot;auto-restart&quot;<br></blockquote>value=&quot;&lt;n-Attempts|Indefinitely&gt;,&lt;n-Seconds-Delay&gt;”/&gt;<br><blockquote type="cite"><br>On May 28, 2014, at 1:29 PM, Francis &lt;<a href="mailto:sms@icefire.qza.net.au" target="_blank">sms@icefire.qza.net.au</a>&gt; wrote:<br>
<br><blockquote type="cite">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&#39;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>  &lt;param name=&quot;auto-restart&quot; value=&quot;false&quot;/&gt;<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,<br></blockquote></blockquote>then<br><blockquote type="cite"><blockquote type="cite">
it won&#39;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>&lt;param name=&quot;auto-restart&quot;<br>value=&quot;&lt;n-Attempts|Indefinitely&gt;,&lt;n-Seconds-Delay&gt;&quot;/&gt;<br>
<br>would be the sweet spot.<br><br><br>-Francis<br><br><br>On 2014-05-29 04:07, Mario G wrote:<br><blockquote type="cite">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 []-&gt;[]<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<br>
</blockquote></blockquote></blockquote>problem<br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">since I have to turn off IPV6 to stop it.<br><br>4 - I have to &quot;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></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">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">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></blockquote></div>