[Freeswitch-users] esl, send_dtmf, too early ESL_EVENT_CHANNEL_EXECUTE_COMPLETE

Peter Olsson peter at olssononline.se
Thu Feb 13 15:33:05 MSK 2014


I believe the DTMF is queued into the session, so you'll probably get the
EXECUTE_COMPLETE as soon as it's queued. Maybe it would be possible to
handle this differently, but I'm guessing it might be a little complicated.
It would probably be easier to send another event after the DTMF has
actually been sent. Try to post a Jira for a feature request and see what
happens.


2014-02-13 13:02 GMT+01:00 Marcin S <ms4esl at gmail.com>:

> 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 at 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 at 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 at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at 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 at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140213/f6572a74/attachment-0001.html 


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