Merge "res_fax: Fix deadlock in ast_channel_get_t38_state()."

This commit is contained in:
Joshua Colp
2016-08-26 14:03:10 -05:00
committed by Gerrit Code Review
2 changed files with 31 additions and 7 deletions

View File

@@ -2549,7 +2549,11 @@ static inline int ast_fdisset(struct pollfd *pfds, int fd, int maximum, int *sta
return 0;
}
/*! \brief Retrieves the current T38 state of a channel */
/*!
* \brief Retrieves the current T38 state of a channel
*
* \note Absolutely _NO_ channel locks should be held before calling this function.
*/
static inline enum ast_t38_state ast_channel_get_t38_state(struct ast_channel *chan)
{
enum ast_t38_state state = T38_STATE_UNAVAILABLE;