[Asterisk-cvs] asterisk/apps app_queue.c,1.166,1.167

twisted twisted
Thu Oct 13 16:22:13 CDT 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv21607/apps

Modified Files:
	app_queue.c 
Log Message:
Log timeouts in queues when the call timeout is set from the dialplan (Bug #5422)


Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -d -r1.166 -r1.167
--- app_queue.c	30 Sep 2005 14:01:56 -0000	1.166
+++ app_queue.c	13 Oct 2005 20:16:50 -0000	1.167
@@ -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;
 				}
 




More information about the svn-commits mailing list