For bgapi it's https://wiki.freeswitch.org/wiki/Event_list#BACKGROUND_JOB

On 5 November 2014 09:43, Grant Bagdasarian <GB@cm.nl> wrote:

Hello,

 

When using Outbound ESL in async full mode and executing a API command like uuid_transfer or uuid_bridge using bgapi, which channel event is generated to notify the command execution completed?

For dialplan applications it is the CHANNEL_EXECUTE_COMPLETED event. That I know.

 

All I got is this:

 

Command Executed: uuid_transfer 563c9750-64cc-11e4-8cd8-4fc1451152d2 -both park_extension XML park_ext

Bgapi returned an ESLevent:

{

        "Event-Name":   "SOCKET_DATA",

        "Content-Type": "command/reply",

        "Reply-Text":   "+OK Job-UUID: ede6c869-0bfa-4e07-8490-04973b6ba971",

        "Job-UUID":     "ede6c869-0bfa-4e07-8490-04973b6ba971"

}

 

However, a channel event named SOCKET_DATA did not show up when listening for channel events using the RecvEvent method.

 

What I’m trying to do is use bgapi or sendMSG to execute an application/command, and use the RecvEvent method to wait for a channel event that indicates the application/command completed execution.

So if I were to use the playback application, I’d send it using the SendMSG method, and use RecvEvent to wait for the CHANNEL_EXECUTE_COMPLETED event containing the UUID set for this playback.

This works fine for dialplan applications but I don’t know which event to listen for when using api commands.

 

I hope someone could point me into the right direction.

 

Regards,


Grant


_________________________________________________________________________
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