diff --git a/apps/app_queue.c b/apps/app_queue.c index d41d27295db895f66379bb6cb681d3facb2c06b1..c9c2473a2292a4c51f00f09c9a3aa8c109f94ac0 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -4335,11 +4335,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); }