From a883c72b6c0987401612aa36e58614d6d9c935a3 Mon Sep 17 00:00:00 2001 From: syed-kumail-abbas Date: Tue, 19 Aug 2025 18:57:14 +0500 Subject: [PATCH 1/2] Added PJSIP AMI actions support --- lib/action-specifications.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/action-specifications.js b/lib/action-specifications.js index f6b4b7e..4f4a342 100644 --- a/lib/action-specifications.js +++ b/lib/action-specifications.js @@ -122,4 +122,23 @@ module.exports = [ { name: 'SIPpeerstatus' }, { name: 'BridgeList' }, { name: 'BridgeInfo' }, + + // PJSIP Actions + { name: 'PJSIPShowEndpoints', params: [] }, + { name: 'PJSIPShowEndpoint', params: ['Endpoint'] }, + { name: 'PJSIPQualify', params: ['Endpoint'] }, + { name: 'PJSIPNotify', params: ['Endpoint', 'URI', 'Variable', 'Option'] }, + { name: 'PJSIPRegister', params: ['Registration'] }, + { name: 'PJSIPUnregister', params: ['Registration'] }, + { name: 'PJSIPShowAors', params: [] }, + { name: 'PJSIPShowAuths', params: [] }, + { name: 'PJSIPShowContacts', params: [] }, + { name: 'PJSIPShowRegistrationsInbound', params: [] }, + { name: 'PJSIPShowRegistrationsOutbound', params: [] }, + { name: 'PJSIPShowRegistrationInboundContactStatuses', params: [] }, + { name: 'PJSIPShowResourceLists', params: [] }, + { name: 'PJSIPShowSubscriptionsInbound', params: [] }, + { name: 'PJSIPShowSubscriptionsOutbound', params: [] }, + { name: 'PJSIPHangup', params: ['Channel', 'Cause'] }, + ]; From 4e3d0dace8fb5b9aab246c7182eed54da3592c4b Mon Sep 17 00:00:00 2001 From: syed-kumail-abbas Date: Tue, 19 Aug 2025 19:11:09 +0500 Subject: [PATCH 2/2] updated README with PJSIP AMI actions --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 52c58e4..92e68cf 100644 --- a/README.md +++ b/README.md @@ -289,6 +289,22 @@ Available actions: * SIPpeerstatus * BridgeList * BridgeInfo +* PJSIPHangup +* PJSIPNotify +* PJSIPQualify +* PJSIPRegister +* PJSIPShowAors +* PJSIPShowAuths +* PJSIPShowContacts +* PJSIPShowEndpoint +* PJSIPShowEndpoints +* PJSIPShowRegistrationInboundContactStatuses +* PJSIPShowRegistrationsInbound +* PJSIPShowRegistrationsOutbound +* PJSIPShowResourceLists +* PJSIPShowSubscriptionsInbound +* PJSIPShowSubscriptionsOutbound +* PJSIPUnregister Description of all commands and variables they need, you can find at https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+AMI+Actions