diff options
-rw-r--r-- | apps/app_queue.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index b546845c1..519e2d70a 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3703,11 +3703,8 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce time(&now); holdtime = abs((now - qe->start) / 60); - holdtimesecs = abs((now - qe->start)); - if (holdtime == 1) { - ast_say_number(peer, holdtime, AST_DIGIT_ANY, peer->language, NULL); - play_file(peer, qe->parent->sound_minute); - } else { + holdtimesecs = abs((now - qe->start) % 60); + if (holdtime > 0) { ast_say_number(peer, holdtime, AST_DIGIT_ANY, peer->language, NULL); play_file(peer, qe->parent->sound_minutes); } |