]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: fix comparison for announce-position-only-up
authorStuart Henderson <sthen@users.noreply.github.com>
Thu, 21 Aug 2025 10:22:40 +0000 (10:22 +0000)
committerGeorge Joseph <gjoseph@sangoma.com>
Wed, 17 Sep 2025 17:40:38 +0000 (11:40 -0600)
commit2d2151c0519e9fb85eab3524f8d848d9ff581298
tree48d3aa4e13fcdc6fb6b5edc8aca2d3ea6270272c
parent44034cf8419857dd280d98cac9e5bc7a8374d44b
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
(cherry picked from commit ac2948dc8994f9e15ac019a4a86fc0aeb6136a65)
apps/app_queue.c