diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/monitor.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/asterisk/monitor.h b/include/asterisk/monitor.h index ff482f847..d55a761ec 100644 --- a/include/asterisk/monitor.h +++ b/include/asterisk/monitor.h @@ -27,6 +27,11 @@ struct ast_channel; +enum AST_MONITORING_STATE { + AST_MONITOR_RUNNING, + AST_MONITOR_PAUSED +}; + /*! Responsible for channel monitoring data */ struct ast_channel_monitor { struct ast_filestream *read_stream; @@ -37,6 +42,7 @@ struct ast_channel_monitor { int filename_changed; char *format; int joinfiles; + enum AST_MONITORING_STATE state; int (*stop)(struct ast_channel *chan, int need_lock); }; @@ -53,4 +59,14 @@ int ast_monitor_change_fname(struct ast_channel *chan, void ast_monitor_setjoinfiles(struct ast_channel *chan, int turnon); +/* Pause monitoring of a channel */ +int ast_monitor_pause(struct ast_channel *chan); + +/* Unpause monitoring of a channel */ +int ast_monitor_unpause(struct ast_channel *chan); + +int pause_monitor_exec(struct ast_channel *chan, void *data); + +int unpause_monitor_exec(struct ast_channel *chan, void *data); + #endif /* _ASTERISK_MONITOR_H */ |