[asterisk-commits] trunk r24566 - in /trunk: apps/app_queue.c
doc/queuelog.txt
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed May 3 13:47:35 MST 2006
Author: bweschke
Date: Wed May 3 15:47:34 2006
New Revision: 24566
URL: http://svn.digium.com/view/asterisk?rev=24566&view=rev
Log:
Make sure that callers kicked from queue because of joinempty and leavewhenempty have an event logged with regard to the reason for their departure. #6559 (Corydon76)
Modified:
trunk/apps/app_queue.c
trunk/doc/queuelog.txt
Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?rev=24566&r1=24565&r2=24566&view=diff
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Wed May 3 15:47:34 2006
@@ -1960,6 +1960,7 @@
/* leave the queue if no agents, if enabled */
if (qe->parent->leavewhenempty && (stat == QUEUE_NO_MEMBERS)) {
*reason = QUEUE_LEAVEEMPTY;
+ ast_queue_log(qe->parent->name, qe->chan->uniqueid, "NONE", "EXITEMPTY", "%d|%d|%ld", qe->pos, qe->opos, (long)time(NULL) - qe->start);
leave_queue(qe);
break;
}
@@ -1967,6 +1968,7 @@
/* leave the queue if no reachable agents, if enabled */
if ((qe->parent->leavewhenempty == QUEUE_EMPTY_STRICT) && (stat == QUEUE_NO_REACHABLE_MEMBERS)) {
*reason = QUEUE_LEAVEUNAVAIL;
+ ast_queue_log(qe->parent->name, qe->chan->uniqueid, "NONE", "EXITEMPTY", "%d|%d|%ld", qe->pos, qe->opos, (long)time(NULL) - qe->start);
leave_queue(qe);
break;
}
@@ -2999,7 +3001,7 @@
if (res < 0) {
/* Record this abandoned call */
record_abandoned(&qe);
- ast_queue_log(args.queuename, chan->uniqueid, "NONE", "ABANDON", "%d|%d|%ld", qe.pos, qe.opos, (long)time(NULL) - qe.start);
+ ast_queue_log(args.queuename, chan->uniqueid, "NONE", "ABANDON", "%d|%d|%ld", qe.pos, qe.opos, (long)time(NULL) - qe.start);
if (option_verbose > 2) {
ast_verbose(VERBOSE_PREFIX_3 "User disconnected from queue %s while waiting their turn\n", args.queuename);
}
Modified: trunk/doc/queuelog.txt
URL: http://svn.digium.com/view/asterisk/trunk/doc/queuelog.txt?rev=24566&r1=24565&r2=24566&view=diff
==============================================================================
--- trunk/doc/queuelog.txt (original)
+++ trunk/doc/queuelog.txt Wed May 3 15:47:34 2006
@@ -61,6 +61,14 @@
A call has entered the queue. URL (if specified) and Caller*ID are placed
in the log.
+EXITEMPTY(position|origposition|waittime)
+The caller was exited from the queue forcefully because the queue had no
+reachable members and it's configured to do that to callers when there
+are no reachable members. The position is the caller's position in the
+queue when they hungup, the origposition is the original position the
+caller was when they first entered the queue, and the waittime is how
+long the call had been waiting in the queue at the time of disconnect.
+
EXITWITHKEY(key|position)
The caller elected to use a menu key to exit the queue. The key and
the caller's position in the queue are recorded.
More information about the asterisk-commits
mailing list