[Freeswitch-users] ESL Synchronous Playback
Yisroel M. Olewski
yisroel at machshevet.com
Sun Jul 6 18:34:26 MSD 2014
Hi
Thanks
Im trying your way now, and it seems to be working ok
(im waiting for CHANNEL_EXECUTE_COMPLETE)
All the best
Sincerely,
Yisroel M. Olewski
CEO
<http://Machshevet.com> Machshevet.com
+972 (52) 764-9971
Websites · CRM · ERP · Telephony · Inventory · Content Management
From: Peter Olsson [mailto:peter at olssononline.se]
Sent: Friday, July 04, 2014 11:43 AM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] ESL Synchronous Playback
I think you're doing the wrong approach here. It's better to send the command, and then handle the event when the playback is finished. The actual execute command is synchronous, however, since all it does is to add the playback on a queue, it will return imediately.
If you need other behaviour, just wait for the event, and then continue in your code - but you will need to implement this for your needs.
2014-07-04 10:24 GMT+02:00 Yisroel M. Olewski <yisroel at machshevet.com>:
Hi everyone
I’m using eslconnection.execute to playback a music file, but the code just sends the command and continues running
This is not good for me, since I need to block code execution until the file finishes
Eslconnection.api is supposed to be sync but doesn’t have a uuid parameter
Actually execute itself is also supposed to be sync
How can this be done?
I’ve seen a few questions about it, but no answers
Thanks and All the best!
Sincerely,
Yisroel M. Olewski
CEO
Machshevet.com
+972 (52) 764-9971 <tel:%2B972%20%2852%29%20764-9971>
Websites · CRM · ERP · Telephony · Inventory · Content Management
_________________________________________________________________________
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/20140706/b9bb46c2/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 21149 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140706/b9bb46c2/attachment-0002.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 21154 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140706/b9bb46c2/attachment-0003.png
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list