mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 16:20:37 +00:00
Fix incorrect calls to ast_bridge_impart().
There was a misunderstanding about ast_bridge_impart()'s handling of the imparted channel's reference. The channel reference is passed by the caller unless ast_bridge_impart() returns an error. * Fixed a memory leak in conf_announce_channel_push() if the impart failed. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392934 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -654,7 +654,7 @@ enum ast_bridge_channel_state ast_bridge_join(struct ast_bridge *bridge,
|
||||
* \brief Impart (non-blocking) a channel onto a bridge
|
||||
*
|
||||
* \param bridge Bridge to impart on
|
||||
* \param chan Channel to impart
|
||||
* \param chan Channel to impart (The channel reference is stolen if impart successful.)
|
||||
* \param swap Channel to swap out if swapping. NULL if not swapping.
|
||||
* \param features Bridge features structure.
|
||||
* \param independent TRUE if caller does not want to reclaim the channel using ast_bridge_depart().
|
||||
|
||||
Reference in New Issue
Block a user