<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><a href="http://wiki.freeswitch.org/wiki/Lua#freeswitch.consoleLog">http://wiki.freeswitch.org/wiki/Lua#freeswitch.consoleLog</a><div><br><div><div>On Mar 31, 2009, at 11:50 AM, Matthew Fong wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I know before I asked about blocking for an event, and maybe I should have created a new topic..<div><br></div><div>but <span class="Apple-style-span" style="font-weight: bold;"><span class="Apple-style-span" style="font-style: italic;">now </span></span>I want to actually sleep (rather than block) for a set time frame...this app will not be consuming events.</div> <div><br></div><div>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.</div><div><br></div><div>--matt<br><br> <div class="gmail_quote">2009/3/31 Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com">mike@jerris.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> <div style="word-wrap:break-word">as replied earlier, if your doing nothing but consuming events, you can just block instead of sleep:<div><br></div><div>con:pop(1)</div><div><br></div><div>there is also a msleep function that you can call the same way you do console_log, it takes milli seconds as its arg. &nbsp;Note this should NOT be used when you have a script running as a session, only when you are running an api script.</div> <div><br></div><div>Mike</div><div><div></div><div class="h5"><div><br><div><div>On Mar 31, 2009, at 11:15 AM, Matthew Fong wrote:</div></div></div></div></div></div></blockquote></div></div></blockquote></div><br></div></body></html>