diff options
author | Mark Michelson <mmichelson@digium.com> | 2013-08-02 14:05:07 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2013-08-02 14:05:07 +0000 |
commit | f8622e7c5cbdda91a5efad230a9e3af593378c7c (patch) | |
tree | ac2c4b5f2256fb55c84fb8915d82298d23c0e188 /main/channel_internal_api.c | |
parent | 57a8148ccd704f02f33c65d902b199f4205e5480 (diff) |
Get rid of ast_bridged_channel() and the bridged_channel field on ast_channels.
This commit is smaller than the initial review placed on review board. This is because
a change to allow for channel drivers to access parking functionality externally was
committed and invalidated quite a few of the changes initially made.
(closes issue ASTERISK-22039)
reported by Matt Jordan
Review: https://reviewboard.asterisk.org/r/2717
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/channel_internal_api.c')
-rw-r--r-- | main/channel_internal_api.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/main/channel_internal_api.c b/main/channel_internal_api.c index 35bcb187d..698783707 100644 --- a/main/channel_internal_api.c +++ b/main/channel_internal_api.c @@ -67,10 +67,6 @@ struct ast_channel { void *music_state; /*!< Music State*/ void *generatordata; /*!< Current generator data if there is any */ struct ast_generator *generator; /*!< Current active data generator */ -/* BUGBUG bridged_channel must be eliminated from ast_channel */ - struct ast_channel * bridged_channel; /*!< Who are we bridged to, if we're bridged. - * Who is proxying for us, if we are proxied (i.e. chan_agent). - * Do not access directly, use ast_bridged_channel(chan) */ struct ast_channel *masq; /*!< Channel that will masquerade as us */ struct ast_channel *masqr; /*!< Who we are masquerading as */ const char *blockproc; /*!< Procedure causing blocking */ @@ -290,7 +286,6 @@ static void channel_data_add_flags(struct ast_data *tree, int ast_channel_data_add_structure(struct ast_data *tree, struct ast_channel *chan, int add_bridged) { - struct ast_channel *bc; struct ast_data *data_bridged; struct ast_data *data_cdr; struct ast_data *data_flags; @@ -309,7 +304,7 @@ int ast_channel_data_add_structure(struct ast_data *tree, ast_data_add_structure(ast_channel, tree, chan); if (add_bridged) { - bc = ast_bridged_channel(chan); + RAII_VAR(struct ast_channel *, bc, ast_channel_bridge_peer(chan), ast_channel_cleanup); if (bc) { data_bridged = ast_data_add_node(tree, "bridged"); if (!data_bridged) { @@ -1304,15 +1299,6 @@ void ast_channel_internal_bridge_channel_set(struct ast_channel *chan, struct as chan->bridge_channel = value; } -struct ast_channel *ast_channel_internal_bridged_channel(const struct ast_channel *chan) -{ - return chan->bridged_channel; -} -void ast_channel_internal_bridged_channel_set(struct ast_channel *chan, struct ast_channel *value) -{ - chan->bridged_channel = value; -} - struct ast_flags *ast_channel_flags(struct ast_channel *chan) { return &chan->flags; |