Skip to content

stasis_broadcast: Add ARI tests for StasisBroadcast#118

Open
danieldonoghue wants to merge 1 commit intoasterisk:masterfrom
danieldonoghue:master-stasis-broadcast-test
Open

stasis_broadcast: Add ARI tests for StasisBroadcast#118
danieldonoghue wants to merge 1 commit intoasterisk:masterfrom
danieldonoghue:master-stasis-broadcast-test

Conversation

@danieldonoghue
Copy link

@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

sangoma-oss-cla bot commented Dec 1, 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
Copy link

github-actions bot commented Dec 1, 2025

Workflow PRCheck completed successfully

@danieldonoghue
Copy link
Author

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

@github-actions
Copy link

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
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

@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.

Attention! This pull request may contain issues that could prevent it from being accepted. Please review the checklist below and take the recommended action. If you believe any of these are not applicable, just add a comment and let us know.

  • The PR title does not match the commit title. This can cause confusion for reviewers and future maintainers. GitHub doesn't automatically update the PR title when you update the commit message so if you've updated the commit with a force-push, please update the PR title to match the new commit message body.
  • The PR description does not match the commit message body. This can cause confusion for reviewers and future maintainers. GitHub doesn't automatically update the PR description when you update the commit message so if you've updated the commit with a force-push, please update the PR description to match the new commit message body.

Documentation:

@github-actions
Copy link

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
Author

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

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.

1 participant