BUG???? i tried this but i get this.
2010-12-14 08:27:55.142532 [ERR] helloworld.js:3 ReferenceError: setTimeout is not defined
---------- Forwarded message ----------
From:
Shamun toha md <shamun.toha@gmail.com>
Date: Tue, Dec 14, 2010 at 8:53 AM
Subject: Timer for mod_spidermonkey impossible ?
To: FreeSWITCH Users Help <
freeswitch-users@lists.freeswitch.org>
Hello,
I have a test script like this. But is it possible to make a setTimeout(function(){ console_log("Hello world") }, 1000); ?? Like a timer which keep running with interval of 1 second ? Where i can do some Ajax ???
helloworld.js
=========
var argv;
function on_hangup(hup_session, how)
{
console_log(
"err", how + " HOOK" + "\n" +
"hello world" + session.getVariable("test") + "\n"
);
exit();
);
session.setHangupHook(on_hangup);
Thanks & Regards