From d5e57108889bd69612e155f333e790818c9c4f70 Mon Sep 17 00:00:00 2001 From: file Date: Wed, 27 Jun 2007 22:45:49 +0000 Subject: Merged revisions 72327 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r72327 | file | 2007-06-27 18:43:11 -0400 (Wed, 27 Jun 2007) | 2 lines Fix issue where queue log events might be missing. (issue #7765 reported by mtryfoss) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72328 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_queue.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps') diff --git a/apps/app_queue.c b/apps/app_queue.c index 54400bd6a..5635d5275 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3472,6 +3472,7 @@ check_turns: if (qe.parent->leavewhenempty && (stat == QUEUE_NO_MEMBERS)) { record_abandoned(&qe); reason = QUEUE_LEAVEEMPTY; + ast_queue_log(args.queuename, chan->uniqueid, "NONE", "EXITEMPTY", "%d|%d|%ld", qe.pos, qe.opos, (long)(time(NULL) - qe.start)); res = 0; break; } @@ -3480,6 +3481,7 @@ check_turns: if ((qe.parent->leavewhenempty == QUEUE_EMPTY_STRICT) && (stat == QUEUE_NO_REACHABLE_MEMBERS)) { record_abandoned(&qe); reason = QUEUE_LEAVEUNAVAIL; + ast_queue_log(args.queuename, chan->uniqueid, "NONE", "EXITEMPTY", "%d|%d|%ld", qe.pos, qe.opos, (long)(time(NULL) - qe.start)); res = 0; break; } -- cgit v1.2.3