diff options
author | Richard Mudgett <rmudgett@digium.com> | 2013-07-19 22:47:10 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2013-07-19 22:47:10 +0000 |
commit | 2838683742cd21a452298801e41e85cd890add06 (patch) | |
tree | 322a99f305585589f457e272e4f4b1b9843bb4a1 /include/asterisk/channel.h | |
parent | a6329a3acf0109d5b364476d212cd0aee4c20dfb (diff) |
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
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r-- | include/asterisk/channel.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index b2b6e6035..d8db4705d 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -4336,6 +4336,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 * |