]> 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:44:30 +0000 (15:44 -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 be4cadb5267ee08a81b7c30c082c443762970017..c56d7f0afe3f5374e43ad7955b5929e7ccc2796f 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 13.16.0 to Asterisk 13.17.0 ----------
 ------------------------------------------------------------------------------
index 0d9b2f1943b72214ce19cbe8560c32925d0298b1..91c8d61fcbcac61de6965b45df45de5d2ff28c97 100644 (file)
@@ -9695,6 +9695,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),
@@ -9702,7 +9703,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 afd9ca1484e35316e1772d8be61bcf7e97ce711a..a9e960c747b7b98673fb6eb1c5563cff0ab02a28 100644 (file)
@@ -54,7 +54,7 @@
 - \ref manager.c Main manager code file
  */
 
-#define AMI_VERSION                     "2.10.0"
+#define AMI_VERSION                     "2.10.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 */