[Freeswitch-users] Putting javascript to sleep

Jon Bruel jbr at consiglia.dk
Fri Nov 14 14:42:26 PST 2008

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.  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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081114/bb2039da/attachment-0002.html 

More information about the FreeSWITCH-users mailing list