[Freeswitch-users] Javascript and freeswitch
Nduwayezu, Joselyne
35633 at heb.be
Fri May 13 17:47:39 MSD 2016
Hello,
How do you write script in javascript when you want to invoke it in the
dialplan?
I tried this:
#!/usr/bin/js
session = new Session ("sofia/external/xxxx at yyyy.fr");
session.waitForanswer(10000);
if(session.ready()) {
session.sleep(1000);
session.streamFile("path to the file");
But when i execute it, i get the error:
ReferenceError: Session is not defined
How can i fix it?
NDUWAYEZU Joselyne
--
Haute École de Bruxelles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160513/59d25e8b/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list