you can't. If you want to terminate it, then you should set a global var that the script periodically checks and if set the script should terminate itself.<br><br><div class="gmail_quote">On Thu, Feb 4, 2010 at 5:33 AM, Chia-Yen Wu <span dir="ltr"><<a href="mailto:xanlich@gmail.com">xanlich@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I tried to run a javascript by background API (bgapi jsrun test.js)<div><br></div><div>this javascript (test.js) wont automatically stop, I tried to kill it by "uuid_kill" command with Job-UUID</div>
<div><br></div>
<div>but return "-ERR no such channel!", how can I kill this bgapi? btw my FS run in windows. </div><div><br></div><div>thank you</div><div><br></div><div><br></div>
<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></blockquote></div><br><br clear="all"><br>-- <br>-Rupa<br>