I believe this is a limitation in JavaScript. There is no &quot;sleep&quot; command or function, just some setTimeout kind of thing where you launch a function after a predetermined interval. I think with js you&#39;re stuck with an inelegant solution... :(<br>
<br>-MC<br><br><div class="gmail_quote">On Fri, Nov 14, 2008 at 2:42 PM, Jon Bruel <span dir="ltr">&lt;<a href="mailto:jbr@consiglia.dk">jbr@consiglia.dk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">I have worked on making a set of scripts and dialplans for a
traditional queue, which rings the agents. I have published suggestions and
ideas on the WIKI, but I'm still not satisfied with the solution. One of
the challenges has been to emulate a sleep command as known in php and many
other languages. &nbsp;I have solved it by creating a session for the sake of
this, and run session.execute("sleep", 5000), but this solution pivots
on the creation of the session, and it not very clean in my opinion. So my
question is: are there any elegant ways of putting javascript to sleep in FS?
/Jon</span></font></p>

</div>

</div>


<br>_______________________________________________<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>
<br></blockquote></div><br>