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

1.0.12 • 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 (3)

Dev Dependencies (15)

Package Sidebar

Install

npm i @gibme/asterisk-manager-interface

Weekly Downloads

3

Version

1.0.12

License

MIT

Unpacked Size

45.9 kB

Total Files

12

Last publish

Collaborators

  • brandonlehmann