diff options
author | Jonathan Rose <jrose@digium.com> | 2015-12-01 16:11:07 -0600 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2015-12-02 12:57:04 -0600 |
commit | eadad24b595c3b6e5f0472f9936e7e37259308b5 (patch) | |
tree | c2fc7fa630efe2337121f45ff0ace6371800e29d /include/asterisk/bridge.h | |
parent | 3fcf160faeb036529c575b66d73e7978f475fb28 (diff) |
Unset BRIDGEPEER when leaving a bridge
Currently if a channel is transferred out of a bridge, the BRIDGEPEER
variable (also BRIDGEPVTCALLID) remain set even once the channel is
out of the bridge. This patch removes these variables when leaving
the bridge.
ASTERISK-25600 #close
Reported by: Mark Michelson
Change-Id: I753ead2fffbfc65427ed4e9244c7066610e546da
Diffstat (limited to 'include/asterisk/bridge.h')
-rw-r--r-- | include/asterisk/bridge.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asterisk/bridge.h b/include/asterisk/bridge.h index fc3726270..30ac0953c 100644 --- a/include/asterisk/bridge.h +++ b/include/asterisk/bridge.h @@ -746,6 +746,18 @@ int ast_bridge_suspend(struct ast_bridge *bridge, struct ast_channel *chan); */ int ast_bridge_unsuspend(struct ast_bridge *bridge, struct ast_channel *chan); +/*! + * \brief Sets BRIDGECHANNEL and BRIDGEPVTCALLID for a channel + * + * \pre chan must be locked before calling + * + * \param name channel name of the bridged peer + * \param pvtid Private CallID of the bridged peer + * + * \return nothing + */ +void ast_bridge_vars_set(struct ast_channel *chan, const char *name, const char *pvtid); + struct ast_unreal_pvt; /*! |