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
This commit is contained in:
Matt O'Gorman
2006-01-14 00:32:30 +00:00
parent 58bac05e59
commit 06f2040e6f
4 changed files with 166 additions and 33 deletions

View File

@@ -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 */