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.
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-UUIDbut 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