From 0e296563d784b08b83a1e63c9068b5a6fc6135ef Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Fri, 19 Feb 2016 16:01:17 -0600 Subject: channel api: Create is_t38_active accessor functions. ASTERISK-25582 Change-Id: I69451920b122de7ee18d15bb231c80ea7067a22b --- include/asterisk/channel.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'include/asterisk/channel.h') 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 @@ -1595,6 +1595,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 -- cgit v1.2.3