ding-dong
Create AGI server with ding-dong. Use with Asterisk for fast telephony apps.
Fork of node-agi
stable version 0.1.1
unstable version 0.1.5
Use ding-dong
voicer - AGI voice recognizer for Asterisk (use Yandex and Google speech recognizers)agi-number-archer - AGI server for find region code of phone number (Russia)
lcr-finder - least cost router for Asterisk
Install
npm install ding-dong [--save]
Usage
Write app.js and run it
`````javascriptvar AGIServer = require('ding-dong');
var handler = function (context) {
context.onEvent('variables')
.then(function (vars) {
return context.streamFile('beep');
})
.then(function (result) {
return context.setVariable('RECOGNITION_RESULT', 'I\'m your father, Luc');
})
.then(function (result) {
return context.end();
});
};var agi = new AGIServer(handler); agi.start(3000);
`````