Asterisk - The Open Source Telephony Project
18.5.0
|
Bridge resources. More...
#include "asterisk.h"
#include "asterisk/app.h"
#include "asterisk/module.h"
#include "asterisk/stasis_app.h"
#include "ari/resource_bridges.h"
#include "ari/ari_model_validators.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_bridges_add_channel_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 /bridges/{bridgeId}/addChannel. More... | |
int | ast_ari_bridges_add_channel_parse_body (struct ast_json *body, struct ast_ari_bridges_add_channel_args *args) |
Body parsing function for /bridges/{bridgeId}/addChannel. More... | |
static void | ast_ari_bridges_clear_video_source_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 /bridges/{bridgeId}/videoSource. More... | |
static void | ast_ari_bridges_create_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 /bridges. More... | |
int | ast_ari_bridges_create_parse_body (struct ast_json *body, struct ast_ari_bridges_create_args *args) |
Body parsing function for /bridges. More... | |
static void | ast_ari_bridges_create_with_id_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 /bridges/{bridgeId}. More... | |
int | ast_ari_bridges_create_with_id_parse_body (struct ast_json *body, struct ast_ari_bridges_create_with_id_args *args) |
Body parsing function for /bridges/{bridgeId}. More... | |
static void | ast_ari_bridges_destroy_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 /bridges/{bridgeId}. More... | |
static void | ast_ari_bridges_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 /bridges/{bridgeId}. More... | |
static void | ast_ari_bridges_list_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 /bridges. More... | |
static void | ast_ari_bridges_play_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 /bridges/{bridgeId}/play. More... | |
int | ast_ari_bridges_play_parse_body (struct ast_json *body, struct ast_ari_bridges_play_args *args) |
Body parsing function for /bridges/{bridgeId}/play. More... | |
static void | ast_ari_bridges_play_with_id_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 /bridges/{bridgeId}/play/{playbackId}. More... | |
int | ast_ari_bridges_play_with_id_parse_body (struct ast_json *body, struct ast_ari_bridges_play_with_id_args *args) |
Body parsing function for /bridges/{bridgeId}/play/{playbackId}. More... | |
static void | ast_ari_bridges_record_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 /bridges/{bridgeId}/record. More... | |
int | ast_ari_bridges_record_parse_body (struct ast_json *body, struct ast_ari_bridges_record_args *args) |
Body parsing function for /bridges/{bridgeId}/record. More... | |
static void | ast_ari_bridges_remove_channel_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 /bridges/{bridgeId}/removeChannel. More... | |
int | ast_ari_bridges_remove_channel_parse_body (struct ast_json *body, struct ast_ari_bridges_remove_channel_args *args) |
Body parsing function for /bridges/{bridgeId}/removeChannel. More... | |
static void | ast_ari_bridges_set_video_source_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 /bridges/{bridgeId}/videoSource/{channelId}. More... | |
static void | ast_ari_bridges_start_moh_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 /bridges/{bridgeId}/moh. More... | |
int | ast_ari_bridges_start_moh_parse_body (struct ast_json *body, struct ast_ari_bridges_start_moh_args *args) |
Body parsing function for /bridges/{bridgeId}/moh. More... | |
static void | ast_ari_bridges_stop_moh_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 /bridges/{bridgeId}/moh. More... | |
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 - Bridge resources" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "30ef0c93b36035ec78c9cfd712d36d9b" , .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .requires = "res_ari,res_ari_model,res_stasis,res_stasis_recording,res_stasis_playback", } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static struct stasis_rest_handlers | bridges |
REST handler for /api-docs/bridges.json. More... | |
static struct stasis_rest_handlers | bridges_bridgeId |
REST handler for /api-docs/bridges.json. More... | |
static struct stasis_rest_handlers | bridges_bridgeId_addChannel |
REST handler for /api-docs/bridges.json. More... | |
static struct stasis_rest_handlers | bridges_bridgeId_moh |
REST handler for /api-docs/bridges.json. More... | |
static struct stasis_rest_handlers | bridges_bridgeId_play |
REST handler for /api-docs/bridges.json. More... | |
static struct stasis_rest_handlers | bridges_bridgeId_play_playbackId |
REST handler for /api-docs/bridges.json. More... | |
static struct stasis_rest_handlers | bridges_bridgeId_record |
REST handler for /api-docs/bridges.json. More... | |
static struct stasis_rest_handlers | bridges_bridgeId_removeChannel |
REST handler for /api-docs/bridges.json. More... | |
static struct stasis_rest_handlers | bridges_bridgeId_videoSource |
REST handler for /api-docs/bridges.json. More... | |
static struct stasis_rest_handlers | bridges_bridgeId_videoSource_channelId |
REST handler for /api-docs/bridges.json. More... | |
Bridge resources.
Definition in file res_ari_bridges.c.
#define MAX_VALS 128 |
Definition at line 53 of file res_ari_bridges.c.
Referenced by ast_ari_bridges_add_channel_cb(), ast_ari_bridges_play_cb(), ast_ari_bridges_play_with_id_cb(), and ast_ari_bridges_remove_channel_cb().
|
static |
Definition at line 1588 of file res_ari_bridges.c.
|
static |
Definition at line 1588 of file res_ari_bridges.c.
|
static |
Parameter parsing callback for /bridges/{bridgeId}/addChannel.
get_params | GET parameters in the HTTP request. | |
path_vars | Path variables extracted from the request. | |
headers | HTTP headers. | |
[out] | response | Response to the HTTP request. |
Definition at line 457 of file res_ari_bridges.c.
References ast_ari_bridges_add_channel_args::absorb_dtmf, ARRAY_LEN, ast_app_separate_args, ast_ari_bridges_add_channel(), ast_ari_bridges_add_channel_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_void(), ast_free, ast_log, ast_malloc, ast_strdup, ast_true(), ast_ari_bridges_add_channel_args::bridge_id, ast_ari_bridges_add_channel_args::channel, ast_ari_bridges_add_channel_args::channel_count, ast_ari_bridges_add_channel_args::channel_parse, ast_ari_bridges_add_channel_args::inhibit_connected_line_updates, LOG_ERROR, MAX_VALS, ast_ari_response::message, ast_ari_bridges_add_channel_args::mute, ast_variable::name, ast_variable::next, NULL, ast_ari_response::response_code, ast_ari_bridges_add_channel_args::role, and ast_variable::value.
int ast_ari_bridges_add_channel_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_add_channel_args * | args | ||
) |
Body parsing function for /bridges/{bridgeId}/addChannel.
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 396 of file res_ari_bridges.c.
References ast_ari_bridges_add_channel_args::absorb_dtmf, ast_free, AST_JSON_ARRAY, ast_json_array_get(), ast_json_array_size(), ast_json_is_true(), ast_json_object_get(), ast_json_string_get(), ast_json_typeof(), ast_malloc, ast_ari_bridges_add_channel_args::channel, ast_ari_bridges_add_channel_args::channel_count, ast_ari_bridges_add_channel_args::inhibit_connected_line_updates, ast_ari_bridges_add_channel_args::mute, and ast_ari_bridges_add_channel_args::role.
Referenced by ast_ari_bridges_add_channel_cb().
|
static |
Parameter parsing callback for /bridges/{bridgeId}/videoSource.
get_params | GET parameters in the HTTP request. | |
path_vars | Path variables extracted from the request. | |
headers | HTTP headers. | |
[out] | response | Response to the HTTP request. |
Definition at line 796 of file res_ari_bridges.c.
References ast_ari_bridges_clear_video_source(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_bridges_clear_video_source_args::bridge_id, 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 /bridges.
get_params | GET parameters in the HTTP request. | |
path_vars | Path variables extracted from the request. | |
headers | HTTP headers. | |
[out] | response | Response to the HTTP request. |
Definition at line 133 of file res_ari_bridges.c.
References ast_ari_bridges_create(), ast_ari_bridges_create_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_bridge(), ast_log, ast_ari_bridges_create_args::bridge_id, LOG_ERROR, ast_ari_response::message, ast_ari_bridges_create_args::name, ast_variable::name, ast_variable::next, NULL, ast_ari_response::response_code, ast_ari_bridges_create_args::type, and ast_variable::value.
int ast_ari_bridges_create_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_create_args * | args | ||
) |
Body parsing function for /bridges.
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 105 of file res_ari_bridges.c.
References ast_json_object_get(), ast_json_string_get(), ast_ari_bridges_create_args::bridge_id, ast_ari_bridges_create_args::name, and ast_ari_bridges_create_args::type.
Referenced by ast_ari_bridges_create_cb().
|
static |
Parameter parsing callback for /bridges/{bridgeId}.
get_params | GET parameters in the HTTP request. | |
path_vars | Path variables extracted from the request. | |
headers | HTTP headers. | |
[out] | response | Response to the HTTP request. |
Definition at line 217 of file res_ari_bridges.c.
References ast_ari_bridges_create_with_id(), ast_ari_bridges_create_with_id_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_bridge(), ast_log, ast_ari_bridges_create_with_id_args::bridge_id, LOG_ERROR, ast_ari_response::message, ast_variable::name, ast_ari_bridges_create_with_id_args::name, ast_variable::next, NULL, ast_ari_response::response_code, ast_ari_bridges_create_with_id_args::type, and ast_variable::value.
int ast_ari_bridges_create_with_id_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_create_with_id_args * | args | ||
) |
Body parsing function for /bridges/{bridgeId}.
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 193 of file res_ari_bridges.c.
References ast_json_object_get(), ast_json_string_get(), ast_ari_bridges_create_with_id_args::name, and ast_ari_bridges_create_with_id_args::type.
Referenced by ast_ari_bridges_create_with_id_cb().
|
static |
Parameter parsing callback for /bridges/{bridgeId}.
get_params | GET parameters in the HTTP request. | |
path_vars | Path variables extracted from the request. | |
headers | HTTP headers. | |
[out] | response | Response to the HTTP request. |
Definition at line 345 of file res_ari_bridges.c.
References ast_ari_bridges_destroy(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_bridges_destroy_args::bridge_id, 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 /bridges/{bridgeId}.
get_params | GET parameters in the HTTP request. | |
path_vars | Path variables extracted from the request. | |
headers | HTTP headers. | |
[out] | response | Response to the HTTP request. |
Definition at line 287 of file res_ari_bridges.c.
References ast_ari_bridges_get(), ast_ari_response_error(), ast_ari_validate_bridge(), ast_log, ast_ari_bridges_get_args::bridge_id, 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 /bridges.
get_params | GET parameters in the HTTP request. | |
path_vars | Path variables extracted from the request. | |
headers | HTTP headers. | |
[out] | response | Response to the HTTP request. |
Definition at line 62 of file res_ari_bridges.c.
References ast_ari_bridges_list(), ast_ari_response_error(), ast_ari_validate_bridge_fn(), ast_ari_validate_list(), ast_log, LOG_ERROR, ast_ari_response::message, NULL, and ast_ari_response::response_code.
|
static |
Parameter parsing callback for /bridges/{bridgeId}/play.
get_params | GET parameters in the HTTP request. | |
path_vars | Path variables extracted from the request. | |
headers | HTTP headers. | |
[out] | response | Response to the HTTP request. |
Definition at line 1049 of file res_ari_bridges.c.
References ARRAY_LEN, ast_app_separate_args, ast_ari_bridges_play(), ast_ari_bridges_play_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_playback(), ast_free, ast_log, ast_malloc, ast_strdup, ast_ari_bridges_play_args::bridge_id, ast_ari_bridges_play_args::lang, LOG_ERROR, MAX_VALS, ast_ari_bridges_play_args::media, ast_ari_bridges_play_args::media_count, ast_ari_bridges_play_args::media_parse, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_bridges_play_args::offsetms, ast_ari_bridges_play_args::playback_id, ast_ari_response::response_code, ast_ari_bridges_play_args::skipms, and ast_variable::value.
int ast_ari_bridges_play_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_play_args * | args | ||
) |
Body parsing function for /bridges/{bridgeId}/play.
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 988 of file res_ari_bridges.c.
References ast_free, AST_JSON_ARRAY, ast_json_array_get(), ast_json_array_size(), ast_json_integer_get(), ast_json_object_get(), ast_json_string_get(), ast_json_typeof(), ast_malloc, ast_ari_bridges_play_args::lang, ast_ari_bridges_play_args::media, ast_ari_bridges_play_args::media_count, ast_ari_bridges_play_args::offsetms, ast_ari_bridges_play_args::playback_id, and ast_ari_bridges_play_args::skipms.
Referenced by ast_ari_bridges_play_cb().
|
static |
Parameter parsing callback for /bridges/{bridgeId}/play/{playbackId}.
get_params | GET parameters in the HTTP request. | |
path_vars | Path variables extracted from the request. | |
headers | HTTP headers. | |
[out] | response | Response to the HTTP request. |
Definition at line 1222 of file res_ari_bridges.c.
References ARRAY_LEN, ast_app_separate_args, ast_ari_bridges_play_with_id(), ast_ari_bridges_play_with_id_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_playback(), ast_free, ast_log, ast_malloc, ast_strdup, ast_ari_bridges_play_with_id_args::bridge_id, ast_ari_bridges_play_with_id_args::lang, LOG_ERROR, MAX_VALS, ast_ari_bridges_play_with_id_args::media, ast_ari_bridges_play_with_id_args::media_count, ast_ari_bridges_play_with_id_args::media_parse, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_bridges_play_with_id_args::offsetms, ast_ari_bridges_play_with_id_args::playback_id, ast_ari_response::response_code, ast_ari_bridges_play_with_id_args::skipms, and ast_variable::value.
int ast_ari_bridges_play_with_id_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_play_with_id_args * | args | ||
) |
Body parsing function for /bridges/{bridgeId}/play/{playbackId}.
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 1165 of file res_ari_bridges.c.
References ast_free, AST_JSON_ARRAY, ast_json_array_get(), ast_json_array_size(), ast_json_integer_get(), ast_json_object_get(), ast_json_string_get(), ast_json_typeof(), ast_malloc, ast_ari_bridges_play_with_id_args::lang, ast_ari_bridges_play_with_id_args::media, ast_ari_bridges_play_with_id_args::media_count, ast_ari_bridges_play_with_id_args::offsetms, and ast_ari_bridges_play_with_id_args::skipms.
Referenced by ast_ari_bridges_play_with_id_cb().
|
static |
Parameter parsing callback for /bridges/{bridgeId}/record.
get_params | GET parameters in the HTTP request. | |
path_vars | Path variables extracted from the request. | |
headers | HTTP headers. | |
[out] | response | Response to the HTTP request. |
Definition at line 1382 of file res_ari_bridges.c.
References ast_ari_bridges_record(), ast_ari_bridges_record_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_live_recording(), ast_log, ast_true(), ast_ari_bridges_record_args::beep, ast_ari_bridges_record_args::bridge_id, ast_ari_bridges_record_args::format, ast_ari_bridges_record_args::if_exists, LOG_ERROR, ast_ari_bridges_record_args::max_duration_seconds, ast_ari_bridges_record_args::max_silence_seconds, ast_ari_response::message, ast_variable::name, ast_ari_bridges_record_args::name, ast_variable::next, NULL, ast_ari_response::response_code, ast_ari_bridges_record_args::terminate_on, and ast_variable::value.
int ast_ari_bridges_record_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_record_args * | args | ||
) |
Body parsing function for /bridges/{bridgeId}/record.
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 1338 of file res_ari_bridges.c.
References ast_json_integer_get(), ast_json_is_true(), ast_json_object_get(), ast_json_string_get(), ast_ari_bridges_record_args::beep, ast_ari_bridges_record_args::format, ast_ari_bridges_record_args::if_exists, ast_ari_bridges_record_args::max_duration_seconds, ast_ari_bridges_record_args::max_silence_seconds, ast_ari_bridges_record_args::name, and ast_ari_bridges_record_args::terminate_on.
Referenced by ast_ari_bridges_record_cb().
|
static |
Parameter parsing callback for /bridges/{bridgeId}/removeChannel.
get_params | GET parameters in the HTTP request. | |
path_vars | Path variables extracted from the request. | |
headers | HTTP headers. | |
[out] | response | Response to the HTTP request. |
Definition at line 620 of file res_ari_bridges.c.
References ARRAY_LEN, ast_app_separate_args, ast_ari_bridges_remove_channel(), ast_ari_bridges_remove_channel_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_void(), ast_free, ast_log, ast_malloc, ast_strdup, ast_ari_bridges_remove_channel_args::bridge_id, ast_ari_bridges_remove_channel_args::channel, ast_ari_bridges_remove_channel_args::channel_count, ast_ari_bridges_remove_channel_args::channel_parse, LOG_ERROR, MAX_VALS, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_response::response_code, and ast_variable::value.
int ast_ari_bridges_remove_channel_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_remove_channel_args * | args | ||
) |
Body parsing function for /bridges/{bridgeId}/removeChannel.
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 575 of file res_ari_bridges.c.
References ast_free, AST_JSON_ARRAY, ast_json_array_get(), ast_json_array_size(), ast_json_object_get(), ast_json_string_get(), ast_json_typeof(), ast_malloc, ast_ari_bridges_remove_channel_args::channel, and ast_ari_bridges_remove_channel_args::channel_count.
Referenced by ast_ari_bridges_remove_channel_cb().
|
static |
Parameter parsing callback for /bridges/{bridgeId}/videoSource/{channelId}.
get_params | GET parameters in the HTTP request. | |
path_vars | Path variables extracted from the request. | |
headers | HTTP headers. | |
[out] | response | Response to the HTTP request. |
Definition at line 733 of file res_ari_bridges.c.
References ast_ari_bridges_set_video_source(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_bridges_set_video_source_args::bridge_id, ast_ari_bridges_set_video_source_args::channel_id, 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 /bridges/{bridgeId}/moh.
get_params | GET parameters in the HTTP request. | |
path_vars | Path variables extracted from the request. | |
headers | HTTP headers. | |
[out] | response | Response to the HTTP request. |
Definition at line 867 of file res_ari_bridges.c.
References ast_ari_bridges_start_moh(), ast_ari_bridges_start_moh_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_bridges_start_moh_args::bridge_id, LOG_ERROR, ast_ari_response::message, ast_ari_bridges_start_moh_args::moh_class, ast_variable::name, ast_variable::next, NULL, ast_ari_response::response_code, and ast_variable::value.
int ast_ari_bridges_start_moh_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_start_moh_args * | args | ||
) |
Body parsing function for /bridges/{bridgeId}/moh.
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 847 of file res_ari_bridges.c.
References ast_json_object_get(), ast_json_string_get(), and ast_ari_bridges_start_moh_args::moh_class.
Referenced by ast_ari_bridges_start_moh_cb().
|
static |
Parameter parsing callback for /bridges/{bridgeId}/moh.
get_params | GET parameters in the HTTP request. | |
path_vars | Path variables extracted from the request. | |
headers | HTTP headers. | |
[out] | response | Response to the HTTP request. |
Definition at line 936 of file res_ari_bridges.c.
References ast_ari_bridges_stop_moh(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_bridges_stop_moh_args::bridge_id, 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 1588 of file res_ari_bridges.c.
|
static |
Definition at line 1569 of file res_ari_bridges.c.
References ast_ari_add_handler(), AST_MODFLAG_DEFAULT, AST_MODULE_INFO(), AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, AST_MODULE_SUPPORT_CORE, ASTERISK_GPL_KEY, and unload_module().
|
static |
Definition at line 1563 of file res_ari_bridges.c.
References ast_ari_remove_handler().
Referenced by load_module().
|
static |
Definition at line 1588 of file res_ari_bridges.c.
|
static |
Definition at line 1588 of file res_ari_bridges.c.
|
static |
REST handler for /api-docs/bridges.json.
Definition at line 1553 of file res_ari_bridges.c.
|
static |
REST handler for /api-docs/bridges.json.
Definition at line 1541 of file res_ari_bridges.c.
|
static |
REST handler for /api-docs/bridges.json.
Definition at line 1466 of file res_ari_bridges.c.
|
static |
REST handler for /api-docs/bridges.json.
Definition at line 1503 of file res_ari_bridges.c.
|
static |
REST handler for /api-docs/bridges.json.
Definition at line 1523 of file res_ari_bridges.c.
|
static |
REST handler for /api-docs/bridges.json.
Definition at line 1513 of file res_ari_bridges.c.
|
static |
REST handler for /api-docs/bridges.json.
Definition at line 1532 of file res_ari_bridges.c.
|
static |
REST handler for /api-docs/bridges.json.
Definition at line 1475 of file res_ari_bridges.c.
|
static |
REST handler for /api-docs/bridges.json.
Definition at line 1494 of file res_ari_bridges.c.
|
static |
REST handler for /api-docs/bridges.json.
Definition at line 1484 of file res_ari_bridges.c.