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
This commit is contained in:
Mark Michelson
2013-08-02 14:05:07 +00:00
parent 57a8148ccd
commit f8622e7c5c
13 changed files with 77 additions and 105 deletions

View File

@@ -2329,26 +2329,6 @@ int ast_transfer(struct ast_channel *chan, char *dest);
*/
void ast_do_masquerade(struct ast_channel *chan);
/*!
* \brief Find bridged channel
*
* \note This function does _not_ return a reference to the bridged channel.
* The reason for this is mostly historical. It _should_ return a reference,
* but it will take a lot of work to make the code base account for that.
* So, for now, the old rules still apply for how to handle this function.
* If this function is being used from the channel thread that owns the channel,
* then a reference is already held, and channel locking is not required to
* guarantee that the channel will stay around. If this function is used
* outside of the associated channel thread, the channel parameter 'chan'
* MUST be locked before calling this function. Also, 'chan' must remain locked
* for the entire time that the result of this function is being used.
*
* \param chan Current channel
*
* \return A pointer to the bridged channel
*/
struct ast_channel *ast_bridged_channel(struct ast_channel *chan);
/*!
* \brief Inherits channel variable from parent to child channel
* \param parent Parent channel