Add 'Strat' manager field to QueueParams event. (issue #7704 reported by renemendoza)
authorJoshua Colp <jcolp@digium.com>
Tue, 3 Oct 2006 17:41:41 +0000 (17:41 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 3 Oct 2006 17:41:41 +0000 (17:41 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44274 65c4cc65-6c06-0410-ace0-fbb531ad65f3

CHANGES
apps/app_queue.c

diff --git a/CHANGES b/CHANGES
index b6ea58a..30b6f2a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -26,4 +26,6 @@ Changes since Asterisk 1.4-beta was branched:
   * setinterfacevar option in queues.conf also now sets a variable
      called MEMBERNAME which contains the member's name.
   * Added Masquerade manager event for when a masquerade happens between
-    two channels.
+     two channels.
+  * Added 'Strat' field to manager event QueueParams which represents
+     the queue strategy in use. 
index f0ce905..fb27993 100644 (file)
@@ -4107,6 +4107,7 @@ static int manager_queues_status(struct mansession *s, struct message *m)
                        astman_append(s, "Event: QueueParams\r\n"
                                "Queue: %s\r\n"
                                "Max: %d\r\n"
+                               "Strat: %s\r\n"
                                "Calls: %d\r\n"
                                "Holdtime: %d\r\n"
                                "Completed: %d\r\n"
@@ -4116,7 +4117,7 @@ static int manager_queues_status(struct mansession *s, struct message *m)
                                "Weight: %d\r\n"
                                "%s"
                                "\r\n",
-                               q->name, q->maxlen, q->count, q->holdtime, q->callscompleted,
+                               q->name, q->maxlen, int2strat(q->strategy), q->count, q->holdtime, q->callscompleted,
                                q->callsabandoned, q->servicelevel, sl, q->weight, idText);
                        /* List Queue Members */
                        for (mem = q->members; mem; mem = mem->next) {