Skip to content
Snippets Groups Projects
Commit 0b939672 authored by Jenkins2's avatar Jenkins2 Committed by Gerrit Code Review
Browse files

Merge "bridge: Stop music on hold on adding an arbitrary channel to a bridge"

parents a711ac25 3b99a033
No related branches found
No related tags found
No related merge requests found
...@@ -2511,6 +2511,8 @@ int ast_bridge_add_channel(struct ast_bridge *bridge, struct ast_channel *chan, ...@@ -2511,6 +2511,8 @@ int ast_bridge_add_channel(struct ast_bridge *bridge, struct ast_channel *chan,
RAII_VAR(struct ast_bridge *, chan_bridge, NULL, ao2_cleanup); RAII_VAR(struct ast_bridge *, chan_bridge, NULL, ao2_cleanup);
RAII_VAR(struct ast_channel *, yanked_chan, NULL, ao2_cleanup); RAII_VAR(struct ast_channel *, yanked_chan, NULL, ao2_cleanup);
ast_moh_stop(chan);
ast_channel_lock(chan); ast_channel_lock(chan);
chan_bridge = ast_channel_get_bridge(chan); chan_bridge = ast_channel_get_bridge(chan);
ast_channel_unlock(chan); ast_channel_unlock(chan);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment