[Freeswitch-users] Problem with originate in javascript.
mszlazak at aol.com
mszlazak at aol.com
Wed Apr 8 16:15:35 PDT 2009
I want to run a script with a scheduler but I'm having a problem with how to set up the originate in Javascript.
The originate would go something like:
originate {id_name='${caller_id_name}',id_number=${caller_id_number}}sofia/gateway/spa3102PSTN/12223334444 at 10.0.0.5:5061 GINO_ANS
I can get this to work:
session = new Session("{id_name='${caller_id_name}',id_number=${caller_id_number}}sofia/gateway/spa3102PSTN/14082031170 at 10.0.0.5:5061");
But I want to "drop" that into an extension that runs another script and can't get either of these to work:
session = new Session("{id_name='${caller_id_name}',id_number=${caller_id_number}}sofia/gateway/spa3102PSTN/14082031170 at 10.0.0.5:5061 GINO_ANS");
session = new
Session("{id_name='${caller_id_name}',id_number=${caller_id_number}}sofia/gateway/spa3102PSTN/14082031170 at 10.0.0.5:5061
GINO_ANS XML default");
Also, will I have problems running the second script from the first script?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090408/b5ff2c31/attachment.html
More information about the Freeswitch-users
mailing list