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 +