diff -Naur asterisk.old/apps/app_queue.c asterisk/apps/app_queue.c --- asterisk.old/apps/app_queue.c 2005-10-11 12:48:37.945033600 +1300 +++ asterisk/apps/app_queue.c 2005-10-11 15:50:02.195817600 +1300 @@ -1841,6 +1841,7 @@ /* If we have timed out, break out */ if (qe->expire && (time(NULL) > qe->expire)) { *reason = QUEUE_TIMEOUT; + ast_queue_log(qe->parent->name, qe->chan->uniqueid,"NONE", "EXITWITHTIMEOUT", "%d", qe->pos); break; } @@ -2876,6 +2877,7 @@ record_abandoned(&qe); reason = QUEUE_TIMEOUT; res = 0; + ast_queue_log(queuename, chan->uniqueid,"NONE", "EXITWITHTIMEOUT", "%d", qe.pos); break; } @@ -2936,6 +2938,7 @@ record_abandoned(&qe); reason = QUEUE_TIMEOUT; res = 0; + ast_queue_log(queuename, chan->uniqueid,"NONE", "EXITWITHTIMEOUT", "%d", qe.pos); break; }