Skip to content

res_stasis/resource_bridges: Split bridge playback control and wrapper cleanup#1876

Open
pekkaar wants to merge 1 commit intoasterisk:masterfrom
pekkaar:master-issue-1861
Open

res_stasis/resource_bridges: Split bridge playback control and wrapper cleanup#1876
pekkaar wants to merge 1 commit intoasterisk:masterfrom
pekkaar:master-issue-1861

Conversation

@pekkaar
Copy link
Copy Markdown
Contributor

@pekkaar pekkaar commented Apr 17, 2026

Modified the bridge playback teardown so the worker thread removes only the
playback control, while the after-bridge callback removes the playback
wrapper once the announcer has actually left the bridge.

This avoids a stale window where a new playback request could create a
replacement announcer before the old announcer had fully exited the holding
bridge.

Also replaced the flexible trailing bridge_id storage in the shared worker
thread data with an optional bridge_id pointer, since recording paths use the
same structure without a bridge id.

Fixes: #1861

…r cleanup

Modified the bridge playback teardown so the worker thread removes only the
playback control, while the after-bridge callback removes the playback
wrapper once the announcer has actually left the bridge.

This avoids a stale window where a new playback request could create a
replacement announcer before the old announcer had fully exited the holding
bridge.

Also replaced the flexible trailing bridge_id storage in the shared worker
thread data with an optional bridge_id pointer, since recording paths use the
same structure without a bridge id.

Fixes: asterisk#1861
@pekkaar
Copy link
Copy Markdown
Contributor Author

pekkaar commented Apr 17, 2026

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

@github-actions
Copy link
Copy Markdown

Workflow Check completed successfully

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.

[bug]: Possible heap corruption in audiohook/translate write path during bridged media

1 participant