[Freeswitch-users] Sofia reporting 480 - maximum number of sessions

Anthony Minessale anthmct at yahoo.com
Mon Sep 17 13:28:21 PDT 2007


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.

 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org
pstn:213-799-1400


----- Original Message ----
From: David Knell <dave at 3c.co.uk>
To: freeswitch-users at lists.freeswitch.org
Sent: Monday, September 17, 2007 2:53:42 PM
Subject: Re: [Freeswitch-users] Sofia reporting 480 - maximum number of sessions




  

This *might* be it.



My external scripts uses this one as a framework:

http://svn.freeswitch.org/svn/freeswitch/trunk/scripts/socket/sock.pl

- and leaves one zombie process for each time it's called. I imagine
that the errors which I saw

were a result of tables being filled up and a new
session/socket/thread/something not being able

to be created.



My proposed fix is to add (from fs.pl)

$SIG{CHLD} = sub {$fs->disconnect(); die "done"};

which ought to both kill off the zombies and relieve me of making sure
that I call $fs->disconnect

on every occasion when the call-handling thread could exit.



Makes sense, or am I barking up a blind alley?



Cheers --



Dave



 Unfortunately
not.  All that was there, though, were the error reports
as below, one for each incoming call

- I'll capture the console next time it happens.

  

Is there any other debug info that'd be useful?

  

Cheers --

  

Dave

  
    do
you have a copy of the console log of this problem with the verbose
errors?

    

     

    Anthony Minessale II

    

    FreeSWITCH http://www.freeswitch.org/

    ClueCon http://www.cluecon.com/

    

AIM: anthm

    MSN:anthony_minessale at hotmail.com

    GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com

IRC: irc.freenode.net #freeswitch

    

FreeSWITCH Developer Conference

    sip:888 at conference.freeswitch.org

    iax:guest at conference.freeswitch.org/888

    googletalk:conf+888 at conference.freeswitch.org

pstn:213-799-1400

    

    

    -----
Original Message ----

From: David Knell <dave at 3c.co.uk>

To: freeswitch-users at lists.freeswitch.org

Sent: Monday, September 17, 2007 1:01:10 PM

Subject: [Freeswitch-users] Sofia reporting 480 - maximum number of
sessions

    

    Hi -

    

I've a little calling-card application which uses FreeSWITCH as an 

engine via mod_event_socket.

Every so often, it stops accepting incoming calls; the error shown on 

the console is that Sofia's got

its maximum number of sessions active.

    

This isn't down to:

- sockets being left open;

- there being too many sessions (status and sofia status both showed 12
    

sessions last time it happened,

and my max_sessions is set to 1000);

    

Any ideas?

    

Cheers --

    

Dave

    

_______________________________________________

Freeswitch-users mailing list

    Freeswitch-users at lists.freeswitch.org

    http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

    http://www.freeswitch.org

    

    

    

    

    

    

    Yahoo! oneSearch: Finally, 
mobile search that gives answers, not web links.
    
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
  
  
  

  

  -- 
David Knell, Director, 3C Limited
T: 020 8114 8901  F: 020 8692 0677  M: 07773 800623
http://www.3c.co.uk 
  
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
  





-- 
David Knell, Director, 3C Limited
T: 020 8114 8901  F: 020 8692 0677  M: 07773 800623
http://www.3c.co.uk 






      ____________________________________________________________________________________
Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more!
http://tv.yahoo.com/collections/3658 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20070917/e1429035/attachment-0002.html 


More information about the FreeSWITCH-users mailing list