From a3eb50488cc80b34606850ae3b6863ff7189159f Mon Sep 17 00:00:00 2001 From: mmichelson Date: Fri, 13 Mar 2009 21:26:47 +0000 Subject: Merged revisions 182121 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r182121 | mmichelson | 2009-03-13 16:26:20 -0500 (Fri, 13 Mar 2009) | 6 lines Change faulty comparison used when announcing average hold minutes and seconds (closes issue #14227) Reported by: caspy ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@182122 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_queue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/app_queue.c') diff --git a/apps/app_queue.c b/apps/app_queue.c index cb5b12644..c99000f9f 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1903,7 +1903,7 @@ static int say_position(struct queue_ent *qe, int ringing) 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; @@ -1918,7 +1918,7 @@ static int say_position(struct queue_ent *qe, int ringing) 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; -- cgit v1.2.3