[Freeswitch-svn] [commit] r5688 - freeswitch/trunk/scripts/contrib/trixter
Freeswitch SVN
trixter at freeswitch.org
Fri Sep 7 05:38:00 EDT 2007
Author: trixter
Date: Fri Sep 7 05:38:00 2007
New Revision: 5688
Modified:
freeswitch/trunk/scripts/contrib/trixter/disa.js
Log:
update
Modified: freeswitch/trunk/scripts/contrib/trixter/disa.js
==============================================================================
--- freeswitch/trunk/scripts/contrib/trixter/disa.js (original)
+++ freeswitch/trunk/scripts/contrib/trixter/disa.js Fri Sep 7 05:38:00 2007
@@ -34,6 +34,7 @@
var numwait = 5000; // ms for them to enter the destination number
var dialprefix = "sofia/default/"; // prefix for outbound calls
+var dialpostfix = "@somehost.tld"; // postfix for outbound calls, set to "" if not needed
var timeout = 60; // outbound calling timeout in seconds
@@ -189,14 +190,17 @@
destnum = removeChr(destnum,numterm);
if(destnum.length>0) {
+ var Bleg = new Session();
+
if(typeof CLID_name != "undefined") {
- session.setVariable("effective_caller_id_name",CLID_name);
+ Bleg.setCallerData("caller_id_name",CLID_name);
}
if(typeof CLID_num != "undefined") {
- session.setVariable("effective_caller_id_num",CLID_num);
+ Bleg.setCallerData("caller_id_number",CLID_num);
}
- session.originate("",dialprefix+destnum,timeout);
+ Bleg.originate(session,dialprefix+destnum+dialpostfix,timeout);
+ bridge(session,Bleg);
}
exit();
More information about the Freeswitch-svn
mailing list