<div dir="ltr">Hi,<div><br></div><div>edit /usr/local/freeswitch/conf/autoload_configs/sofia.conf.xml</div><div><br></div><div>uncomment this:</div><div>&lt;!-- &lt;param name=&quot;auto-restart&quot; value=&quot;false&quot;/&gt; --&gt; <br>
</div><div><br></div><div>to look like this:</div><div><br></div><div>&lt;param name=&quot;auto-restart&quot; value=&quot;false&quot;/&gt;<br></div><div><br></div><div>Then restart FS.</div><div><br></div><div><br></div><div>
Your route to the internet or the IP being used by the box is flapping or FS is falsely detecting it to be the case.</div><div>This param should disable that behavior.</div><div><br></div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, May 7, 2014 at 8:52 AM, Francis <span dir="ltr">&lt;<a href="mailto:sms@icefire.qza.net.au" target="_blank">sms@icefire.qza.net.au</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This had me stumped for two days. The server would reboot, FS would come<br>
up and profiles would work for a few seconds, then fail. Checking the<br>
profile status showed it missing, but manually starting it, everything<br>
worked?<br>
<br>
The trigger was the ipv6 interface coming up late, causing the profiles<br>
to reload:<br>
<br>
<br>
2014-05-08 03:51:39.443205 [INFO] mod_sofia.c:5751 EVENT_TRAP: IP change<br>
detected<br>
2014-05-08 03:51:39.443205 [INFO] mod_sofia.c:5752 IP change detected<br>
[]-&gt;[] [::1]-&gt;[2632:f0d0:4211:a::2]<br>
2014-05-08 03:51:39.803298 [NOTICE] sofia_glue.c:5885 Reload XML<br>
[Success]<br>
2014-05-08 03:51:39.803298 [INFO] mod_enum.c:876 ENUM Reloaded<br>
2014-05-08 03:51:39.803298 [INFO] switch_time.c:1191 Timezone reloaded<br>
530 definitions<br>
2014-05-08 03:51:39.843230 [NOTICE] sofia_reg.c:135 UN-Registering<br>
footel<br>
2014-05-08 03:51:40.843346 [NOTICE] sofia.c:2682 Waiting for worker<br>
thread<br>
2014-05-08 03:51:40.843346 [INFO] switch_core_sqldb.c:1495<br>
sofia:external Destroying SQL queue.<br>
2014-05-08 03:51:40.963253 [NOTICE] sofia.c:2682 Waiting for worker<br>
thread<br>
2014-05-08 03:51:40.963253 [INFO] switch_core_sqldb.c:1495<br>
sofia:internal Destroying SQL queue.<br>
2014-05-08 03:51:41.043214 [INFO] switch_core_sqldb.c:1439<br>
sofia:external Stopping SQL thread.<br>
<br>
<br>
.... which wasn&#39;t a problem, but then this error would pop up halfway<br>
through the reload:<br>
<br>
<br>
2014-05-08 03:51:43.883336 [NOTICE] sofia.c:2682 Waiting for worker<br>
thread<br>
nua.c:223 nua_destroy() nua_destroy(0x90c7a98): FATAL: nua_shutdown not<br>
completed<br>
2014-05-08 03:51:43.883336 [INFO] switch_core_sqldb.c:1495<br>
sofia:int-15000 Destroying SQL queue.<br>
2014-05-08 03:51:44.083185 [INFO] switch_core_sqldb.c:1439<br>
sofia:int-15000 Stopping SQL thread.<br>
<br>
<br>
.... resulting in this error:<br>
<br>
<br>
2014-05-08 03:51:44.083185 [NOTICE] sofia.c:4874 Started Profile<br>
int-15000 [sofia_reg_int-15020]<br>
2014-05-08 03:51:44.083185 [DEBUG] sofia.c:2413 Creating agent for<br>
int-15000<br>
2014-05-08 03:51:44.103652 [ERR] sofia.c:2506 Error Creating SIP UA for<br>
profile: int-15000 (sip:mod_sofia@115.89.334.121:15000;maddr=10.5.5.250)<br>
The likely causes for this are:<br>
1) Another application is already listening on the specified address.<br>
<br>
2) The IP the profile is attempting to bind to is not local to this<br>
system.<br>
<br>
<br>
So as an experiment, I deleted all the db&#39;s in /var/lib/freeswitch/db<br>
and the error disappeared, for two reboots. On the third reboot, the<br>
db&#39;s had grown again (less than 1mb all told) and the errors resurfaced.<br>
I also get the same error intermittently when restarting the profile<br>
manually. However, stopping the profile, waiting 10 seconds, then<br>
starting it again works fine.<br>
<br>
The system is FreeSWITCH (Version 1.2.23 -1 32bit) on an Atom N270<br>
1GBram 32GB USB3 MLC flash, which I thought would be fast enough to<br>
handle this. It seems like nua isnt&#39; able to finish whatever it&#39;s doing<br>
before FS tries to restart the profile, causing it to assume something<br>
else is listening on the address and fail loading the profile. Is there<br>
any way I can extend the restart timeout to avoid this?<br>
<br>
-Francis<br>
<br>
<br>
<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>
</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>