Asterisk - The Open Source Telephony Project  18.5.0
monitor.h
Go to the documentation of this file.
1 /*
2  * Asterisk -- An open source telephony toolkit.
3  *
4  * Copyright (C) 1999 - 2005, Digium, Inc.
5  *
6  * Mark Spencer <[email protected]>
7  *
8  * See http://www.asterisk.org for more information about
9  * the Asterisk project. Please do not directly contact
10  * any of the maintainers of this project for assistance;
11  * the project provides a web site, mailing lists and IRC
12  * channels for your use.
13  *
14  * This program is free software, distributed under the terms of
15  * the GNU General Public License Version 2. See the LICENSE file
16  * at the top of the source tree.
17  */
18 
19 /*! \file
20  * \brief Channel monitoring
21  */
22 
23 #ifndef _ASTERISK_MONITOR_H
24 #define _ASTERISK_MONITOR_H
25 
26 #include "asterisk/channel.h"
27 #include "asterisk/optional_api.h"
28 
29 /* Streams recording control */
30 #define X_REC_IN 1
31 #define X_REC_OUT 2
32 #define X_JOIN 4
33 
34 /* Start monitoring a channel */
36  (struct ast_channel *chan, const char *format_spec,
37  const char *fname_base, int need_lock, int stream_action,
38  const char *beep_id),
39  { return -1; });
40 
41 /* Stop monitoring a channel */
43  (struct ast_channel *chan, int need_lock),
44  { return -1; });
45 
46 /* Change monitoring filename of a channel */
48  (struct ast_channel *chan, const char *fname_base,
49  int need_lock),
50  { return -1; });
51 
53  (struct ast_channel *chan, int turnon),
54  { return; });
55 
56 /* Pause monitoring of a channel */
58  (struct ast_channel *chan),
59  { return -1; });
60 
61 /* Unpause monitoring of a channel */
63  (struct ast_channel *chan),
64  { return -1; });
65 
66 #endif /* _ASTERISK_MONITOR_H */
Main Channel structure associated with a channel.
Optional API function macros.
#define AST_OPTIONAL_API(result, name, proto, stub)
Declare an optional API function.
Definition: optional_api.h:230
General Asterisk PBX channel definitions.
int AST_OPTIONAL_API_NAME() ast_monitor_start(struct ast_channel *chan, const char *format_spec, const char *fname_base, int need_lock, int stream_action, const char *beep_id)
Start monitoring a channel.
Definition: res_monitor.c:305
int AST_OPTIONAL_API_NAME() ast_monitor_change_fname(struct ast_channel *chan, const char *fname_base, int need_lock)
Change monitored filename of channel.
Definition: res_monitor.c:590
int AST_OPTIONAL_API_NAME() ast_monitor_unpause(struct ast_channel *chan)
Unpause monitoring of channel.
Definition: res_monitor.c:565
int AST_OPTIONAL_API_NAME() ast_monitor_stop(struct ast_channel *chan, int need_lock)
Stop monitoring channel.
Definition: res_monitor.c:461
void AST_OPTIONAL_API_NAME() ast_monitor_setjoinfiles(struct ast_channel *chan, int turnon)
Definition: res_monitor.c:926
int AST_OPTIONAL_API_NAME() ast_monitor_pause(struct ast_channel *chan)
Pause monitoring of channel.
Definition: res_monitor.c:559