mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Finalize ast_channel opaquification
Review: https://reviewboard.asterisk.org/r/1786/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358907 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -121,12 +121,12 @@ static int bridge_call(struct ast_channel *ast, const char *dest, int timeout)
|
||||
struct bridge_pvt *p = ast_channel_tech_pvt(ast);
|
||||
|
||||
/* If no bridge has been provided on the input channel, bail out */
|
||||
if (!ast->bridge) {
|
||||
if (!ast_channel_internal_bridge(ast)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Impart the output channel upon the given bridge of the input channel */
|
||||
ast_bridge_impart(p->input->bridge, p->output, NULL, NULL, 0);
|
||||
ast_bridge_impart(ast_channel_internal_bridge(p->input), p->output, NULL, NULL, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user