From cfcb2456342ee1a6c4d9baf4573b78bde5f1b4de Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Thu, 21 Aug 2025 10:22:40 +0000 Subject: [PATCH] app_queue: fix comparison for announce-position-only-up Numerically comparing that the current queue position is less than last_pos_said can only be done after at least one announcement has been made, otherwise last_pos_said is at the default (0). Fixes: #1386 --- apps/app_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_queue.c b/apps/app_queue.c index 398eab2564..1802eee7d6 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -4370,7 +4370,7 @@ static int say_position(struct queue_ent *qe, int ringing) } /* Only announce if the caller's queue position has improved since last time */ - if (qe->parent->announceposition_only_up && qe->last_pos_said <= qe->pos) { + if (qe->parent->announceposition_only_up && qe->last_pos_said > 0 && qe->last_pos_said <= qe->pos) { return 0; }