]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
app_queue: Add priority to AMI QueueStatus
authorNiklas Larsson <niklas@tese.se>
Thu, 29 Jun 2017 08:47:41 +0000 (10:47 +0200)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 1 Aug 2017 21:46:00 +0000 (15:46 -0600)
Add priority to callers in AMI QueueStatus response

ASTERISK-27092 #close

Change-Id: I8d1f737a72c7c38f4cfe1a4ee3ecc0a4f85bd199

CHANGES
apps/app_queue.c
include/asterisk/manager.h

diff --git a/CHANGES b/CHANGES
index b409be09e62d556117c51be2a63f4223986465e9..daef5882fa87682240f41ca3dc6f367e2de67d0f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -39,9 +39,15 @@ res_musiconhold
    which sends signals to the application and its descendants directly, or
    "process" which sends signals only to the application itself.
 
+res_pjsip
+------------------
  * New dialplan function PJSIP_DTMF_MODE added to get or change the DTMF mode
    of a channel on a per-call basis.
 
+app_queue
+------------------
+ * Add priority to callers in AMI QueueStatus response.
+
 ------------------------------------------------------------------------------
 --- Functionality changes from Asterisk 14.5.0 to Asterisk 14.6.0 ------------
 ------------------------------------------------------------------------------
index ddaf9eb530f8b2bdcea378da328cfb2df51c86e2..4a15e28a1eda76508424628ab2e7e0a8d0303201 100644 (file)
@@ -9829,6 +9829,7 @@ static int manager_queues_status(struct mansession *s, const struct message *m)
                                        "ConnectedLineNum: %s\r\n"
                                        "ConnectedLineName: %s\r\n"
                                        "Wait: %ld\r\n"
+                                       "Priority: %d\r\n"
                                        "%s"
                                        "\r\n",
                                        q->name, pos++, ast_channel_name(qe->chan), ast_channel_uniqueid(qe->chan),
@@ -9836,7 +9837,7 @@ static int manager_queues_status(struct mansession *s, const struct message *m)
                                        S_COR(ast_channel_caller(qe->chan)->id.name.valid, ast_channel_caller(qe->chan)->id.name.str, "unknown"),
                                        S_COR(ast_channel_connected(qe->chan)->id.number.valid, ast_channel_connected(qe->chan)->id.number.str, "unknown"),
                                        S_COR(ast_channel_connected(qe->chan)->id.name.valid, ast_channel_connected(qe->chan)->id.name.str, "unknown"),
-                                       (long) (now - qe->start), idText);
+                                       (long) (now - qe->start), qe->prio, idText);
                                ++q_items;
                        }
                }
index 3de7b1d1753e94d82782644ebedccde04eb3ddf7..6044c9762420b850a06d3e64c2d6394f11c50a39 100644 (file)
@@ -54,7 +54,7 @@
 - \ref manager.c Main manager code file
  */
 
-#define AMI_VERSION                     "3.2.0"
+#define AMI_VERSION                     "3.2.1"
 #define DEFAULT_MANAGER_PORT 5038      /* Default port for Asterisk management via TCP */
 #define DEFAULT_MANAGER_TLS_PORT 5039  /* Default port for Asterisk management via TCP */