]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: Fix rN raise_penalty ignoring min_penalty in calc_metric
authorphoneben <3232963@gmail.com>
Tue, 6 Jan 2026 19:53:45 +0000 (21:53 +0200)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Mon, 26 Jan 2026 20:31:05 +0000 (20:31 +0000)
commit80d7446cbd3c7591fc5db5fe2c508d54c2659f72
treeaa49eabf14ed62189958637587d3e5cac720093a
parenta741676a9dbf1c8c83cfbf253ee9428406ff4deb
app_queue: Fix rN raise_penalty ignoring min_penalty in calc_metric

QUEUE_RAISE_PENALTY=rN was not respected during member selection. calc_metric() raised penalties below QUEUE_MIN_PENALTY, allowing excluded members to be selected.

This change makes calc_metric() honor raise_respect_min, keeping behavior consistent with queue empty checks and expected rN semantics

UserNote: Fixes an issue where QUEUE_RAISE_PENALTY=rN could raise a member’s penalty below QUEUE_MIN_PENALTY during member selection. This could allow members intended to be excluded to be selected. The queue now consistently respects the minimum penalty when raising penalties, aligning member selection behavior with queue empty checks and documented rN semantics.
apps/app_queue.c