Files
asterisk/apps
phoneben aad7149613 app_queue: queue rules – Add support for QUEUE_RAISE_PENALTY=rN to raise penalties only for members within min/max range
This update adds support for a new QUEUE_RAISE_PENALTY format: rN

When QUEUE_RAISE_PENALTY is set to rN (e.g., r4), only members whose current penalty
is greater than or equal to the defined min_penalty and less than or equal to max_penalty
will have their penalty raised to N.

Members with penalties outside the min/max range remain unchanged.

Example behaviors:

QUEUE_RAISE_PENALTY=4     → Raise all members with penalty < 4 (existing behavior)
QUEUE_RAISE_PENALTY=r4    → Raise only members with penalty in [min_penalty, max_penalty] to 4

Implementation details:

Adds parsing logic to detect the r prefix and sets the raise_respect_min flag

Modifies the raise logic to skip members outside the defined penalty range when the flag is active

UserNote: This change introduces QUEUE_RAISE_PENALTY=rN, allowing selective penalty raises
only for members whose current penalty is within the [min_penalty, max_penalty] range.
Members with lower or higher penalties are unaffected.
This behavior is backward-compatible with existing queue rule configurations.

(cherry picked from commit 12440d232f)
2025-06-26 12:15:05 -06:00
..
2025-05-01 12:41:17 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-05-01 12:41:17 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-05-01 12:41:17 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-05-01 12:41:17 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-05-01 12:41:17 +00:00
2025-03-20 18:29:20 +00:00
2025-05-01 12:41:17 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-05-01 12:41:17 +00:00
2025-03-20 18:29:20 +00:00
2025-05-01 12:41:17 +00:00
2025-05-01 12:41:17 +00:00
2025-05-01 12:41:17 +00:00
2025-05-01 12:41:17 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-05-01 12:41:17 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-05-01 12:41:17 +00:00
2025-05-01 12:41:17 +00:00
2025-05-01 12:41:17 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-06-26 12:15:05 -06:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-05-01 12:41:17 +00:00
2025-03-20 18:29:20 +00:00
2025-05-01 12:41:17 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00