diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-30 06:07:04 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-30 06:07:04 +0000 |
commit | 60636c259914d27a04b43c8bc26dece1871d876a (patch) | |
tree | 57c1cb7f263e43e28f5b083076ff222662216773 /include | |
parent | a9a990c34439999f57a0993ddf1b81c8501bae91 (diff) |
Issue #5374 - Enable internal timing of generators (cmantunes)
Thanks everyone involved for hard work, testing and testing!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16473 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/channel.h | 10 | ||||
-rw-r--r-- | include/asterisk/options.h | 6 |
2 files changed, 13 insertions, 3 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 35fe0c020..9cdc280ac 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -1124,6 +1124,16 @@ struct ast_silence_generator *ast_channel_start_silence_generator(struct ast_cha */ void ast_channel_stop_silence_generator(struct ast_channel *chan, struct ast_silence_generator *state); +/*! + \brief Check if the channel can run in internal timing mode. + \param chan The channel to check + \return boolean + + This function will return 1 if internal timing is enabled and the timing + device is available. + */ +int ast_internal_timing_enabled(struct ast_channel *chan); + /* Misc. functions below */ /* if fd is a valid descriptor, set *pfd with the descriptor diff --git a/include/asterisk/options.h b/include/asterisk/options.h index 03470d217..ba8b8b291 100644 --- a/include/asterisk/options.h +++ b/include/asterisk/options.h @@ -101,10 +101,10 @@ enum ast_option_flags { extern struct ast_flags ast_options; extern int option_verbose; -extern int option_debug; -extern int option_maxcalls; +extern int option_debug; /*!< Debugging */ +extern int option_maxcalls; /*!< Maximum number of simultaneous channels */ extern double option_maxload; - +extern int option_internal_timing; /*!< Flag for internal timing (RTP) */ extern char defaultlanguage[]; extern time_t ast_startuptime; |