]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_stasis/resource_bridges: Split bridge playback control and wrapper cleanup
authorPeter Krall <pekkaar@gmail.com>
Fri, 17 Apr 2026 12:35:31 +0000 (14:35 +0200)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 7 May 2026 18:55:33 +0000 (18:55 +0000)
commit176ecdad3cc97437d552d180936faf54c8f2b432
tree89afb7612a06499313a0a4ff7482f40e7574e9d7
parentd94025d5df507f4181ea7b7ee6aad194cbba28fe
res_stasis/resource_bridges: Split bridge playback control and wrapper 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: #1861
include/asterisk/stasis_app.h
res/ari/resource_bridges.c
res/res_stasis.c