[Asterisk-code-review] app queue: Log reason for PAUSEALL/UNPAUSEALL (asterisk[master])

Troy Bowman asteriskteam at digium.com
Tue Apr 4 11:47:30 CDT 2017


Troy Bowman has uploaded a new change for review. ( https://gerrit.asterisk.org/5399 )

Change subject: app_queue: Log reason for PAUSEALL/UNPAUSEALL
......................................................................

app_queue: Log reason for PAUSEALL/UNPAUSEALL

We needed the reason for our reporting when agents pause/unpause all of
their queues at once.  This is a small, simple patch that adds a reason
for PAUSEALL and UNPAUSEALL.  I have been using it in production for years.

Change-Id: Ifb3f0d1a0abd5194253d9794023546e1395baf3d
---
M apps/app_queue.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/99/5399/1

diff --git a/apps/app_queue.c b/apps/app_queue.c
index 9bba676..ae2d645 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -7332,7 +7332,7 @@
 					 * but since this affects all queues, we cannot.
 					 */
 					ast_queue_log("NONE", "NONE", mem->membername,
-						(paused ? "PAUSEALL" : "UNPAUSEALL"), "%s", "");
+						(paused ? "PAUSEALL" : "UNPAUSEALL"), "%s", S_OR(reason, ""));
 				}
 
 				set_queue_member_pause(q, mem, reason, paused);

-- 
To view, visit https://gerrit.asterisk.org/5399
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifb3f0d1a0abd5194253d9794023546e1395baf3d
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Troy Bowman <troy at lump.net>



More information about the asterisk-code-review mailing list