Hi Brian,<div><br></div><div>Thanks for the link...I saw that, but i&#39;m a newbie to lua (only use it cause of FS), and I&#39;m a little confused how the example works.</div><div><br></div><div>It consumes all events? Then subscribes to a session? and then, every second checks to see if an event has been fired for that session?</div>
<div><br></div><div>Would it be possible to get an idea of how to subscribe to all events, and have a function execute for each time an event is fired? Can lua &quot;wait&quot; until an event is fired, or must it loop and sleep every second? Thanks for the help.</div>
<div><br></div><div>--matt</div><div><br></div><div>---</div><div>the example...</div><div><div>con = freeswitch.EventConsumer(&quot;all&quot;);                                                                                                                          </div>
<div>session = freeswitch.Session(&quot;sofia/default/<a href="mailto:dest@host.com">dest@host.com</a>&quot;);</div><div>while session:ready() do                                                                                                                        </div>
<div>   session:execute(&quot;sleep&quot;, &quot;1000&quot;);                                                                                                            </div><div>   for e in (function() return con:pop() end) do                                                                                                </div>
<div>      print(&quot;event\n&quot; .. e:serialize(&quot;xml&quot;));                                                                                                  </div><div>   end                                                                                                                                          </div>
<div>end</div><br><div class="gmail_quote">2009/3/26 Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<a href="http://wiki.freeswitch.org/wiki/Mod_lua#freeswitch.EventConsumer" target="_blank">http://wiki.freeswitch.org/wiki/Mod_lua#freeswitch.EventConsumer</a><br>
<div class="im"><br>
On Mar 26, 2009, at 10:30 AM, Matt Hunter wrote:<br>
<br>
&gt; Ahhh....can you point me to a doc or wiki, I can experiment with?<br>
&gt;<br>
<br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>