aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authortwisted <twisted@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-13 20:16:50 +0000
committertwisted <twisted@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-13 20:16:50 +0000
commit57ae02b3c251ca73c50b6243d9eeea8e025cfe0e (patch)
tree331e5b34139bccddc807f4b9ab493c5b851c84aa /apps
parent085f302edd32acb59db7506168a7bb45c3b4f33f (diff)
Log timeouts in queues when the call timeout is set from the dialplan (Bug #5422)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6761 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_queue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 6ddd72169..c4813073c 100755
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -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;
}