[Freeswitch-users] Event-lock, sync/async on outbound ESL and execute() tagging question

Michael Collins msc at freeswitch.org
Wed Mar 23 19:51:19 MSK 2011


On Wed, Mar 23, 2011 at 6:48 AM, lakshmanan ganapathy
<lakindia89 at gmail.com>wrote:

> Hi,
> Eventlock is used to say "Whether to queue the commands or not".
>
> Assume I'm giving playback and bridge command via outbound socket to
> freeswitch.
>
> If eventlock is "true" then, first "playback will be executed" and then
> only the bridge will be executed.
>
> If eventlock is "false", then order of execution is not guaranteed.
>
> I'm also using Outbound event socket. I'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'll proceed. If I don't need event, ( playback ), I
> just do the other operations.
>
> This works well for me.
>
> Be sure that you are using the terms "inbound" and "outbound" event socket
correctly. It's inbound or outbound from the perspective of FreeSWITCH, not
from the perspective of your script. An easy rule of thumb is this: if you
use the 'socket' application in your dialplan then you are using "outbound
event socket" because FS has to make an outbound connection to your script.

http://wiki.freeswitch.org/wiki/Event_socket

-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110323/57852b61/attachment.html 


More information about the FreeSWITCH-users mailing list