]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make queue log indicate if ADDMEMBER is paused for AMI and realtime.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 14 Nov 2011 22:20:25 +0000 (22:20 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 14 Nov 2011 22:20:25 +0000 (22:20 +0000)
* Add parameter to queue log ADDMEMBER to indicate if the member is
paused.

(closes issue ASTERISK-18645)
Reported by: garlew
Patches:
      paused.diff (License #5337) patch uploaded by garlew
Tested by: rmudgett, garlew

Review: https://reviewboard.asterisk.org/r/1469/
........

Merged revisions 345285 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@345290 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 915175c965fc615f119c7c09d0ce36d16c14f0be..8fbbff343b7f701e89defb8715b1ac011d01e2e1 100644 (file)
@@ -2172,7 +2172,7 @@ static void rt_handle_member_record(struct call_queue *q, char *interface, struc
                        m->realtime = 1;
                        m->ignorebusy = ignorebusy;
                        ast_copy_string(m->rt_uniqueid, rt_uniqueid, sizeof(m->rt_uniqueid));
-                       ast_queue_log(q->name, "REALTIME", m->interface, "ADDMEMBER", "%s", "");
+                       ast_queue_log(q->name, "REALTIME", m->interface, "ADDMEMBER", "%s", paused ? "PAUSED" : "");
                        ao2_link(q->members, m);
                        ao2_ref(m, -1);
                        m = NULL;
@@ -7503,7 +7503,7 @@ static int manager_add_queue_member(struct mansession *s, const struct message *
 
        switch (add_to_queue(queuename, interface, membername, penalty, paused, queue_persistent_members, state_interface)) {
        case RES_OKAY:
-               ast_queue_log(queuename, "MANAGER", interface, "ADDMEMBER", "%s", "");
+               ast_queue_log(queuename, "MANAGER", interface, "ADDMEMBER", "%s", paused ? "PAUSED" : "");
                astman_send_ack(s, m, "Added interface to queue");
                break;
        case RES_EXISTS: