[asterisk-commits] mmichelson: trunk r182121 - /trunk/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Mar 13 16:26:25 CDT 2009


Author: mmichelson
Date: Fri Mar 13 16:26:20 2009
New Revision: 182121

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=182121
Log:
Change faulty comparison used when announcing average hold minutes and seconds

(closes issue #14227)
Reported by: caspy


Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/apps/app_queue.c?view=diff&rev=182121&r1=182120&r2=182121
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Fri Mar 13 16:26:20 2009
@@ -2117,7 +2117,7 @@
 		if (res)
 			goto playout;
 
-		if (avgholdmins > 1) {
+		if (avgholdmins >= 1) {
 			res = ast_say_number(qe->chan, avgholdmins, AST_DIGIT_ANY, qe->chan->language, NULL);
 			if (res)
 				goto playout;
@@ -2132,7 +2132,7 @@
 					goto playout;
 			}
 		}
-		if (avgholdsecs > 1) {
+		if (avgholdsecs >= 1) {
 			res = ast_say_number(qe->chan, avgholdmins > 1 ? avgholdsecs : avgholdmins * 60 + avgholdsecs, AST_DIGIT_ANY, qe->chan->language, NULL);
 			if (res)
 				goto playout;




More information about the asterisk-commits mailing list