diff options
author | Troy Bowman <troy@lump.net> | 2017-04-04 10:44:34 -0600 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2017-04-05 15:22:00 -0500 |
commit | fac5115c43b519c42ae8fbfec454311e79b3bbef (patch) | |
tree | ec1f26b2900b621a73fd5f99e5310e621b4fdf33 /apps | |
parent | 380973cc477f0060b7bfe09ad1034a0b53a343fd (diff) |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 9bba6762d..ae2d645e9 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -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); |