Index: apps/app_queue.c =================================================================== --- apps/app_queue.c (revision 208082) +++ apps/app_queue.c (working copy) @@ -453,7 +453,7 @@ static AST_LIST_HEAD_STATIC(queues, call_queue); -static int set_member_paused(const char *queuename, const char *interface, int paused); +static int set_member_paused(const char *queuename, const char *interface, int paused, const char *by_whom); static void queue_transfer_fixup(void *data, struct ast_channel *old_chan, struct ast_channel *new_chan); @@ -2162,7 +2162,7 @@ ast_verbose( VERBOSE_PREFIX_3 "Nobody picked up in %d ms\n", rnatime); ast_queue_log(qe->parent->name, qe->chan->uniqueid, membername, "RINGNOANSWER", "%d", rnatime); if (qe->parent->autopause && pause) { - if (!set_member_paused(qe->parent->name, interface, 1)) { + if (!set_member_paused(qe->parent->name, interface, 1, "RINGNOANSWER")) { if (option_verbose > 2) ast_verbose( VERBOSE_PREFIX_3 "Auto-Pausing Queue Member %s in queue %s since they failed to answer.\n", interface, qe->parent->name); } else { @@ -3471,7 +3471,7 @@ return res; } -static int set_member_paused(const char *queuename, const char *interface, int paused) +static int set_member_paused(const char *queuename, const char *interface, int paused, const char *by_whom) { int found = 0; struct call_queue *q; @@ -3498,7 +3498,7 @@ if (mem->realtime) update_realtime_member_field(mem, q->name, "paused", paused ? "1" : "0"); - ast_queue_log(q->name, "NONE", mem->membername, (paused ? "PAUSE" : "UNPAUSE"), "%s", ""); + ast_queue_log(q->name, by_whom, mem->membername, (paused ? "PAUSE" : "UNPAUSE"), "%s", ""); manager_event(EVENT_FLAG_AGENT, "QueueMemberPaused", "Queue: %s\r\n" @@ -3647,7 +3647,7 @@ return -1; } - if (set_member_paused(args.queuename, args.interface, 1)) { + if (set_member_paused(args.queuename, args.interface, 1, "DIALPLAN")) { ast_log(LOG_WARNING, "Attempt to pause interface %s, not found\n", args.interface); if (priority_jump || ast_opt_priority_jumping) { if (ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101)) { @@ -3700,7 +3700,7 @@ return -1; } - if (set_member_paused(args.queuename, args.interface, 0)) { + if (set_member_paused(args.queuename, args.interface, 0, "DIALPLAN")) { ast_log(LOG_WARNING, "Attempt to unpause interface %s, not found\n", args.interface); if (priority_jump || ast_opt_priority_jumping) { if (ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101)) { @@ -4939,7 +4939,7 @@ paused = abs(ast_true(paused_s)); - if (set_member_paused(queuename, interface, paused)) + if (set_member_paused(queuename, interface, paused, "MANAGER")) astman_send_error(s, m, "Interface not found"); else astman_send_ack(s, m, paused ? "Interface paused successfully" : "Interface unpaused successfully");