Extract a repeated test into ast_channel_has_audio_frame_or_monitor().

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2013-07-19 22:47:10 +00:00
parent a6329a3acf
commit 2838683742
4 changed files with 21 additions and 17 deletions

View File

@@ -4335,6 +4335,16 @@ int ast_channel_forward_endpoint(struct ast_channel *chan, struct ast_endpoint *
*/
const char *ast_channel_oldest_linkedid(const char *a, const char *b);
/*!
* \brief Check if the channel has active audiohooks, active framehooks, or a monitor.
* \since 12.0.0
*
* \param chan The channel to check.
*
* \retval non-zero if channel has active audiohooks, framehooks, or monitor.
*/
int ast_channel_has_audio_frame_or_monitor(struct ast_channel *chan);
/*!
* \brief Removes the trailing identifiers from a channel name string
* \since 12.0.0