aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/monitor.h
diff options
context:
space:
mode:
authormogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-14 00:32:30 +0000
committermogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-14 00:32:30 +0000
commit61820f0d594aca5a06552086ffbcbcaa66db8ddf (patch)
treed303f4edafaacbe64038bf0a496d804bfbce0e52 /include/asterisk/monitor.h
parent2de7198c70efb87d9dcc8955e381e8056d0e39d9 (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: http://svn.digium.com/svn/asterisk/trunk@8070 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/monitor.h')
-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 */