Because I wan't to be sure, that I have sent all dtmfs before releasing call.
I think that ESL_EVENT_CHANNEL_EXECUTE can return before sending dtmfs, but ESL_EVENT_CHANNEL_EXECUTE_COMPLETE should return *after* sending dtmfs (*complete*).

ESL_EVENT_CHANNEL_EXECUTE



2014-02-13 9:58 GMT+01:00 Peter Olsson <peter@olssononline.se>:
Why do you need to know exactly when the DTMF was sent? Can you describe your use case?


2014-02-13 9:12 GMT+01:00 Marcin S <ms4esl@gmail.com>:
Hello,

In my simple C application I want to send dtmfs. This is quite easy - you just call esl_execute("send_dtmf", "1234", uuid); and it works. However, ESL returns ESL_EVENT_CHANNEL_EXECUTE_COMPLETE way to fast - even before it starts dtmfs generation!

How can I know, when dtmfs were really generated? So far, the only method is to issue some sleep(), but it looks like big workaround.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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