[Freeswitch-users] ESL: Which event is generated when an api command completed?

Grant Bagdasarian GB at cm.nl
Wed Nov 5 12:43:03 MSK 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141105/a38b9dd3/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list