<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">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><param name="auto-restart"<br>value="<n-Attempts|Indefinitely>,<n-Seconds-Delay>”/><br></blockquote></blockquote></blockquote></blockquote></blockquote><br></div><div><br></div><div>Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> 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 <<a href="mailto:mario_fs@mgtech.com">mario_fs@mgtech.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">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 <<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I'm filing a jira to see if we can make this possible.<br><div apple-content-edited="true">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-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; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 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; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 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; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px;"><a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a></div><br class="Apple-interchange-newline"></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 <<br><a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> 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 <<a href="mailto:mario_fs@mgtech.com">mario_fs@mgtech.com</a>> 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">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 <<a href="mailto:mario_fs@mgtech.com">mario_fs@mgtech.com</a>> 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><param name="auto-restart"<br></blockquote>value="<n-Attempts|Indefinitely>,<n-Seconds-Delay>”/><br><blockquote type="cite"><br>On May 28, 2014, at 1:29 PM, Francis <<a href="mailto:sms@icefire.qza.net.au">sms@icefire.qza.net.au</a>> 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">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,<br></blockquote></blockquote>then<br><blockquote type="cite"><blockquote type="cite">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><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 []->[]<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">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 "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></body></html>