[Asterisk-code-review] app queue: Log reason for PAUSEALL/UNPAUSEALL (asterisk[14])
Troy Bowman
asteriskteam at digium.com
Tue Apr 4 13:49:57 CDT 2017
Troy Bowman has uploaded a new change for review. ( https://gerrit.asterisk.org/5404 )
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/04/5404/1
diff --git a/apps/app_queue.c b/apps/app_queue.c
index f5cec1e..c09ab13 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -7316,7 +7316,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/5404
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifb3f0d1a0abd5194253d9794023546e1395baf3d
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: Troy Bowman <troy at lump.net>
More information about the asterisk-code-review
mailing list