mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-08 14:17:02 +00:00
channel api: Create is_t38_active accessor functions.
ASTERISK-25582 Change-Id: I69451920b122de7ee18d15bb231c80ea7067a22b
This commit is contained in:
@@ -1615,6 +1615,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
|
||||
|
Reference in New Issue
Block a user