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@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@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@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