You need to check session:ready in every loop<br><br>-Steve<br><br><br><div class="gmail_quote">On 27 June 2011 17:20, Wes <span dir="ltr">&lt;<a href="mailto:wes-fs@499x.com">wes-fs@499x.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<u></u>

  
    
  
  <div bgcolor="#ffffff" text="#000000">
    Ok, I think they&#39;re getting stuck if I hang up while recording the
    call, line 54 in the pastebin source.  When I hang up, I see the
    message logged in line 55, but then I think it enters the &quot;while
    (listen)&quot; loop, and never gets out.  Because if I uncomment line 58,
    it scrolls endlessly in the log saying: &quot;flushing digits 2&quot; 
    &quot;flushing digits 2&quot;  &quot;flushing digits 2&quot; ...<br>
    <br>
    script<br>
    <a href="http://pastebin.freeswitch.org/16601" target="_blank">http://pastebin.freeswitch.org/16601</a><br>
    <br>
    log:<br>
    <a href="http://pastebin.freeswitch.org/16602" target="_blank">http://pastebin.freeswitch.org/16602</a><br>
    <br>
    so is the trick to check something else in the while loop like:
    while (listen and not hung up) ?<div><div></div><div class="h5"><br>
    <br>
    <br>
    On 6/24/2011 6:15 PM, Michael Collins wrote:
    <blockquote type="cite">The key is in knowing why those are stuck. Do a &quot;show
      channels&quot; when you see these so-called phantom sessions, then put
      it on pastebin so we can take a look.<br>
      -MC<br>
      <br>
      <div class="gmail_quote">On Fri, Jun 24, 2011 at 2:37 PM, Wes <span dir="ltr">&lt;<a href="mailto:wes-fs@499x.com" target="_blank">wes-fs@499x.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">in my testing, I&#39;m getting some sessions
          that are, hung, I guess.<br>
          <br>
          Status shows:<br>
          <br>
          UP 0 years, 0 days, 2 hours, 7 minutes, 37 seconds, 752
          milliseconds,<br>
          720 microseconds<br>
          23 session(s) since startup<br>
          5 session(s) 0/30<br>
          1000 session(s) max<br>
          min idle cpu 0.00/0.00<br>
          <br>
          <br>
          if I do a shutdown, it waits on them for a while, then
          eventually shuts<br>
          down.<br>
          <br>
          Is there any way to &quot;clean&quot; these up periodically?  Or, what
          am I doing<br>
          to leave them out there?<br>
          <br>
          thanks!<br>
          <br>
          _______________________________________________<br>
          Join us at ClueCon 2011, Aug 9-11, Chicago<br>
          <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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>
        </blockquote>
      </div>
      <br>
      <pre><fieldset></fieldset>
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
    </blockquote>
  </div></div></div>

<br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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 style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">

</div>