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