I've got a loop, but the first thing checked in each iteration is if session.ready() returns false (and in that case exit the loop).
do you have any loops in your code that might not check for session.ready() in a exit when its not true.
The symptoms you posted would be consistent with held readlocks so if you got a gcore (or windows equiv) of the process you might be able to see what threads where doing what to hang on to the read lock.
also are you creating sessions in the script then executing app with them, beware of this because the thread of the script is used to execute apps on a session created that way and not the session thread.
On Thu, Jan 15, 2009 at 5:20 AM, Jonas Gauffin <jonas.gauffin@gmail.com> wrote:
HelloI got problems with hanging spidermonkey sessions and need some advice on how to debug them.I've made a javascript queue application that uses mod_spidermonkey_socket. It works fine for a while,but after some calls I noticed that calls didnt get transferred to agents. The reason was that earliercalls had not been terminated properly.freeswitch@test1> hupall2009-01-15 12:15:04 [CRIT] switch_core_session.c:147 switch_core_session_hupall() Giving up with 8 sessions remainingAPI CALL [hupall()] output:+OK hangup all channels with cause MANAGER_REQUESTfreeswitch@test1> show callsAPI CALL [show(calls)] output:0 total.As you can see, 8 sessions are alive, but none of them are listed as calls. What kind of logs should I turn on to see what is happening with those sessions?Thanks,Jonas_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org