Skip to content

v3.0.0

Choose a tag to compare

@brandonlehmann brandonlehmann released this 05 Jan 13:57
· 17 commits to master since this release
92df19d

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();
})()