From c50a68d1658794735827e4e0fb81692ee1921903 Mon Sep 17 00:00:00 2001 From: Joshua Elson Date: Tue, 20 Jul 2021 16:40:43 -0600 Subject: [PATCH 1/6] Add MixMonitor Action handler --- src/message/action.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/message/action.js b/src/message/action.js index 016951b..a3cf5c0 100644 --- a/src/message/action.js +++ b/src/message/action.js @@ -633,12 +633,27 @@ function Parkinglots() { Parkinglots.super_.call(this, 'Parkinglots'); } +/** + * MixMonitor Action. + * @constructor + * @see Action(String) + * @see See https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+ManagerAction_MixMonitor. + * @property {String} Channel Channel name to start MixMonitor + * @property {String} Filename Path where to save the audio + * @property {String} Options Options for execution of MixMonitor + * @property {String} Command Command to execute on recording completion + * @augments Action + */ + function MixMonitor() { + MixMonitor.super_.call(this, 'MixMonitor'); +} + /** * Monitor Action. * @constructor * @see Action(String) * @see See https://wiki.asterisk.org/wiki/display/AST/ManagerAction_Monitor. - * @property {String} Channel Channel name to park + * @property {String} Channel Channel name to start Monitor * @property {String} Filename Path where to save the audio * @augments Action */ @@ -1269,6 +1284,7 @@ util.inherits(Action, message.Message); Park, ParkedCalls, Parkinglots, + MixMonitor, Monitor, ModuleCheck, ModuleLoad, From 68341a0d03aa2decda7949d0aed905020ecd77d0 Mon Sep 17 00:00:00 2001 From: Joshua Elson Date: Tue, 20 Jul 2021 17:46:52 -0600 Subject: [PATCH 2/6] Add StopMixMonitor Action --- README.md | 4 ++-- src/message/action.js | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7c8b886..e918313 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,12 @@ Introduction ------------ -For API and docs, check out the homepage at http://marcelog.github.com/Nami +For API and docs, check out the homepage at http://marcelog.github.io/Nami You can also download the distribution and doc from the CI server, at: http://ci.marcelog.name:8080/view/NodeJS/ -A very similar, PHP alternative, is available at http://marcelog.github.com/PAMI +A very similar, PHP alternative, is available at http://marcelog.github.io/PAMI An Erlang port is available at https://github.com/marcelog/erlami Nami by itself is just a library that allows your nodejs code to communicate to diff --git a/src/message/action.js b/src/message/action.js index a3cf5c0..b45363f 100644 --- a/src/message/action.js +++ b/src/message/action.js @@ -526,6 +526,20 @@ function UnpauseMonitor() { UnpauseMonitor.super_.call(this, 'UnpauseMonitor'); } +/** + * StopMixMonitor Action. + * @constructor + * @see Action(String) + * @see See https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+ManagerAction_StopMixMonitor. + * @property {String} Channel Channel name to stop MixMonitor + * @property {String} ActionId ActionID for this transaction + * @property {String} MixMonitorID If a valid ID is provided, then this command will stop only that specific MixMonitor + * @augments Action + */ + function StopMixMonitor() { + MixMonitor.super_.call(this, 'StopMixMonitor'); +} + /** * StopMonitor Action. * @constructor @@ -538,7 +552,6 @@ function StopMonitor() { StopMonitor.super_.call(this, 'StopMonitor'); } - /** * LocalOptimizeAway Action. * @constructor @@ -1297,6 +1310,7 @@ util.inherits(Action, message.Message); Redirect, Bridge, UnpauseMonitor, + StopMixMonitor, StopMonitor, ShowDialPlan, SendText, From 064eef8b3dde5e1735fc8286cbd18090e8c21487 Mon Sep 17 00:00:00 2001 From: Joshua Elson Date: Thu, 9 Nov 2023 16:07:39 -0700 Subject: [PATCH 3/6] Add PJSIPShowEndpoint/s Options --- src/message/action.js | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/message/action.js b/src/message/action.js index b45363f..01baaca 100644 --- a/src/message/action.js +++ b/src/message/action.js @@ -462,6 +462,29 @@ function GetVar() { GetVar.super_.call(this, 'GetVar'); } +/** + * PJSIPShowEndpoint Action. + * @constructor + * @see Action(String) + * @see See https://docs.asterisk.org/Asterisk_20_Documentation/API_Documentation/AMI_Actions/PJSIPShowEndpoint/. + * @property {String} Endpoint Endpoint to Show + * @augments Action + */ +function PJSIPNotify() { + PJSIPShowEndpoint.super_.call(this, 'PJSIPShowEndpoint'); +} + +/** + * PJSIPShowEndpoints Action. + * @constructor + * @see Action(String) + * @see See https://docs.asterisk.org/Asterisk_20_Documentation/API_Documentation/AMI_Actions/PJSIPShowEndpoints/. + * @augments Action + */ +function PJSIPNotify() { + PJSIPShowEndpoints.super_.call(this, 'PJSIPShowEndpoints'); +} + /** * PJSIPNotify Action. * @constructor @@ -532,7 +555,6 @@ function UnpauseMonitor() { * @see Action(String) * @see See https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+ManagerAction_StopMixMonitor. * @property {String} Channel Channel name to stop MixMonitor - * @property {String} ActionId ActionID for this transaction * @property {String} MixMonitorID If a valid ID is provided, then this command will stop only that specific MixMonitor * @augments Action */ From d2649b6c8940b22be816d03060139e4e13adaaad Mon Sep 17 00:00:00 2001 From: Joshua Elson Date: Thu, 9 Nov 2023 16:20:32 -0700 Subject: [PATCH 4/6] Add actions --- src/message/action.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/message/action.js b/src/message/action.js index 01baaca..1483944 100644 --- a/src/message/action.js +++ b/src/message/action.js @@ -1311,6 +1311,8 @@ util.inherits(Action, message.Message); SetVar, JabberSend, PJSIPNotify, + PJSIPShowEndpoint, + PJSIPShowEndpoints, ListCategories, PauseMonitor, LocalOptimizeAway, From a611e7906540ac056cfe2a4abf20ae3d02bcba41 Mon Sep 17 00:00:00 2001 From: Joshua Elson Date: Thu, 9 Nov 2023 16:24:25 -0700 Subject: [PATCH 5/6] Corrected constructor --- src/message/action.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/message/action.js b/src/message/action.js index 1483944..b724caf 100644 --- a/src/message/action.js +++ b/src/message/action.js @@ -470,7 +470,7 @@ function GetVar() { * @property {String} Endpoint Endpoint to Show * @augments Action */ -function PJSIPNotify() { +function PJSIPShowEndpoint() { PJSIPShowEndpoint.super_.call(this, 'PJSIPShowEndpoint'); } @@ -481,7 +481,7 @@ function PJSIPNotify() { * @see See https://docs.asterisk.org/Asterisk_20_Documentation/API_Documentation/AMI_Actions/PJSIPShowEndpoints/. * @augments Action */ -function PJSIPNotify() { +function PJSIPShowEndpoints() { PJSIPShowEndpoints.super_.call(this, 'PJSIPShowEndpoints'); } From d453911c3ff3ec638bc01fc06d848245269269ba Mon Sep 17 00:00:00 2001 From: Joshua Elson Date: Thu, 9 Nov 2023 16:38:35 -0700 Subject: [PATCH 6/6] Bump 0.7.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7e214c2..683ea88 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Marcelo Gornstein (http://marcelog.github.com/)", "name": "nami", "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.7.2", + "version": "0.7.3", "homepage": "https://github.com/marcelog/Nami", "keywords": [ "asterisk",