diff --git a/apps/app_queue.c b/apps/app_queue.c index ba206eb8dc28b4ec334469ec0e35463489de9a9c..d94a8099aab9aaf59bc33f2fb08e0b3e1bcd1568 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -5641,6 +5641,7 @@ static int wait_our_turn(struct queue_ent *qe, int ringing, enum queue_result *r int status = 0; if ((status = get_member_status(qe->parent, qe->max_penalty, qe->min_penalty, qe->raise_penalty, qe->parent->leavewhenempty, 0))) { + record_abandoned(qe); *reason = QUEUE_LEAVEEMPTY; ast_queue_log(qe->parent->name, ast_channel_uniqueid(qe->chan), "NONE", "EXITEMPTY", "%d|%d|%ld", qe->pos, qe->opos, (long) (time(NULL) - qe->start)); res = -1;