[Freeswitch-users] Timer for mod_spidermonkey impossible ?

Shamun toha md shamun.toha at gmail.com
Tue Dec 14 10:53:40 MSK 2010


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


More information about the FreeSWITCH-users mailing list