Asterisk - The Open Source Telephony Project  18.5.0
resource_recordings.h
Go to the documentation of this file.
1 /*
2  * Asterisk -- An open source telephony toolkit.
3  *
4  * Copyright (C) 2012 - 2013, Digium, Inc.
5  *
6  * David M. Lee, II <[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  *
21  * \brief Generated file - declares stubs to be implemented in
22  * res/ari/resource_recordings.c
23  *
24  * Recording resources
25  *
26  * \author David M. Lee, II <[email protected]>
27  */
28 
29 /*
30  * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
31  * !!!!! DO NOT EDIT !!!!!
32  * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
33  * This file is generated by a mustache template. Please see the original
34  * template in rest-api-templates/ari_resource.h.mustache
35  */
36 
37 #ifndef _ASTERISK_RESOURCE_RECORDINGS_H
38 #define _ASTERISK_RESOURCE_RECORDINGS_H
39 
40 #include "asterisk/ari.h"
41 
42 /*! Argument struct for ast_ari_recordings_list_stored() */
44 };
45 /*!
46  * \brief List recordings that are complete.
47  *
48  * \param headers HTTP headers
49  * \param args Swagger parameters
50  * \param[out] response HTTP response
51  */
53 /*! Argument struct for ast_ari_recordings_get_stored() */
55  /*! The name of the recording */
56  const char *recording_name;
57 };
58 /*!
59  * \brief Get a stored recording's details.
60  *
61  * \param headers HTTP headers
62  * \param args Swagger parameters
63  * \param[out] response HTTP response
64  */
65 void ast_ari_recordings_get_stored(struct ast_variable *headers, struct ast_ari_recordings_get_stored_args *args, struct ast_ari_response *response);
66 /*! Argument struct for ast_ari_recordings_delete_stored() */
68  /*! The name of the recording */
69  const char *recording_name;
70 };
71 /*!
72  * \brief Delete a stored recording.
73  *
74  * \param headers HTTP headers
75  * \param args Swagger parameters
76  * \param[out] response HTTP response
77  */
79 /*! Argument struct for ast_ari_recordings_get_stored_file() */
81  /*! The name of the recording */
82  const char *recording_name;
83 };
84 /*!
85  * \brief Get the file associated with the stored recording.
86  *
87  * \param ser TCP/TLS session instance
88  * \param headers HTTP headers
89  * \param args Swagger parameters
90  * \param[out] response HTTP response
91  */
93 /*! Argument struct for ast_ari_recordings_copy_stored() */
95  /*! The name of the recording to copy */
96  const char *recording_name;
97  /*! The destination name of the recording */
99 };
100 /*!
101  * \brief Body parsing function for /recordings/stored/{recordingName}/copy.
102  * \param body The JSON body from which to parse parameters.
103  * \param[out] args The args structure to parse into.
104  * \retval zero on success
105  * \retval non-zero on failure
106  */
108  struct ast_json *body,
110 
111 /*!
112  * \brief Copy a stored recording.
113  *
114  * \param headers HTTP headers
115  * \param args Swagger parameters
116  * \param[out] response HTTP response
117  */
118 void ast_ari_recordings_copy_stored(struct ast_variable *headers, struct ast_ari_recordings_copy_stored_args *args, struct ast_ari_response *response);
119 /*! Argument struct for ast_ari_recordings_get_live() */
121  /*! The name of the recording */
122  const char *recording_name;
123 };
124 /*!
125  * \brief List live recordings.
126  *
127  * \param headers HTTP headers
128  * \param args Swagger parameters
129  * \param[out] response HTTP response
130  */
131 void ast_ari_recordings_get_live(struct ast_variable *headers, struct ast_ari_recordings_get_live_args *args, struct ast_ari_response *response);
132 /*! Argument struct for ast_ari_recordings_cancel() */
134  /*! The name of the recording */
135  const char *recording_name;
136 };
137 /*!
138  * \brief Stop a live recording and discard it.
139  *
140  * \param headers HTTP headers
141  * \param args Swagger parameters
142  * \param[out] response HTTP response
143  */
144 void ast_ari_recordings_cancel(struct ast_variable *headers, struct ast_ari_recordings_cancel_args *args, struct ast_ari_response *response);
145 /*! Argument struct for ast_ari_recordings_stop() */
147  /*! The name of the recording */
148  const char *recording_name;
149 };
150 /*!
151  * \brief Stop a live recording and store it.
152  *
153  * \param headers HTTP headers
154  * \param args Swagger parameters
155  * \param[out] response HTTP response
156  */
157 void ast_ari_recordings_stop(struct ast_variable *headers, struct ast_ari_recordings_stop_args *args, struct ast_ari_response *response);
158 /*! Argument struct for ast_ari_recordings_pause() */
160  /*! The name of the recording */
161  const char *recording_name;
162 };
163 /*!
164  * \brief Pause a live recording.
165  *
166  * Pausing a recording suspends silence detection, which will be restarted when the recording is unpaused. Paused time is not included in the accounting for maxDurationSeconds.
167  *
168  * \param headers HTTP headers
169  * \param args Swagger parameters
170  * \param[out] response HTTP response
171  */
172 void ast_ari_recordings_pause(struct ast_variable *headers, struct ast_ari_recordings_pause_args *args, struct ast_ari_response *response);
173 /*! Argument struct for ast_ari_recordings_unpause() */
175  /*! The name of the recording */
176  const char *recording_name;
177 };
178 /*!
179  * \brief Unpause a live recording.
180  *
181  * \param headers HTTP headers
182  * \param args Swagger parameters
183  * \param[out] response HTTP response
184  */
185 void ast_ari_recordings_unpause(struct ast_variable *headers, struct ast_ari_recordings_unpause_args *args, struct ast_ari_response *response);
186 /*! Argument struct for ast_ari_recordings_mute() */
188  /*! The name of the recording */
189  const char *recording_name;
190 };
191 /*!
192  * \brief Mute a live recording.
193  *
194  * Muting a recording suspends silence detection, which will be restarted when the recording is unmuted.
195  *
196  * \param headers HTTP headers
197  * \param args Swagger parameters
198  * \param[out] response HTTP response
199  */
200 void ast_ari_recordings_mute(struct ast_variable *headers, struct ast_ari_recordings_mute_args *args, struct ast_ari_response *response);
201 /*! Argument struct for ast_ari_recordings_unmute() */
203  /*! The name of the recording */
204  const char *recording_name;
205 };
206 /*!
207  * \brief Unmute a live recording.
208  *
209  * \param headers HTTP headers
210  * \param args Swagger parameters
211  * \param[out] response HTTP response
212  */
213 void ast_ari_recordings_unmute(struct ast_variable *headers, struct ast_ari_recordings_unmute_args *args, struct ast_ari_response *response);
214 
215 #endif /* _ASTERISK_RESOURCE_RECORDINGS_H */
void ast_ari_recordings_unpause(struct ast_variable *headers, struct ast_ari_recordings_unpause_args *args, struct ast_ari_response *response)
Unpause a live recording.
void ast_ari_recordings_stop(struct ast_variable *headers, struct ast_ari_recordings_stop_args *args, struct ast_ari_response *response)
Stop a live recording and store it.
int ast_ari_recordings_copy_stored_parse_body(struct ast_json *body, struct ast_ari_recordings_copy_stored_args *args)
Body parsing function for /recordings/stored/{recordingName}/copy.
void ast_ari_recordings_get_live(struct ast_variable *headers, struct ast_ari_recordings_get_live_args *args, struct ast_ari_response *response)
List live recordings.
void ast_ari_recordings_cancel(struct ast_variable *headers, struct ast_ari_recordings_cancel_args *args, struct ast_ari_response *response)
Stop a live recording and discard it.
Structure for variables, used for configurations and for channel variables.
Asterisk RESTful API hooks.
const char * args
void ast_ari_recordings_pause(struct ast_variable *headers, struct ast_ari_recordings_pause_args *args, struct ast_ari_response *response)
Pause a live recording.
void ast_ari_recordings_unmute(struct ast_variable *headers, struct ast_ari_recordings_unmute_args *args, struct ast_ari_response *response)
Unmute a live recording.
describes a server instance
Definition: tcptls.h:149
void ast_ari_recordings_get_stored_file(struct ast_tcptls_session_instance *ser, struct ast_variable *headers, struct ast_ari_recordings_get_stored_file_args *args, struct ast_ari_response *response)
Get the file associated with the stored recording.
void ast_ari_recordings_delete_stored(struct ast_variable *headers, struct ast_ari_recordings_delete_stored_args *args, struct ast_ari_response *response)
Delete a stored recording.
void ast_ari_recordings_get_stored(struct ast_variable *headers, struct ast_ari_recordings_get_stored_args *args, struct ast_ari_response *response)
Get a stored recording&#39;s details.
void ast_ari_recordings_list_stored(struct ast_variable *headers, struct ast_ari_recordings_list_stored_args *args, struct ast_ari_response *response)
List recordings that are complete.
void ast_ari_recordings_copy_stored(struct ast_variable *headers, struct ast_ari_recordings_copy_stored_args *args, struct ast_ari_response *response)
Copy a stored recording.
void ast_ari_recordings_mute(struct ast_variable *headers, struct ast_ari_recordings_mute_args *args, struct ast_ari_response *response)
Mute a live recording.
Abstract JSON element (object, array, string, int, ...).