23 #ifndef _ASTERISK_MONITOR_H
24 #define _ASTERISK_MONITOR_H
56 const char *fname_base,
int need_lock,
int stream_action),
char read_filename[FILENAME_MAX]
Main Channel structure associated with a channel.
Optional API function macros.
char filename_base[FILENAME_MAX]
#define AST_OPTIONAL_API(result, name, proto, stub)
Define an optional API function.
int(* stop)(struct ast_channel *chan, int need_lock)
void ast_monitor_setjoinfiles(struct ast_channel *chan, int turnon)
char write_filename[FILENAME_MAX]
General Asterisk PBX channel definitions.
int ast_monitor_unpause(struct ast_channel *chan)
Unpause monitoring of channel.
int ast_monitor_stop(struct ast_channel *chan, int need_lock)
Stop monitoring channel.
int ast_monitor_start(struct ast_channel *chan, const char *format_spec, const char *fname_base, int need_lock, int stream_action)
Start monitoring a channel.
int ast_monitor_change_fname(struct ast_channel *chan, const char *fname_base, int need_lock)
Change monitored filename of channel.
struct ast_filestream * read_stream
int ast_monitor_pause(struct ast_channel *chan)
Pause monitoring of channel.
struct ast_filestream * write_stream
This structure is allocated by file.c in one chunk, together with buf_size and desc_size bytes of mem...
enum AST_MONITORING_STATE state