diff options
author | Jonathan Rose <jrose@digium.com> | 2013-12-13 20:13:22 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2013-12-13 20:13:22 +0000 |
commit | 63b2c28c4b5410d3876f175c8ec0d24c121c7b36 (patch) | |
tree | 60effb4983c98c1763a67438b3434995862f1eb8 /include/asterisk/bridge.h | |
parent | 84e1790beb1c28f762fa991f99d4a41ede2c3935 (diff) |
Transfers: Make Asterisk set ATTENDEDTRANSFER/BLINDTRANSFER more reliably
There were still a few cases in which ATTENDEDTRANSFER and BLINDTRANSFER
wouldn't be set on channels involved with blind and attended transfers.
This would happen with features that were initialized by channel driver
specific mechanisms in multiparty calls. This patch resolves those cases
while attempted to keep the behavior for setting those variables as
consistent as possible.
(closes issue AFS-24)
Review: https://reviewboard.asterisk.org/r/3040/
........
Merged revisions 403781 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/bridge.h')
-rw-r--r-- | include/asterisk/bridge.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asterisk/bridge.h b/include/asterisk/bridge.h index 53673c7f7..fdb3803ad 100644 --- a/include/asterisk/bridge.h +++ b/include/asterisk/bridge.h @@ -955,6 +955,19 @@ enum ast_transfer_result ast_bridge_transfer_attended(struct ast_channel *to_tra struct ast_channel *to_transfer_target); /*! + * \brief Set the relevant transfer variables for a single channel + * + * Sets either the ATTENDEDTRANSFER or BLINDTRANSFER variable for a channel while clearing + * the opposite. + * + * \param chan Channel the variable is being set for + * \param value Value the variable is being set to + * \param is_attended false set BLINDTRANSFER and unset ATTENDEDTRANSFER + * true set ATTENDEDTRANSFER and unset BLINDTRANSFER + */ +void ast_bridge_set_transfer_variables(struct ast_channel *chan, const char *value, int is_attended); + +/*! * \brief Get a container of all channels in the bridge * \since 12.0.0 * |