summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorMatt O'Gorman <mogorman@digium.com>2006-01-14 00:32:30 +0000
committerMatt O'Gorman <mogorman@digium.com>2006-01-14 00:32:30 +0000
commit06f2040e6f27bd61dcc40546fc598c7fa5c89a7e (patch)
treed303f4edafaacbe64038bf0a496d804bfbce0e52 /include/asterisk
parent58bac05e592cfb246f2cac3d685af48cded9b375 (diff)
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
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/monitor.h16
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 */