diff options
author | Jeff Peeler <jpeeler@digium.com> | 2010-07-16 21:16:08 +0000 |
---|---|---|
committer | Jeff Peeler <jpeeler@digium.com> | 2010-07-16 21:16:08 +0000 |
commit | 5b8a8fc6c86cc7347a6ef64c01fbf71598e667fe (patch) | |
tree | 9aaef629704896f14c5031cf4494b990f607927a /apps/app_queue.c | |
parent | fe9e0e672e84a80a12a329ab82b1f0fd4a62d053 (diff) |
Fix reporting estimated queue hold time.
Just say the number of seconds (after minutes) rather than doing some incorrect
calculation with respect to minutes.
(closes issue #17498)
Reported by: corruptor
Patches:
holdesecs_bug.diff uploaded by corruptor (license 253)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@277488 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index b0ab11034..c1e390660 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2527,7 +2527,7 @@ static int say_position(struct queue_ent *qe, int ringing) } } if (avgholdsecs >= 1) { - res = ast_say_number(qe->chan, avgholdmins > 1 ? avgholdsecs : avgholdmins * 60 + avgholdsecs, AST_DIGIT_ANY, qe->chan->language, NULL); + res = ast_say_number(qe->chan, avgholdsecs, AST_DIGIT_ANY, qe->chan->language, NULL); if (res) goto playout; |