/** * * Say something with help of InboundXML and TelAPI * * -------------------------------------------------------------------------------- * * @category TelApi Helper * @package TelApi * @author Nevio Vesic <*****@*****.**> * @license http://creativecommons.org/licenses/MIT/ MIT * @copyright (2012) TelTech Systems, Inc. <*****@*****.**> */ var util = require("util"); // For loging purposes :) // Get TelAPI InboundXML helper var InboundXML = require('telapi').inboundxml; // Initialize TelAPI response element. This is A MUST! var response = new InboundXML.Response(); // Append Say element into response response.append( new InboundXML.Say( 'Example usage of TelAPI Node.JS InboundXML helper', { voice : 'man' } ) ); util.log("\n\nInboundXML Say Element: \n\n" + response.toString())
* -------------------------------------------------------------------------------- * * @category TelApi Helper * @package TelApi * @author Nevio Vesic <*****@*****.**> * @license http://creativecommons.org/licenses/MIT/ MIT * @copyright (2012) TelTech Systems, Inc. <*****@*****.**> */ var util = require("util"); // For loging purposes :) // Get TelAPI InboundXML helper var InboundXML = require('telapi').inboundxml; // Initialize TelAPI response element. This is A MUST! var response = new InboundXML.Response(); // Append Dial element into response response.append( new InboundXML.Gather( new InboundXML.Say("Please enter your 4 digit pin", { voice : 'woman' }), { action : 'http://liveoutput.com/gatherexample', method : "POST", numDigits : 4, finishOnKey : '#' } )