diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-13 21:26:47 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-13 21:26:47 +0000 |
commit | a3eb50488cc80b34606850ae3b6863ff7189159f (patch) | |
tree | dd35ee29238ac81b1d04de398e26f1f45158f65e | |
parent | 65a868f10809009b8584748909ea4fab90dd1dd3 (diff) |
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
-rw-r--r-- | apps/app_queue.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |