[asterisk-commits] rmudgett: branch 1.8 r345285 - /branches/1.8/apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Nov 14 16:19:22 CST 2011
Author: rmudgett
Date: Mon Nov 14 16:19:18 2011
New Revision: 345285
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=345285
Log:
Make queue log indicate if ADDMEMBER is paused for AMI and realtime.
* 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/
Modified:
branches/1.8/apps/app_queue.c
Modified: branches/1.8/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_queue.c?view=diff&rev=345285&r1=345284&r2=345285
==============================================================================
--- branches/1.8/apps/app_queue.c (original)
+++ branches/1.8/apps/app_queue.c Mon Nov 14 16:19:18 2011
@@ -2126,7 +2126,7 @@
m->dead = 0;
m->realtime = 1;
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;
@@ -7312,7 +7312,7 @@
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:
More information about the asterisk-commits
mailing list