<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:12pt">you can try it though I would have thought closing the script would also close the sockets but it could easily be the problem if those socks are not closing or you are not hanging up the channels before you exit.<br><br><div>&nbsp;</div><div>Anthony Minessale II<br><br><span>FreeSWITCH <a target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a></span><br><span>ClueCon <a target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com/</a></span><br><br>AIM: anthm<br>MSN:anthony_minessale@hotmail.com<br>GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<br>IRC: irc.freenode.net #freeswitch</div><div><br>FreeSWITCH Developer
 Conference<br>sip:888@conference.freeswitch.org<br>iax:guest@conference.freeswitch.org/888<br>googletalk:conf+888@conference.freeswitch.org<br>pstn:213-799-1400</div><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: David Knell &lt;dave@3c.co.uk&gt;<br>To: freeswitch-users@lists.freeswitch.org<br>Sent: Monday, September 17, 2007 2:53:42 PM<br>Subject: Re: [Freeswitch-users] Sofia reporting 480 - maximum number of sessions<br><br>


  

This *might* be it.<br>
<br>
My external scripts uses this one as a framework:<br>
<a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://svn.freeswitch.org/svn/freeswitch/trunk/scripts/socket/sock.pl">http://svn.freeswitch.org/svn/freeswitch/trunk/scripts/socket/sock.pl</a><br>
- and leaves one zombie process for each time it's called. I imagine
that the errors which I saw<br>
were a result of tables being filled up and a new
session/socket/thread/something not being able<br>
to be created.<br>
<br>
My proposed fix is to add (from fs.pl)<br>
$SIG{CHLD} = sub {$fs-&gt;disconnect(); die "done"};<br>
which ought to both kill off the zombies and relieve me of making sure
that I call $fs-&gt;disconnect<br>
on every occasion when the call-handling thread could exit.<br>
<br>
Makes sense, or am I barking up a blind alley?<br>
<br>
Cheers --<br>
<br>
Dave<br>
<br>
<blockquote type="cite">&nbsp;Unfortunately
not.&nbsp; All that was there, though, were the error reports
as below, one for each incoming call<br>
- I'll capture the console next time it happens.<br>
  <br>
Is there any other debug info that'd be useful?<br>
  <br>
Cheers --<br>
  <br>
Dave<br>
  <blockquote type="cite">
    <div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;">do
you have a copy of the console log of this problem with the verbose
errors?<br>
    <br>
    <div>&nbsp;</div>
    <div>Anthony Minessale II<br>
    <br>
    <span>FreeSWITCH <a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a></span><br>
    <span>ClueCon <a rel="nofollow" target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com/</a></span><br>
    <br>
AIM: anthm<br>
    <a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="mailto:MSN:anthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
    <a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="mailto:GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com">GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: irc.freenode.net #freeswitch</div>
    <div><br>
FreeSWITCH Developer Conference<br>
    <a rel="nofollow" class="moz-txt-link-freetext">sip:888@conference.freeswitch.org</a><br>
    <a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="mailto:iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
    <a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="mailto:googletalk:conf+888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400</div>
    <div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;"><br>
    <br>
    <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">-----
Original Message ----<br>
From: David Knell <a rel="nofollow" class="moz-txt-link-rfc2396E" target="_blank" href="mailto:dave@3c.co.uk">&lt;dave@3c.co.uk&gt;</a><br>
To: <a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Sent: Monday, September 17, 2007 1:01:10 PM<br>
Subject: [Freeswitch-users] Sofia reporting 480 - maximum number of
sessions<br>
    <br>
    <div>Hi -<br>
    <br>
I've a little calling-card application which uses FreeSWITCH as an <br>
engine via mod_event_socket.<br>
Every so often, it stops accepting incoming calls; the error shown on <br>
the console is that Sofia's got<br>
its maximum number of sessions active.<br>
    <br>
This isn't down to:<br>
- sockets being left open;<br>
- there being too many sessions (status and sofia status both showed 12
    <br>
sessions last time it happened,<br>
and my max_sessions is set to 1000);<br>
    <br>
Any ideas?<br>
    <br>
Cheers --<br>
    <br>
Dave<br>
    <br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
    <a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
    <a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
    <a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
    </div>
    </div>
    <br>
    </div>
    </div>
    <br>
    <hr size="1">Yahoo! oneSearch: Finally, <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/evt=48252/*http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC">
mobile search that gives answers</a>, not web links.
    <pre><hr size="4" width="90%">
_______________________________________________
Freeswitch-users mailing list
<a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
  </pre>
  </blockquote>
  <br>
  <br>
  <pre class="moz-signature">-- <br>David Knell, Director, 3C Limited<br>T: 020 8114 8901  F: 020 8692 0677  M: 07773 800623<br><a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://www.3c.co.uk">http://www.3c.co.uk</a> </pre>
  <pre><hr size="4" width="90%">
_______________________________________________
Freeswitch-users mailing list
<a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature">-- <br>David Knell, Director, 3C Limited<br>T: 020 8114 8901  F: 020 8692 0677  M: 07773 800623<br><a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://www.3c.co.uk">http://www.3c.co.uk</a> </pre>
</div><br></div></div><br>
      <hr size=1>Take the Internet to Go: Yahoo!Go puts the <a href="http://us.rd.yahoo.com/evt=48253/*http://mobile.yahoo.com/go?refer=1GNXIC">Internet in your pocket:</a> mail, news, photos & more. </body></html>