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 <[email protected]>
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:

_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to