I tried to run a javascript by background API (bgapi jsrun test.js) this javascript (test.js) wont automatically stop, I tried to kill it by "uuid_kill" command with Job-UUID but return "-ERR no such channel!", how can I kill this bgapi? btw my FS run in windows. thank you
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. On Thu, Feb 4, 2010 at 5:33 AM, Chia-Yen Wu <xanlich@gmail.com> wrote:
I tried to run a javascript by background API (bgapi jsrun test.js)
this javascript (test.js) wont automatically stop, I tried to kill it by "uuid_kill" command with Job-UUID
but return "-ERR no such channel!", how can I kill this bgapi? btw my FS run in windows.
thank you
_______________________________________________ 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
-- -Rupa
Or wait for a certain event. http://fisheye.freeswitch.org/browse/~raw,r=14500/FreeSWITCH/contrib/seven/l... 2010/2/4 Rupa Schomaker <rupa@rupa.com>:
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.
On Thu, Feb 4, 2010 at 5:33 AM, Chia-Yen Wu <xanlich@gmail.com> wrote:
I tried to run a javascript by background API (bgapi jsrun test.js) this javascript (test.js) wont automatically stop, I tried to kill it by "uuid_kill" command with Job-UUID but return "-ERR no such channel!", how can I kill this bgapi? btw my FS run in windows. thank you
_______________________________________________ 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
-- -Rupa
_______________________________________________ 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
participants (3)
-
Chia-Yen Wu
-
Rupa Schomaker
-
Seven Du