diff options
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r-- | include/asterisk/channel.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 384c22d5f..14bd32c07 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -1596,6 +1596,42 @@ void ast_channel_set_unbridged(struct ast_channel *chan, int value); void ast_channel_set_unbridged_nolock(struct ast_channel *chan, int value); /*! + * \brief This function will check if T.38 is active on the channel. + * + * \param chan Channel on which to check the unbridge_eval flag + * + * \return Returns 0 if the flag is down or 1 if the flag is up. + */ +int ast_channel_is_t38_active(struct ast_channel *chan); + +/*! + * \brief ast_channel_is_t38_active variant. Use this if the channel + * is already locked prior to calling. + * + * \param chan Channel on which to check the is_t38_active flag + * + * \return Returns 0 if the flag is down or 1 if the flag is up. + */ +int ast_channel_is_t38_active_nolock(struct ast_channel *chan); + +/*! + * \brief Sets the is_t38_active flag + * + * \param chan Which channel is having its is_t38_active value set + * \param is_t38_active Non-zero if T.38 is active + */ +void ast_channel_set_is_t38_active(struct ast_channel *chan, int is_t38_active); + +/*! + * \brief Variant of ast_channel_set_is_t38_active. Use this if the channel + * is already locked prior to calling. + * + * \param chan Which channel is having its is_t38_active value set + * \param is_t38_active Non-zero if T.38 is active + */ +void ast_channel_set_is_t38_active_nolock(struct ast_channel *chan, int is_t38_active); + +/*! * \brief Lock the given channel, then request softhangup on the channel with the given causecode * \param chan channel on which to hang up * \param causecode cause code to use (Zero if don't use cause code) |