Skip to content

Conversation

@serfreeman1337
Copy link

@serfreeman1337 serfreeman1337 commented Dec 10, 2025

Check priority first when determining which caller is waiting the longest, so that callers with higher priority will always ring first even if they have less wait time.

Resolves: #1637

UpgradeNote: The force_longest_waiting_caller option now takes call priority into account. Calls are offered by priority first, then by wait time.

@sangoma-oss-cla
Copy link

sangoma-oss-cla bot commented Dec 10, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Checklist Complete

@github-actions github-actions bot added the has-pr-checklist A PR Checklist is present on the PR label Dec 10, 2025
@github-actions
Copy link

Workflow PRCheck completed successfully

@serfreeman1337
Copy link
Author

cherry-pick-to: 23
cherry-pick-to: 22
cherry-pick-to: 20

@gtjoseph gtjoseph dismissed github-actions[bot]’s stale review December 29, 2025 16:01

Pull Request Checklist Complete

@gtjoseph gtjoseph removed the has-pr-checklist A PR Checklist is present on the PR label Dec 29, 2025
Copy link
Member

@jcolp jcolp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a substantial enough change that an UpgradeNote should be added to the commit message to notify people of it.

Check priority first when determining which caller is waiting the longest,
so that callers with higher priority will always ring first
even if they have less wait time.

Resolves: asterisk#1637

UpgradeNote: The force_longest_waiting_caller option now takes call priority into account.
Calls are offered by priority first, then by wait time.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Checklist Complete

@github-actions github-actions bot added the has-pr-checklist A PR Checklist is present on the PR label Jan 5, 2026
@github-actions
Copy link

github-actions bot commented Jan 5, 2026

Workflow PRCheck completed successfully

Copy link
Member

@jcolp jcolp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sample configuration also needs to be updated. Right now the behavior is explicitly stated that it is longest waiting caller, it makes no mention of priority being considered.

I think that also raises a question I would like feedback from others on. This changes the existing option behavior and goes counter to what it has been. From a least surprise perspective I wonder if this new behavior should be opt-in only so existing users are not taken off guard when things change.

@github-actions github-actions bot dismissed their stale review January 6, 2026 02:16

Pull Request Checklist Complete

@github-actions github-actions bot removed the has-pr-checklist A PR Checklist is present on the PR label Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[improvement]: force_longest_waiting_caller should also consider caller priority

3 participants