[Asterisk-code-review] Log the reason for pausealls. (asterisk[13])

Joshua Colp asteriskteam at digium.com
Wed May 18 05:11:40 CDT 2016


Joshua Colp has uploaded a new change for review.

  https://gerrit.asterisk.org/2863

Change subject: Log the reason for pausealls.
......................................................................

Log the reason for pausealls.

Pauseall does not log the reason.
We need that reason for reporting.

ASTERISK-26032

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


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/63/2863/1

diff --git a/apps/app_queue.c b/apps/app_queue.c
index dbd8393..8ca1dd3 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -7221,7 +7221,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/2863
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id46ef7659352c1e0e39985bac11b8b4a0eaff324
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Troy Bowman <troy at lump.net>



More information about the asterisk-code-review mailing list