diff --git a/apps/app_queue.c b/apps/app_queue.c index 158fc7825720941fc6c95d2c1a9934009c546162..79a085879c5389631e75627dd52136ff4fff9bc7 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); }