I&#39;ve been playing around with using freeswitch.EventConsumer in a lua process that starts-up when FS boots, and stays in the background. I&#39;ve setup the example on the wiki, but the example uses session:execute(&quot;sleep&quot;,1000), and essentially loops every second until an event is fired. I&#39;m wondering if there is a more event-driven way to accomplish this?<div>
<br></div><div>I tried asking for help in #lua, but they said the project (FS) needed to implement event-driven programming for this to work. To me, it seems sort of silly to implement freeswitch.EventConsumer without a way for it to be executed event-wise</div>
<div><br></div><div>Is using lua ESL the only option? There isn&#39;t any lua example scripts in libs/esl/lua to demonstrate how to handle events.</div><div><br></div><div>if mod_lua can&#39;t handle events, can the mod_javascript utilize it? Thanks.</div>
<div><br></div><div>--matt</div>