[Freeswitch-users] freeswitch.EventConsumer, can be utilized event-based
Michael Jerris
mike at jerris.com
Tue Mar 31 08:59:08 PDT 2009
http://wiki.freeswitch.org/wiki/Lua#freeswitch.consoleLog
On Mar 31, 2009, at 11:50 AM, Matthew Fong wrote:
> I know before I asked about blocking for an event, and maybe I
> should have created a new topic..
>
> but now I want to actually sleep (rather than block) for a set time
> frame...this app will not be consuming events.
>
> can I get an example of how to use msleep in a lua script? This lua
> script will be running in the background, and not part of a session
> or event consumer. Thanks.
>
> --matt
>
> 2009/3/31 Michael Jerris <mike at jerris.com>
> as replied earlier, if your doing nothing but consuming events, you
> can just block instead of sleep:
>
> con:pop(1)
>
> there is also a msleep function that you can call the same way you
> do console_log, it takes milli seconds as its arg. Note this should
> NOT be used when you have a script running as a session, only when
> you are running an api script.
>
> Mike
>
> On Mar 31, 2009, at 11:15 AM, Matthew Fong wrote:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090331/05d2754b/attachment-0002.html
More information about the FreeSWITCH-users
mailing list