Merge "bridge_softmix: clear hold when joining a softmix bridge" into 16

This commit is contained in:
George Joseph 2019-11-18 11:49:10 -06:00 committed by Gerrit Code Review
commit 9f9b3d8af0
1 changed files with 7 additions and 0 deletions

View File

@ -726,6 +726,13 @@ static int softmix_bridge_join(struct ast_bridge *bridge, struct ast_bridge_chan
sfu_topologies_on_join(bridge, bridge_channel);
}
/* Complete any active hold before entering, or transitioning to softmix. */
if (ast_channel_hold_state(bridge_channel->chan) == AST_CONTROL_HOLD) {
ast_debug(1, "Channel %s simulating UNHOLD for bridge softmix join.\n",
ast_channel_name(bridge_channel->chan));
ast_indicate(bridge_channel->chan, AST_CONTROL_UNHOLD);
}
softmix_poke_thread(softmix_data);
return 0;
}