0.1.7 • Published 5 years ago

ding-dong v0.1.7

Weekly downloads
243
License
-
Repository
github
Last release
5 years ago

ding-dong

Build Status

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

var 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);

Add to Asterisk extensions.conf

[default]
exten = > 1000,1,AGI(agi://localhost:3000)

And call to 1000 and view asterisk output. Profit!

API

see API.md

Links

Asterisk AGI

0.1.7

5 years ago

0.1.6

6 years ago

0.1.5

7 years ago

0.1.4

8 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

10 years ago

0.0.1

10 years ago