@gibme/asterisk-gateway-interface

Asterisk Gateway Interface Server

Documentation

https://gibme-npm.github.io/asterisk-gateway-interface/

Sample Code

import AGI, { Channel } from '@gibme/asterisk-gateway-interface';

(async () => {
const agi = new AGI({
port: 3000
});

agi.on('channel', async (channel: Channel) => {
await channel.answer();
await channel.sayNumber(12345);
await channel.hangup();
});

await agi.start();
})()