Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

monitor.h

Go to the documentation of this file.
00001 #ifndef _MONITOR_H
00002 #define _MONITOR_H
00003 
00004 #include <stdio.h>
00005 
00006 #include <asterisk/channel.h>
00007 
00008 struct ast_channel;
00009 
00010 //! Responsible for channel monitoring data
00011 struct ast_channel_monitor
00012 {
00013    struct ast_filestream *read_stream;
00014    struct ast_filestream *write_stream;
00015    char read_filename[ FILENAME_MAX ];
00016    char write_filename[ FILENAME_MAX ];
00017    char filename_base[ FILENAME_MAX ];
00018    int filename_changed;
00019    char *format;
00020    int joinfiles;
00021    int (*stop)( struct ast_channel *chan, int need_lock);
00022 };
00023 
00024 /* Start monitoring a channel */
00025 int ast_monitor_start(  struct ast_channel *chan, const char *format_spec,
00026                   const char *fname_base, int need_lock );
00027 
00028 /* Stop monitoring a channel */
00029 int ast_monitor_stop( struct ast_channel *chan, int need_lock);
00030 
00031 /* Change monitoring filename of a channel */
00032 int ast_monitor_change_fname( struct ast_channel *chan,
00033                         const char *fname_base, int need_lock );
00034 
00035 void ast_monitor_setjoinfiles(struct ast_channel *chan, int turnon);
00036 
00037 #endif /* _MONITOR_H */

Generated on Sun Apr 18 23:33:52 2004 for Asterisk by doxygen 1.3.6-20040222