@gibme/asterisk-gateway-interface
v4.0.1
Published
Asterisk Gateway Interface Server
Downloads
9
Readme
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();
})()