From f8622e7c5cbdda91a5efad230a9e3af593378c7c Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Fri, 2 Aug 2013 14:05:07 +0000 Subject: 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 --- include/asterisk/channel.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'include/asterisk/channel.h') diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 282230a02..cc60debfd 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -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 -- cgit v1.2.3