Skip to content

stasis_broadcast: Add ARI tests for StasisBroadcast#118

Merged
github-actions[bot] merged 1 commit intoasterisk:masterfrom
danieldonoghue:master-stasis-broadcast-test
Apr 22, 2026
Merged

stasis_broadcast: Add ARI tests for StasisBroadcast#118
github-actions[bot] merged 1 commit intoasterisk:masterfrom
danieldonoghue:master-stasis-broadcast-test

Conversation

@danieldonoghue
Copy link
Copy Markdown
Contributor

@danieldonoghue danieldonoghue commented Dec 1, 2025

Adds tests for the res_stasis_broadcast and app_stasis_broadcast modules,
covering the four core behaviours of StasisBroadcast():

claim_success: originates a channel via StasisBroadcast(), verifies the
CallBroadcast event is delivered to connected ARI applications, claims
the channel via POST /ari/events/claim, and confirms the channel enters
Stasis in the claiming application with a StasisStart event.

claim_already_taken: verifies that when two applications race to claim
the same channel, the first receives 204 No Content and the second
receives 409 Conflict.

claim_filter: verifies that the app_filter regex parameter correctly
limits CallBroadcast delivery to matching application names only.

claim_timeout: verifies that when no application claims the channel
within the configured timeout, STASISSTATUS is set to TIMEOUT and
control returns to the dialplan.

Development was assisted by Claude (Anthropic). All generated code has
been reviewed, tested, and is understood by the author.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

@sangoma-oss-cla
Copy link
Copy Markdown

sangoma-oss-cla Bot commented Dec 1, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown

@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
Copy link
Copy Markdown

github-actions Bot commented Dec 1, 2025

Workflow PRCheck completed successfully

@danieldonoghue
Copy link
Copy Markdown
Contributor Author

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

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 2, 2025

Workflow PRCheck completed successfully

@danieldonoghue danieldonoghue marked this pull request as ready for review December 2, 2025 11:12
@danieldonoghue
Copy link
Copy Markdown
Contributor Author

asterisk-test-pr: 1617

Adds tests for the res_stasis_broadcast and app_stasis_broadcast modules,
covering the four core behaviours of StasisBroadcast():

claim_success: originates a channel via StasisBroadcast(), verifies the
CallBroadcast event is delivered to connected ARI applications, claims
the channel via POST /ari/events/claim, and confirms the channel enters
Stasis in the claiming application with a StasisStart event.

claim_already_taken: verifies that when two applications race to claim
the same channel, the first receives 204 No Content and the second
receives 409 Conflict.

claim_filter: verifies that the app_filter regex parameter correctly
limits CallBroadcast delivery to matching application names only.

claim_timeout: verifies that when no application claims the channel
within the configured timeout, STASISSTATUS is set to TIMEOUT and
control returns to the dialplan.

Development was assisted by Claude (Anthropic). All generated code has
been reviewed, tested, and is understood by the author.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@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
Copy link
Copy Markdown

Workflow PRCheck completed successfully

@danieldonoghue danieldonoghue changed the title Add tests for stasis_broadcast modules stasis_broadcast: Add ARI tests for StasisBroadcast Feb 25, 2026
@danieldonoghue
Copy link
Copy Markdown
Contributor Author

I believe the GitHub-actions request related to the PR title and description should now be satisfied

@github-actions github-actions Bot added cherry-pick-testing-in-progress Cherry-Pick tests in progress cherry-pick-checks-passed Cherry-Pick checks passed and removed cherry-pick-testing-in-progress Cherry-Pick tests in progress labels Apr 22, 2026
@github-actions
Copy link
Copy Markdown

Workflow CPCheck completed successfully

@github-actions github-actions Bot merged commit 8bf0cc9 into asterisk:master Apr 22, 2026
32 checks passed
@github-actions
Copy link
Copy Markdown

Successfully merged to branch master and cherry-picked to ["23","22","20"]

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.

3 participants