summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2006-03-11 15:17:50 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2006-03-11 15:17:50 +0000
commit30a806010a803d95aa69d896ece2e49f5bc27ea4 (patch)
tree56cd7ad148e98ce81f504b458dfab423d06f07a4 /apps
parent0a47c7c240a432f63d92cce48d97d50af27ac4e2 (diff)
Bug 6459 - tell manager when queue is abandoned
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12501 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 158fc7825..79a085879 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -1624,6 +1624,14 @@ static int say_periodic_announcement(struct queue_ent *qe)
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);
}