|
Asterisk - The Open Source Telephony Project GIT-master-9647a4f
|
Playback control resources. More...
#include "asterisk.h"#include "asterisk/app.h"#include "asterisk/module.h"#include "asterisk/stasis_app.h"#include "ari/resource_playbacks.h"
Go to the source code of this file.
Macros | |
| #define | MAX_VALS 128 |
Functions | |
| static void | __reg_module (void) |
| static void | __unreg_module (void) |
| static void | ast_ari_playbacks_control_cb (struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response) |
| Parameter parsing callback for /playbacks/{playbackId}/control. | |
| int | ast_ari_playbacks_control_parse_body (struct ast_json *body, struct ast_ari_playbacks_control_args *args) |
| Body parsing function for /playbacks/{playbackId}/control. | |
| static void | ast_ari_playbacks_get_cb (struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response) |
| Parameter parsing callback for /playbacks/{playbackId}. | |
| static void | ast_ari_playbacks_stop_cb (struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response) |
| Parameter parsing callback for /playbacks/{playbackId}. | |
| struct ast_module * | AST_MODULE_SELF_SYM (void) |
| static int | load_module (void) |
| static int | unload_module (void) |
Variables | |
| static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "RESTful API module - Playback control resources" , .key = ASTERISK_GPL_KEY , .buildopt_sum = AST_BUILDOPT_SUM, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .requires = "res_ari,res_ari_model,res_stasis,res_stasis_playback", } |
| static const struct ast_module_info * | ast_module_info = &__mod_info |
| static struct stasis_rest_handlers | playbacks |
| REST handler for /api-docs/playbacks.json. | |
| static struct stasis_rest_handlers | playbacks_playbackId |
| REST handler for /api-docs/playbacks.json. | |
| static struct stasis_rest_handlers | playbacks_playbackId_control |
| REST handler for /api-docs/playbacks.json. | |
Playback control resources.
Definition in file res_ari_playbacks.c.
| #define MAX_VALS 128 |
Definition at line 52 of file res_ari_playbacks.c.
|
static |
Definition at line 314 of file res_ari_playbacks.c.
|
static |
Definition at line 314 of file res_ari_playbacks.c.
|
static |
Parameter parsing callback for /playbacks/{playbackId}/control.
| ser | TCP/TLS session object | |
| get_params | GET parameters in the HTTP request. | |
| path_vars | Path variables extracted from the request. | |
| headers | HTTP headers. | |
| body | ||
| [out] | response | Response to the HTTP request. |
Definition at line 196 of file res_ari_playbacks.c.
References args, ast_ari_playbacks_control(), ast_ari_playbacks_control_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, LOG_ERROR, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_response::response_code, and ast_variable::value.
| int ast_ari_playbacks_control_parse_body | ( | struct ast_json * | body, |
| struct ast_ari_playbacks_control_args * | args | ||
| ) |
Body parsing function for /playbacks/{playbackId}/control.
| body | The JSON body from which to parse parameters. | |
| [out] | args | The args structure to parse into. |
| zero | on success |
| non-zero | on failure |
Definition at line 174 of file res_ari_playbacks.c.
References args, ast_json_object_get(), and ast_json_string_get().
Referenced by ast_ari_playbacks_control_cb().
|
static |
Parameter parsing callback for /playbacks/{playbackId}.
| ser | TCP/TLS session object | |
| get_params | GET parameters in the HTTP request. | |
| path_vars | Path variables extracted from the request. | |
| headers | HTTP headers. | |
| body | ||
| [out] | response | Response to the HTTP request. |
Definition at line 63 of file res_ari_playbacks.c.
References args, ast_ari_playbacks_get(), ast_ari_response_error(), ast_ari_validate_playback(), ast_log, LOG_ERROR, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_response::response_code, and ast_variable::value.
|
static |
Parameter parsing callback for /playbacks/{playbackId}.
| ser | TCP/TLS session object | |
| get_params | GET parameters in the HTTP request. | |
| path_vars | Path variables extracted from the request. | |
| headers | HTTP headers. | |
| body | ||
| [out] | response | Response to the HTTP request. |
Definition at line 123 of file res_ari_playbacks.c.
References args, ast_ari_playbacks_stop(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, LOG_ERROR, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_response::response_code, and ast_variable::value.
| struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 314 of file res_ari_playbacks.c.
|
static |
Definition at line 295 of file res_ari_playbacks.c.
References ast_ari_add_handler(), AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, playbacks, and unload_module().
|
static |
Definition at line 289 of file res_ari_playbacks.c.
References ast_ari_remove_handler(), and playbacks.
Referenced by load_module().
|
static |
Definition at line 314 of file res_ari_playbacks.c.
|
static |
Definition at line 314 of file res_ari_playbacks.c.
|
static |
REST handler for /api-docs/playbacks.json.
Definition at line 281 of file res_ari_playbacks.c.
Referenced by load_module(), and unload_module().
|
static |
REST handler for /api-docs/playbacks.json.
Definition at line 270 of file res_ari_playbacks.c.
|
static |
REST handler for /api-docs/playbacks.json.
Definition at line 261 of file res_ari_playbacks.c.