[asterisk-commits] branch oej/test-this-branch r12482 - in /team/oej/test-this-branch: ./ apps/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Mar 9 13:49:12 MST 2006


Author: oej
Date: Thu Mar  9 14:49:09 2006
New Revision: 12482

URL: http://svn.digium.com/view/asterisk?rev=12482&view=rev
Log:
Issue #6459 - Abandon Queue manager event (tim_ringenbach)

Modified:
    team/oej/test-this-branch/README.test-this-branch
    team/oej/test-this-branch/apps/app_queue.c

Modified: team/oej/test-this-branch/README.test-this-branch
URL: http://svn.digium.com/view/asterisk/team/oej/test-this-branch/README.test-this-branch?rev=12482&r1=12481&r2=12482&view=diff
==============================================================================
--- team/oej/test-this-branch/README.test-this-branch (original)
+++ team/oej/test-this-branch/README.test-this-branch Thu Mar  9 14:49:09 2006
@@ -47,6 +47,7 @@
   See doc/rt_ldap.txt!
 - PostgreSQL realtime driver (mguesdoon, #5637)
 - Mute logging in remote console (mavetju, #6524)
+- Abandon Queue manager event (tim_ringenbach, #6459)
 
 
 Coming here soon:

Modified: team/oej/test-this-branch/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/team/oej/test-this-branch/apps/app_queue.c?rev=12482&r1=12481&r2=12482&view=diff
==============================================================================
--- team/oej/test-this-branch/apps/app_queue.c (original)
+++ team/oej/test-this-branch/apps/app_queue.c Thu Mar  9 14:49:09 2006
@@ -1624,6 +1624,14 @@
 static void record_abandoned(struct queue_ent *qe)
 {
 	ast_mutex_lock(&qe->parent->lock);
+	manager_event(EVENT_FLAG_AGENT, "QueueCallerAbandon",
+	              "Queue: %s\r\n"
+	              "Uniqueid: %s\r\n"
+	              "Position: %d\r\n"
+	              "OriginalPosition: %d\r\n"
+	              "HoldTime: %d\r\n",
+	              qe->parent->name, qe->chan->uniqueid, qe->pos, qe->opos, (int)(time(NULL) - qe->start));
+
 	qe->parent->callsabandoned++;
 	ast_mutex_unlock(&qe->parent->lock);
 }



More information about the asterisk-commits mailing list