[Asterisk-cvs] asterisk/apps app_queue.c,1.162,1.163

kpfleming kpfleming
Sun Sep 25 20:44:30 CDT 2005


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

Modified Files:
	app_queue.c 
Log Message:
don't drop the caller just because it's not time to play an announcement (issue #5279)


Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.162
retrieving revision 1.163
diff -u -d -r1.162 -r1.163
--- app_queue.c	15 Sep 2005 15:44:26 -0000	1.162
+++ app_queue.c	26 Sep 2005 00:41:28 -0000	1.163
@@ -1516,8 +1516,8 @@
 	time(&now);
 
 	/* Check to see if it is time to announce */
-	if ( (now - qe->last_periodic_announce_time) < qe->parent->periodicannouncefrequency )
-		return -1;
+	if ((now - qe->last_periodic_announce_time) < qe->parent->periodicannouncefrequency)
+		return 0;
 
 	/* Stop the music on hold so we can play our own file */
 	ast_moh_stop(qe->chan);
@@ -1534,7 +1534,7 @@
 	/* update last_periodic_announce_time */
 	qe->last_periodic_announce_time = now;
 
-	return(res);
+	return res;
 }
 
 static void record_abandoned(struct queue_ent *qe)




More information about the svn-commits mailing list