]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Log timeouts in queues when the call timeout is set from the dialplan (Bug #5422)
authorJosh Roberson <josh@asteriasgi.com>
Thu, 13 Oct 2005 20:16:50 +0000 (20:16 +0000)
committerJosh Roberson <josh@asteriasgi.com>
Thu, 13 Oct 2005 20:16:50 +0000 (20:16 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6761 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 6ddd72169edd832850ea6566fa6045e0f444b154..c4813073c7c32d5c99814f0e756379a27f11c5de 100755 (executable)
@@ -1841,6 +1841,7 @@ static int wait_our_turn(struct queue_ent *qe, int ringing, enum queue_result *r
                /* 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 @@ check_turns:
                                         record_abandoned(&qe);
                                        reason = QUEUE_TIMEOUT;
                                        res = 0;
+                                       ast_queue_log(queuename, chan->uniqueid,"NONE", "EXITWITHTIMEOUT", "%d", qe.pos);
                                        break;
                                }
 
@@ -2936,6 +2938,7 @@ check_turns:
                                        record_abandoned(&qe);
                                        reason = QUEUE_TIMEOUT;
                                        res = 0;
+                                       ast_queue_log(queuename, chan->uniqueid,"NONE", "EXITWITHTIMEOUT", "%d", qe.pos);       
                                        break;
                                }