[Asterisk-cvs] asterisk/apps app_queue.c,1.52,1.53

malcolmd at lists.digium.com malcolmd at lists.digium.com
Tue Mar 30 17:05:38 CST 2004


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

Modified Files:
	app_queue.c 
Log Message:
Fix the 'n' option of app_queue. Thanks Mike


Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- app_queue.c	23 Mar 2004 21:45:38 -0000	1.52
+++ app_queue.c	30 Mar 2004 22:04:07 -0000	1.53
@@ -868,9 +868,11 @@
 	char *announce = NULL;
 	char digit = 0;
 	time_t callstart;
+	time_t now;
 	/* Hold the lock while we setup the outgoing calls */
 	ast_mutex_lock(&qe->parent->lock);
 	strncpy(queuename, qe->parent->name, sizeof(queuename) - 1);
+	time(&now);
 	cur = qe->parent->members;
 	if (strlen(qe->announce))
 		announce = qe->announce;
@@ -899,7 +901,7 @@
 				tmp->dataquality = 1;
 			if (strchr(options, 'H'))
 				tmp->allowdisconnect = 1;
-			if (strchr(options, 'n'))
+			if ((strchr(options, 'n')) && (now - qe->start >= qe->parent->timeout))
 				*go_on = 1;
 		}
 		if (url) {




More information about the svn-commits mailing list