diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-13 21:26:20 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-13 21:26:20 +0000 |
commit | 844e759d7f323c54550d43779b517dab3cbd9c93 (patch) | |
tree | 99d69aa3a853e33056c14a3b4b71354567288b7d /apps/app_queue.c | |
parent | a87d4b8fb963fac0341567d7b93741d70347478b (diff) |
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/trunk@182121 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-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 5f99de4c2..66c8ec7cd 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; |