Merged revisions 72328 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Wed, 27 Jun 2007 22:48:15 +0000 (22:48 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 27 Jun 2007 22:48:15 +0000 (22:48 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r72328 | file | 2007-06-27 18:45:49 -0400 (Wed, 27 Jun 2007) | 10 lines

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: https://origsvn.digium.com/svn/asterisk/trunk@72330 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 51b8397..85f1b6e 100644 (file)
@@ -3639,6 +3639,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;
                                }
@@ -3647,6 +3648,7 @@ check_turns:
                                if ((qe.parent->leavewhenempty == QUEUE_EMPTY_STRICT) && (stat == QUEUE_NO_REACHABLE_MEMBERS || stat == QUEUE_NO_UNPAUSED_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;
                                }