🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

nami

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nami - npm Package Compare versions

Comparing version
0.6.7
to
0.6.8
+1
-1
package.json

@@ -5,3 +5,3 @@ {

"description": "An asterisk manager interface client, uses EventEmitter to communicate events, will allow you to send actions, and receive responses (and associated events), and also receive async events from server",
"version": "0.6.7",
"version": "0.6.8",
"homepage": "https://github.com/marcelog/Nami",

@@ -8,0 +8,0 @@ "keywords": [

@@ -0,1 +1,4 @@

[![Click here to lend your support to: Nami and make a donation at pledgie.com !](https://pledgie.com/campaigns/30946.png?skin_name=chrome)](https://pledgie.com/campaigns/30946)
Introduction

@@ -22,3 +25,3 @@ ------------

EventEmitter, so your application is able to subscribe to the interesting nami
events.
events.

@@ -32,11 +35,11 @@ Requirements

-------------------
* `namiConnected`: Emitted when nami could successfully connect and logged in to
an AMI server.
* `namiConnection`: Emitted for all connection related events. Listen to this
* `namiConnection`: Emitted for all connection related events. Listen to this
generic event for the status of the socket connection.
* `namiConnection(EventName)`: Emitted for the status of the connection. States
* `namiConnection(EventName)`: Emitted for the status of the connection. States
include: `Connect`, `End`, `Error`, `Timeout`, and `Close`. The `Error` event
will emit right before the `Close` event and includes the error that was thrown.
The `Close` event includes a boolean value (`had_error`) if an error was thrown.
will emit right before the `Close` event and includes the error that was thrown.
The `Close` event includes a boolean value (`had_error`) if an error was thrown.
* namiEvent: Emitted for all events. Listen to this generic event if you want

@@ -60,3 +63,3 @@ to catch any events.

from server.
* `namiRawEvent`: Emitted when the decodification routine
* `namiRawEvent`: Emitted when the decodification routine
classified the received message as an async event from server.

@@ -210,2 +213,4 @@ * `namiRawResponse`: Emitted when the decodification routine classified the

- BlindTransfer
- Filter
- Events

@@ -212,0 +217,0 @@ Thanks to

@@ -786,6 +786,6 @@ /*!

*/
function QueueUnpause(interface, queue, reason) {
function QueueUnpause(asteriskInterface, queue, reason) {
QueueUnpause.super_.call(this, 'QueuePause');
this.set('paused', 'false');
this.set('interface', interface);
this.set('interface', asteriskInterface);

@@ -811,6 +811,6 @@ if (undefined !== queue) {

*/
function QueuePause(interface, queue, reason) {
function QueuePause(asteriskInterface, queue, reason) {
QueuePause.super_.call(this, 'QueuePause');
this.set('paused', 'true');
this.set('interface', interface);
this.set('interface', asteriskInterface);

@@ -834,4 +834,7 @@ if (undefined !== queue) {

*/
function QueueSummary() {
QueueSummary.super_.call(this, 'QueueSummary');
function QueueSummary(queue) {
QueueSummary.super_.call(this, 'QueueSummary');
if (undefined != queue) {
this.set('Queue', queue);
}
}

@@ -860,4 +863,10 @@

*/
function QueueStatus() {
function QueueStatus(queue, member) {
QueueStatus.super_.call(this, 'QueueStatus');
if (undefined != queue) {
this.set('Queue', queue);
}
if (undefined != member) {
this.set('Member', member);
}
}

@@ -886,4 +895,6 @@

*/
function QueueRemove() {
function QueueRemove(asteriskInterface, queue) {
QueueRemove.super_.call(this, 'QueueRemove');
this.set('interface', asteriskInterface);
this.set('queue', queue);
}

@@ -925,4 +936,15 @@

*/
function QueueAdd() {
function QueueAdd(asteriskInterface, queue, paused, memberName, penalty) {
QueueAdd.super_.call(this, 'QueueAdd');
this.set('interface', asteriskInterface);
this.set('queue', queue);
if (undefined !== paused) {
this.set('paused', paused);
}
if (undefined !== memberName) {
this.set('membername', memberName);
}
if (undefined !== penalty) {
this.set('penalty', penalty);
}
}

@@ -1105,2 +1127,28 @@

/**
* Filter Action.
* @constructor
* @param {String} operation. The value of the "Operation" key.
* @param {String} filter. The value of the "Filter" key.
* @see Action(String)
* @see See <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+ManagerAction_Filter">https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+ManagerAction_Filter</a>.
* @augments Action
*/
function Filter(operation, filter) {
Filter.super_.call(this, 'Filter');
this.set('Operation', operation);
this.set('Filter', filter);
}
/**
*
* @param mask
* @constructor
* @see See https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+ManagerAction_Events
*/
function Events(mask) {
Events.super_.call(this, 'Events');
this.set('Eventmask', mask);
}
// Inheritance for this module

@@ -1189,3 +1237,5 @@ util.inherits(Action, message.Message);

AGI,
BlindTransfer
BlindTransfer,
Filter,
Events
];

@@ -1192,0 +1242,0 @@ for (i in actions) {