How can I cancel a bgapi job?
Hi, How can I cancel a bgapi job? Let's suppose I do bgapi command to originate a call and then am immediately told it needs tobe cancelled...but it has not started yet. Even if I supply my own uuid on the originateand a job-uud on the bgapi command, I don't see any way I can cancel the "unstarted" call. Note that I can construct a test case for this situation by doing a fs_cli command bgapi originate {originate_delay_start=30000,origination_uuid=my_uuid}sofia/gateway/...This command will start a request that cannot be cancelled until the call actually starts (thirtyseconds later). Any ideas? Thanks,David
In the case of originate you could do 'api uuid_kill my_uuid' to immediately hangup the call' On 5 December 2016 at 22:23, D D <tru083@yahoo.com> wrote:
Hi,
How can I cancel a bgapi job?
Let's suppose I do bgapi command to originate a call and then am immediately told it needs to be cancelled...but it has not started yet. Even if I supply my own uuid on the originate and a job-uud on the bgapi command, I don't see any way I can cancel the "unstarted" call.
Note that I can construct a test case for this situation by doing a fs_cli command bgapi originate {originate_delay_start=30000,o rigination_uuid=my_uuid}sofia/gateway/... This command will start a request that cannot be cancelled until the call actually starts (thirty seconds later).
Any ideas?
Thanks, David
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
I tried that, but since the call did not start yet, the <my_uuid> does not yet exist. I need to be able to cancel it while it is queued to start, but not yet started. What else do you recommend? Show original message On Tuesday, December 6, 2016 8:14 AM, Steven Ayre <steveayre@gmail.com> wrote: In the case of originate you could do 'api uuid_kill my_uuid' to immediately hangup the call' On 5 December 2016 at 22:23, D D <tru083@yahoo.com> wrote: Hi, How can I cancel a bgapi job? Let's suppose I do bgapi command to originate a call and then am immediately told it needs tobe cancelled...but it has not started yet. Even if I supply my own uuid on the originateand a job-uud on the bgapi command, I don't see any way I can cancel the "unstarted" call. Note that I can construct a test case for this situation by doing a fs_cli command bgapi originate {originate_delay_start=30000,o rigination_uuid=my_uuid}sofia/ gateway/...This command will start a request that cannot be cancelled until the call actually starts (thirtyseconds later). Any ideas? Thanks,David ______________________________ ______________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions .com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.o rg http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswi tch.org http://lists.freeswitch.org/ma ilman/listinfo/freeswitch-user s UNSUBSCRIBE:http://lists.frees witch.org/mailman/options/ freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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
There is no way implemented to do that. The async tasks are designed with the expectation it will never be cancelled and that most tasks should be executed immediately. On Tue, Dec 6, 2016 at 8:13 AM, Steven Ayre <steveayre@gmail.com> wrote:
In the case of originate you could do 'api uuid_kill my_uuid' to immediately hangup the call'
On 5 December 2016 at 22:23, D D <tru083@yahoo.com> wrote:
Hi,
How can I cancel a bgapi job?
Let's suppose I do bgapi command to originate a call and then am immediately told it needs to be cancelled...but it has not started yet. Even if I supply my own uuid on the originate and a job-uud on the bgapi command, I don't see any way I can cancel the "unstarted" call.
Note that I can construct a test case for this situation by doing a fs_cli command bgapi originate {originate_delay_start=30000,o rigination_uuid=my_uuid}sofia/gateway/... This command will start a request that cannot be cancelled until the call actually starts (thirty seconds later).
Any ideas?
Thanks, David
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬ ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+ <http://freeswitch.org/g+>* ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900 https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA
if you have access to channel/global vars in the job, one workable albeit clunky solution is to periodically check for the existance/value of a particular var inside the job itself, and then end the job when that change occurs. On Tue, Dec 6, 2016 at 5:39 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
There is no way implemented to do that. The async tasks are designed with the expectation it will never be cancelled and that most tasks should be executed immediately.
On Tue, Dec 6, 2016 at 8:13 AM, Steven Ayre <steveayre@gmail.com> wrote:
In the case of originate you could do 'api uuid_kill my_uuid' to immediately hangup the call'
On 5 December 2016 at 22:23, D D <tru083@yahoo.com> wrote:
Hi,
How can I cancel a bgapi job?
Let's suppose I do bgapi command to originate a call and then am immediately told it needs to be cancelled...but it has not started yet. Even if I supply my own uuid on the originate and a job-uud on the bgapi command, I don't see any way I can cancel the "unstarted" call.
Note that I can construct a test case for this situation by doing a fs_cli command bgapi originate {originate_delay_start=30000,o rigination_uuid=my_uuid}sofia/gateway/... This command will start a request that cannot be cancelled until the call actually starts (thirty seconds later).
Any ideas?
Thanks, David
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬
☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+ <http://freeswitch.org/g+>*
ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900
https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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 (4)
-
Anthony Minessale
-
Chad Phillips
-
D D
-
Steven Ayre