From b4fcc4a0981887ecfba44b0d3e7807ea9dc5eaf0 Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Fri, 13 Mar 2009 21:26:20 +0000 Subject: [PATCH] Change faulty comparison used when announcing average hold minutes and seconds (closes issue #14227) Reported by: caspy git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@182121 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_queue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/app_queue.c b/apps/app_queue.c index 5f99de4c2c..66c8ec7cda 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2117,7 +2117,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; @@ -2132,7 +2132,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;