@gibme/asterisk-manager-interface
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Documentation

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

Sample Code

import AMI from '@gibme/asterisk-manager-interface';

(async () => {
    const ami = new AMI({
        user: 'amiuser',
        password: 'amipassword',
        host: 'asterisk-ip'
    });
    
    if (!await ami.login()) {
        throw new Error('Could not login');
    }
    
    console.log(await ami.moduleCheck('chan_sip'));
    
    // fetch sip peers
    console.log(await ami.send({
        Action: 'SIPpeers'
    }));
})()

Dependencies (2)

Dev Dependencies (15)

Package Sidebar

Install

npm i @gibme/asterisk-manager-interface

Weekly Downloads

18

Version

2.0.0

License

MIT

Unpacked Size

51.8 kB

Total Files

9

Last publish

Collaborators

  • brandonlehmann