diff options
author | Joshua Colp <jcolp@digium.com> | 2013-11-23 12:40:46 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2013-11-23 12:40:46 +0000 |
commit | eda712686268daaaf02754fbb0903cf4f973da87 (patch) | |
tree | 4c5b2693ddb1c30c24abdab8f1563997cc89023c /res/ari/resource_channels.h | |
parent | a368df42d47d24a981097ac4c4f71b904be55346 (diff) |
ari: Add Snoop operation for spying/whispering on channels.
The Snoop operation can be invoked on a channel to spy or
whisper on it. It returns a channel that any channel operations
can then be invoked on (such as record to do monitoring).
(closes issue ASTERISK-22780)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/3003/
........
Merged revisions 403117 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/ari/resource_channels.h')
-rw-r--r-- | res/ari/resource_channels.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/res/ari/resource_channels.h b/res/ari/resource_channels.h index a9ac72e39..49ab8eb34 100644 --- a/res/ari/resource_channels.h +++ b/res/ari/resource_channels.h @@ -386,5 +386,28 @@ struct ast_ari_channels_set_channel_var_args { * \param[out] response HTTP response */ void ast_ari_channels_set_channel_var(struct ast_variable *headers, struct ast_ari_channels_set_channel_var_args *args, struct ast_ari_response *response); +/*! \brief Argument struct for ast_ari_channels_snoop_channel() */ +struct ast_ari_channels_snoop_channel_args { + /*! \brief Channel's id */ + const char *channel_id; + /*! \brief Direction of audio to spy on */ + const char *spy; + /*! \brief Direction of audio to whisper into */ + const char *whisper; + /*! \brief Application the snooping channel is placed into */ + const char *app; + /*! \brief The application arguments to pass to the Stasis application */ + const char *app_args; +}; +/*! + * \brief Start snooping. + * + * Snoop (spy/whisper) on a specific channel. + * + * \param headers HTTP headers + * \param args Swagger parameters + * \param[out] response HTTP response + */ +void ast_ari_channels_snoop_channel(struct ast_variable *headers, struct ast_ari_channels_snoop_channel_args *args, struct ast_ari_response *response); #endif /* _ASTERISK_RESOURCE_CHANNELS_H */ |