[Freeswitch-users] Fwd: Timer for mod_spidermonkey impossible ?
Meftah Tayeb
tayeb.meftah at gmail.com
Tue Dec 14 12:38:41 MSK 2010
DON'T Double Post
Le 14/12/2010 09:30, Shamun toha md a écrit :
> BUG???? i tried this but i get this.
>
> 2010-12-14 08:27:55.142532 [ERR] helloworld.js:3 ReferenceError:
> setTimeout is not defined
>
>
> function timers()
> {
> setTimeout(function() {
> console_log("err", '------------------ Hello world ---------
> Time Time Timer...:) ');
> }, 1000);
> }
> timers();
>
>
> ---------- Forwarded message ----------
> From: *Shamun toha md* <shamun.toha at gmail.com
> <mailto:shamun.toha at gmail.com>>
> Date: Tue, Dec 14, 2010 at 8:53 AM
> Subject: Timer for mod_spidermonkey impossible ?
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org
> <mailto:freeswitch-users at 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
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
--
Meftah Tayeb
inum: +883510001288000
Phone: +13602276297
Fax: +12538020313
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101214/31ecddac/attachment-0001.html
More information about the FreeSWITCH-users
mailing list