From c065721090267546750a7e1407424c11f5a8c4be Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 7 Mar 2006 19:20:11 +0000 Subject: [PATCH] add notes for js and get ready to finish docs on it. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@791 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- docs/JavaScript.txt | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/docs/JavaScript.txt b/docs/JavaScript.txt index a46eeb1327..980f0d4511 100644 --- a/docs/JavaScript.txt +++ b/docs/JavaScript.txt @@ -45,3 +45,56 @@ while(session.ready()) { session.hangup(); // or break; } } + +To Document(these are in mod_spidermonkey already and just need +documentation and examples): + +Methods: +session.recordFile +session.speak +session.getDigits +session.answer +session.ready +session.waitForAnswer +session.hangup +session.execute + +Properties: +session.name +session.state +session.dialplan +session.caller_id_name +session.caller_id_num +session.network_addr +session.ani +session.ani2 +session.destination + +Methods: +DB.exec +DB.next +DB.fetch +DB.prepare + +Properties +DB.path + +Methods: +teletone.generate +teletone.onDTMF +teletone.addTone + +Properties: +teletone.name + +Other functions: +console_log +include +email +bridge +apiExecute + +If you have CURL installed: +fetchURLHash +fetchURLFile +