Hi,<br>Eventlock is used to say &quot;Whether to queue the commands or not&quot;.<br><br>Assume I&#39;m giving playback and bridge command via outbound socket to freeswitch.<br><br>If eventlock is &quot;true&quot; then, first &quot;playback will be executed&quot; and then only the bridge will be executed.<br>
<br>If eventlock is &quot;false&quot;, then order of execution is not guaranteed. <br><br>I&#39;m also using Outbound event socket. I&#39;ll run it in async mode. After each execute() statement, if I need the output for that event, I will wait for the event and then only I&#39;ll proceed. If I don&#39;t need event, ( playback ), I just do the other operations.<br>
<br>This works well for me.<br><br><div class="gmail_quote">On Wed, Mar 23, 2011 at 1:21 PM, Dmitry Sytchev <span dir="ltr">&lt;<a href="mailto:kbdfck@gmail.com">kbdfck@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi All<br clear="all"></div><div><br></div><div>I&#39;m trying to understand setEventLock and setAsyncExecute parameters on outbound ESL socket. My aim is to have ability to choose execution method of freeswitch dialplan command via execute(). I&#39;m using async full, but I want to use sync mode for some applications for which I don&#39;t want to receive events, for example. Is there a way to run application in sync mode and just get return value, and discard its events? </div>

<div><br></div><div>I want this because If later I will run some app in async mode, I&#39;ll get previous events like &#39;CHANNEL_EXECUTE_COMPLETE&#39; and so on. Another approach is to have ability to mark calls to execute or API with some tag to distinguish between events from previous execute() or api() calls, like with BGAPI job id. What can be done to achieve this?</div>

<div><br></div><div>Or maybe I should just process all events by myself if I use async?</div><div><br></div><div>And finally, could anybody explain the Event-Lock / AsyncExecute difference? Seems I can&#39;t really understand the wiki notes about that.</div>

<br><font color="#888888">-- <br>Best regards,<br><br>Dmitry Sytchev,<br>IT Engineer<br>
</font><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>