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.

ASTERISK-26920 #close

Change-Id: Ifb3f0d1a0abd5194253d9794023546e1395baf3d
This commit is contained in:
Troy Bowman
2017-04-04 10:44:34 -06:00
committed by Richard Mudgett
parent 380973cc47
commit fac5115c43
2 changed files with 6 additions and 1 deletions

View File

@@ -7332,7 +7332,7 @@ static int set_member_paused(const char *queuename, const char *interface, const
* 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);