Well you have a few choices: uuid_kill <uuid> (if you know the uuid) hupall <reason> (if you don't mind dropping ALL calls on your system) I'd say hupall is a good choice. Now, if you want to get really fancy and you know that your Lua script always sets a particular channel variable then you can do something like this: hupall matching <chan_var_name> <value> Then it will selectively hangup any channel with a chan var matching the value you specify. -MC On Mon, Oct 11, 2010 at 3:37 PM, Tim St. Pierre < fs-list@communicatefreely.net> wrote:
Yes, I'm doing that in all scripts that loop from now on.
What I was trying to find out, was if there is some sort of fs_cli command that I can run to remove all those calls, other than fsctl restart.
It likely won't be an issue in the future, now that I have the correct control flow, but just in case - it helps to know these tricks.
I'm hoping to get the book ordered. I think it will be useful, and I do like books.
-Tim
Brian West wrote:
Well anthony gave you a hint... wrap your whole loop in a while(session:ready) it will then end the script if the session hangs up.
/b
On Oct 7, 2010, at 9:15 PM, Tim St. Pierre wrote:
I had to completely restart freeswitch to make these calls go away. Is there a less disruptive way to terminate the scripts?
_______________________________________________ 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
_______________________________________________ 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