An asterisk ami connector
An extremely lightweight Asterisk AMI connector
npm install asterisk-ami
var AsteriskAmi = require'./lib/AsteriskAmi';var ami = host: 'hostname' username: 'username' password: 'secret' ;amion'ami_data'console.log'AMI DATA' data;//decide between Events and non events here and what to do with them, maybe run an event emitter for the ones you care about;amiconnectamisendaction: 'Ping';//run a callback event when we have connected to the socket;//connect creates a socket connection and sends the login actionamisendaction: 'Ping';
AsteriskAmi has preset/configurable options, you can set these via an object passed in to AsteriskAmi
The npm module for this library is maintained by:
asterisk-ami is licensed under the MIT license.