aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-02 18:08:33 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-02 18:08:33 +0000
commit5026d7908d2acffbd832ec64b3e9d2c4af334d1b (patch)
tree9538c2c2dbfe77b8ff7a961e42671ced2391a0d6 /include
parent05f53b2eb912b3399976d7c91c0a1d33227e473f (diff)
add some doxygen docs
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6945 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/channel.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index ce5975dbe..3d8f47d34 100755
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -1101,8 +1101,36 @@ struct ast_frame *ast_channel_spy_read_frame(struct ast_channel_spy *spy, unsign
*/
void ast_channel_spy_trigger_wait(struct ast_channel_spy *spy);
+/*!
+ \brief An opaque 'object' structure use by silence generators on channels.
+ */
struct ast_silence_generator;
+
+/*!
+ \brief Starts a silence generator on the given channel.
+ \param chan The channel to generate silence on
+ \return An ast_silence_generator pointer, or NULL if an error occurs
+
+ This function will cause SLINEAR silence to be generated on the supplied
+ channel until it is disabled; if the channel cannot be put into SLINEAR
+ mode then the function will fail.
+
+ The pointer returned by this function must be preserved and passed to
+ ast_channel_stop_silence_generator when you wish to stop the silence
+ generation.
+ */
struct ast_silence_generator *ast_channel_start_silence_generator(struct ast_channel *chan);
+
+/*!
+ \brief Stops a previously-started silence generator on the given channel.
+ \param chan The channel to operate on
+ \param state The ast_silence_generator pointer return by a previous call to
+ ast_channel_start_silence_generator.
+ \return nothing
+
+ This function will stop the operating silence generator and return the channel
+ to its previous write format.
+ */
void ast_channel_stop_silence_generator(struct ast_channel *chan, struct ast_silence_generator *state);
/* Misc. functions below */