🚀 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.6
to
0.6.7
+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.6",
"version": "0.6.7",
"homepage": "https://github.com/marcelog/Nami",

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

@@ -206,2 +206,3 @@ Introduction

- AGI
- BlindTransfer

@@ -208,0 +209,0 @@ Thanks to

@@ -786,5 +786,14 @@ /*!

*/
function QueueUnpause() {
QueueUnpause.super_.call(this, 'QueueUnpause');
this.paused = 'false';
function QueueUnpause(interface, queue, reason) {
QueueUnpause.super_.call(this, 'QueuePause');
this.set('paused', 'false');
this.set('interface', interface);
if (undefined !== queue) {
this.set('queue', queue);
}
if (undefined !== reason) {
this.set('reason', reason);
}
}

@@ -802,5 +811,14 @@

*/
function QueuePause() {
function QueuePause(interface, queue, reason) {
QueuePause.super_.call(this, 'QueuePause');
this.paused = 'true';
this.set('paused', 'true');
this.set('interface', interface);
if (undefined !== queue) {
this.set('queue', queue);
}
if (undefined !== reason) {
this.set('reason', reason);
}
}

@@ -1066,2 +1084,19 @@

/**
* BlindTransfer Action.
* @constructor
* @see Action(String)
* @see https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+ManagerAction_BlindTransfer
* @param {String} Source channel that wants to transfer the target channel.
* @param {String} Context to transfer the target channel to.
* @param {String} Extension inside the context to transfer the target channel to.
* @augments Action
*/
function BlindTransfer(channel, context, extension) {
BlindTransfer.super_.call(this, 'BlindTransfer');
this.set('Channel', channel);
this.set('Context', context);
this.set('Exten', extension);
}
// Inheritance for this module

@@ -1149,3 +1184,4 @@ util.inherits(Action, message.Message);

ConfbridgeUnmute,
AGI
AGI,
BlindTransfer
];

@@ -1152,0 +1188,0 @@ for (i in actions) {

@@ -87,3 +87,6 @@ /*!

var valueSafe = value.replace(/^\s+/g, '').replace(/\s+$/g, '');
if (keySafe.match(/variable/) !== null) {
/*
* SetVar contains Variable: header, but value should not include '=' in this case
*/
if (keySafe.match(/variable/) !== null && valueSafe.match(/=/) !== null) {
var variable = valueSafe.split("=");

@@ -90,0 +93,0 @@ this.variables[variable[0]] = variable[1];