Well you have a few choices:<br><br>uuid_kill <uuid> (if you know the uuid)<br>hupall <reason> (if you don't mind dropping ALL calls on your system)<br><br>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:<br>
<br>hupall matching <chan_var_name> <value><br><br>Then it will selectively hangup any channel with a chan var matching the value you specify. <br>-MC<br><br><div class="gmail_quote">On Mon, Oct 11, 2010 at 3:37 PM, Tim St. Pierre <span dir="ltr"><<a href="mailto:fs-list@communicatefreely.net">fs-list@communicatefreely.net</a>></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;">Yes, I'm doing that in all scripts that loop from now on.<br>
<br>
What I was trying to find out, was if there is some sort of fs_cli command that I can run to remove<br>
all those calls, other than fsctl restart.<br>
<br>
It likely won't be an issue in the future, now that I have the correct control flow, but just in<br>
case - it helps to know these tricks.<br>
<br>
I'm hoping to get the book ordered. I think it will be useful, and I do like books.<br>
<font color="#888888"><br>
-Tim<br>
</font><div><div></div><div class="h5"><br>
Brian West wrote:<br>
> 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.<br>
><br>
> /b<br>
><br>
> On Oct 7, 2010, at 9:15 PM, Tim St. Pierre wrote:<br>
><br>
>> I had to completely restart freeswitch to make these calls go away. Is there a less disruptive way<br>
>> to terminate the scripts?<br>
><br>
><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>
<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>
</div></div></blockquote></div><br>