Have you been able to reproduce this issue? Be sure to get the SIP traffic captured along with the debug log.<div>-MC<br><br><div class="gmail_quote">On Mon, May 23, 2011 at 3:49 PM, Chris Fowler <span dir="ltr"><chris@fowler.cc></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hi,</p><p class="MsoNormal"> </p><p class="MsoNormal">
On our Production FreeSWITCH box: </p><p class="MsoNormal"> </p><p class="MsoNormal">FreeSWITCH Version 1.0.head (git-4c435ec 2011-03-14 11-54-08 -0500)</p><p class="MsoNormal"> </p><p class="MsoNormal">UP 0 years, 14 days, 6 hours, 28 minutes, 44 seconds, 474 milliseconds, 751 microseconds</p>
<p class="MsoNormal">12519 session(s) since startup</p><p class="MsoNormal">2 session(s) 0/30</p><p class="MsoNormal">1000 session(s) max</p><p class="MsoNormal">min idle cpu 0.00/100.00</p><p class="MsoNormal"> </p><p class="MsoNormal">
At 14:30:37 a reloadxml command was issued.</p><p class="MsoNormal">At 14:30:43 the box started rejecting all calls with 503 error. </p><p class="MsoNormal">At 14:38 it started working again. </p><p class="MsoNormal"> </p>
<p class="MsoNormal"> </p><p class="MsoNormal">Looking at the code I see three conditions can trigger this behavior:</p><p class="MsoNormal"> </p><p class="MsoNormal"> if (sess_count >= sess_max || !sofia_test_pflag(profile, PFLAG_RUNNING) || !switch_core_ready()) {</p>
<p class="MsoNormal"> nua_respond(nh, 503, "Maximum Calls In Progress", SIPTAG_RETRY_AFTER_STR("300"), TAG_END());</p><p class="MsoNormal"> </p><p class="MsoNormal"> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "No more sessions allowed at this time.\n");</p>
<p class="MsoNormal"> </p><p class="MsoNormal"> goto done;</p><p class="MsoNormal"> }</p><p class="MsoNormal"> </p><p class="MsoNormal">Logs show it wasn’t lack of available sessions. How can sofia_test_pflag(profile, PFLAG_RUNNING) or switch_core_ready() fail and busy the system?</p>
<p class="MsoNormal"> </p><p class="MsoNormal">Thoughts? Thx, Chris.</p><p class="MsoNormal"> </p></div></div><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><br></div>