mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Stasis: Allow internal channels directly into bridges
The patch to catch channels being shoehorned into Stasis() via external mechanisms also happens to catch Announcer and Recorder channels because they aren't known to be stasis-controlled channels in the usual sense. This marks those channels as Stasis()-internal channels and allows them directly into bridges. Review: https://reviewboard.asterisk.org/r/3903/ ........ Merged revisions 420795 from http://svn.asterisk.org/svn/asterisk/branches/12 ........ Merged revisions 420796 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@420797 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -117,7 +117,7 @@ static int bridge_stasis_push(struct ast_bridge *self, struct ast_bridge_channel
|
||||
{
|
||||
struct stasis_app_control *control = stasis_app_control_find_by_channel(bridge_channel->chan);
|
||||
|
||||
if (!control) {
|
||||
if (!control && !stasis_app_channel_is_internal(bridge_channel->chan)) {
|
||||
/* channel not in Stasis(), get it there */
|
||||
/* Attach after-bridge callback and pass ownership of swap_app to it */
|
||||
if (ast_bridge_set_after_callback(bridge_channel->chan,
|
||||
|
Reference in New Issue
Block a user