From: Richard Mudgett Date: Mon, 14 Nov 2011 22:19:18 +0000 (+0000) Subject: Make queue log indicate if ADDMEMBER is paused for AMI and realtime. X-Git-Tag: 1.8.9.0-rc1~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=382f4ac06fb4c6c5002c67243fe5658bcaa71aab;p=thirdparty%2Fasterisk.git Make queue log indicate if ADDMEMBER is paused for AMI and realtime. * Add parameter to queue log ADDMEMBER to indicate if the member is paused. (closes issue ASTERISK-18645) Reported by: garlew Patches: paused.diff (License #5337) patch uploaded by garlew Tested by: rmudgett, garlew Review: https://reviewboard.asterisk.org/r/1469/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@345285 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 5cb1e1c608..1349d04b2f 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2126,7 +2126,7 @@ static void rt_handle_member_record(struct call_queue *q, char *interface, const m->dead = 0; m->realtime = 1; ast_copy_string(m->rt_uniqueid, rt_uniqueid, sizeof(m->rt_uniqueid)); - ast_queue_log(q->name, "REALTIME", m->interface, "ADDMEMBER", "%s", ""); + ast_queue_log(q->name, "REALTIME", m->interface, "ADDMEMBER", "%s", paused ? "PAUSED" : ""); ao2_link(q->members, m); ao2_ref(m, -1); m = NULL; @@ -7312,7 +7312,7 @@ static int manager_add_queue_member(struct mansession *s, const struct message * switch (add_to_queue(queuename, interface, membername, penalty, paused, queue_persistent_members, state_interface)) { case RES_OKAY: - ast_queue_log(queuename, "MANAGER", interface, "ADDMEMBER", "%s", ""); + ast_queue_log(queuename, "MANAGER", interface, "ADDMEMBER", "%s", paused ? "PAUSED" : ""); astman_send_ack(s, m, "Added interface to queue"); break; case RES_EXISTS: