I think you may try to save uuid somewhere in database (for exapmle with LUA) while call is in progress, and when you need to do something, call sched_del and sched_hangup using API call or EventSocket. 
This is that i'll try.
 
In my view, and with my experiance it is not a good idea to be connected to FS all time. 
Why? For whole call life control is good approach, because external application know all information about call state and events.  Or all events external application, that receives and fires events to FS  - this is my way.

Better to use one time connection to execute some commands.
Hmm, this takes extra overhead for creation\closing connections. By the way, for outbound socket connection FS use persistent connection or per event connection ? 

On Thu, Jun 11, 2015 at 12:05 PM, Kamil Nigmatullin <kamil.nigmatullin@gmail.com> wrote:

2015-06-11 14:41 GMT+06:00 Vlad Fabi <vaad.fabi@gmail.com>:
solution except delete and add new task that in

I think you may try to save uuid somewhere in database (for exapmle with LUA) while call is in progress, and when you need to do something, call sched_del and sched_hangup using API call or EventSocket. In my view, and with my experiance it is not a good idea to be connected to FS all time. Better to use one time connection to execute some commands.


--
Kamil Nigmatullin
Tel: 77272323748
mob: 7 (707) 2517003
Skype: kamil.nigmatullin

_________________________________________________________________________
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