[Asterisk-cvs] asterisk/apps app_queue.c,1.45.2.3,1.45.2.4

malcolmd at lists.digium.com malcolmd at lists.digium.com
Wed Mar 31 17:44:25 CST 2004


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

Modified Files:
      Tag: v1-0_stable
	app_queue.c 
Log Message:
Fix 'n' option in app_queue.  Thanks Mike


Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.45.2.3
retrieving revision 1.45.2.4
diff -u -d -r1.45.2.3 -r1.45.2.4
--- app_queue.c	3 Mar 2004 08:52:53 -0000	1.45.2.3
+++ app_queue.c	31 Mar 2004 22:43:11 -0000	1.45.2.4
@@ -707,8 +707,10 @@
 	int x=0;
 	char *announce = NULL;
 	char digit = 0;
+	time_t now;
 	/* Hold the lock while we setup the outgoing calls */
 	ast_mutex_lock(&qe->parent->lock);
+	time(&now);
 	cur = qe->parent->members;
 	if (strlen(qe->announce))
 		announce = qe->announce;
@@ -737,7 +739,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