diff options
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/channel.h | 20 | ||||
-rw-r--r-- | include/asterisk/monitor.h | 20 | ||||
-rw-r--r-- | include/asterisk/sip_api.h | 1 |
3 files changed, 20 insertions, 21 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index a12099882..fe669efd1 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -3905,6 +3905,26 @@ enum ama_flags ast_channel_string2amaflag(const char *flag); */ const char *ast_channel_amaflags2string(enum ama_flags flags); +enum AST_MONITORING_STATE { + AST_MONITOR_RUNNING, + AST_MONITOR_PAUSED +}; + +/*! Responsible for channel monitoring data */ +struct ast_channel_monitor { + struct ast_filestream *read_stream; + struct ast_filestream *write_stream; + char read_filename[FILENAME_MAX]; + char write_filename[FILENAME_MAX]; + char filename_base[FILENAME_MAX]; + char beep_id[64]; + int filename_changed; + char *format; + int joinfiles; + enum AST_MONITORING_STATE state; + int (*stop)(struct ast_channel *chan, int need_lock); +}; + /* ACCESSOR FUNTIONS */ /*! \brief Set the channel name */ void ast_channel_name_set(struct ast_channel *chan, const char *name); diff --git a/include/asterisk/monitor.h b/include/asterisk/monitor.h index 6030221a2..377cb62f6 100644 --- a/include/asterisk/monitor.h +++ b/include/asterisk/monitor.h @@ -26,31 +26,11 @@ #include "asterisk/channel.h" #include "asterisk/optional_api.h" -enum AST_MONITORING_STATE { - AST_MONITOR_RUNNING, - AST_MONITOR_PAUSED -}; - /* Streams recording control */ #define X_REC_IN 1 #define X_REC_OUT 2 #define X_JOIN 4 -/*! Responsible for channel monitoring data */ -struct ast_channel_monitor { - struct ast_filestream *read_stream; - struct ast_filestream *write_stream; - char read_filename[FILENAME_MAX]; - char write_filename[FILENAME_MAX]; - char filename_base[FILENAME_MAX]; - char beep_id[64]; - int filename_changed; - char *format; - int joinfiles; - enum AST_MONITORING_STATE state; - int (*stop)(struct ast_channel *chan, int need_lock); -}; - /* Start monitoring a channel */ AST_OPTIONAL_API(int, ast_monitor_start, (struct ast_channel *chan, const char *format_spec, diff --git a/include/asterisk/sip_api.h b/include/asterisk/sip_api.h index 2b8a3f2a1..fddac16e0 100644 --- a/include/asterisk/sip_api.h +++ b/include/asterisk/sip_api.h @@ -23,7 +23,6 @@ extern "C" { #endif -#include "asterisk/optional_api.h" #include "asterisk/config.h" #define AST_SIP_API_VERSION 1 |