From 06f2040e6f27bd61dcc40546fc598c7fa5c89a7e Mon Sep 17 00:00:00 2001 From: Matt O'Gorman Date: Sat, 14 Jan 2006 00:32:30 +0000 Subject: added feature for pausing and unpausing the monitor app from manager and in the call through features.conf bug 5395 for the patch git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8070 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/monitor.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include') 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 */ -- cgit v1.2.3