mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
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
This commit is contained in:
@@ -2527,7 +2527,7 @@ static int say_position(struct queue_ent *qe, int ringing)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
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);
|
res = ast_say_number(qe->chan, avgholdsecs, AST_DIGIT_ANY, qe->chan->language, NULL);
|
||||||
if (res)
|
if (res)
|
||||||
goto playout;
|
goto playout;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user