Asterisk - The Open Source Telephony Project
18.5.0
|
Channel resources. More...
#include "asterisk.h"
#include "asterisk/app.h"
#include "asterisk/module.h"
#include "asterisk/stasis_app.h"
#include "ari/resource_channels.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_channels_answer_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 /channels/{channelId}/answer. More... | |
static void | ast_ari_channels_continue_in_dialplan_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 /channels/{channelId}/continue. More... | |
int | ast_ari_channels_continue_in_dialplan_parse_body (struct ast_json *body, struct ast_ari_channels_continue_in_dialplan_args *args) |
Body parsing function for /channels/{channelId}/continue. More... | |
static void | ast_ari_channels_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 /channels/create. More... | |
int | ast_ari_channels_create_parse_body (struct ast_json *body, struct ast_ari_channels_create_args *args) |
Body parsing function for /channels/create. More... | |
static void | ast_ari_channels_dial_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 /channels/{channelId}/dial. More... | |
int | ast_ari_channels_dial_parse_body (struct ast_json *body, struct ast_ari_channels_dial_args *args) |
Body parsing function for /channels/{channelId}/dial. More... | |
static void | ast_ari_channels_external_media_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 /channels/externalMedia. More... | |
int | ast_ari_channels_external_media_parse_body (struct ast_json *body, struct ast_ari_channels_external_media_args *args) |
Body parsing function for /channels/externalMedia. More... | |
static void | ast_ari_channels_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 /channels/{channelId}. More... | |
static void | ast_ari_channels_get_channel_var_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 /channels/{channelId}/variable. More... | |
int | ast_ari_channels_get_channel_var_parse_body (struct ast_json *body, struct ast_ari_channels_get_channel_var_args *args) |
Body parsing function for /channels/{channelId}/variable. More... | |
static void | ast_ari_channels_hangup_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 /channels/{channelId}. More... | |
int | ast_ari_channels_hangup_parse_body (struct ast_json *body, struct ast_ari_channels_hangup_args *args) |
Body parsing function for /channels/{channelId}. More... | |
static void | ast_ari_channels_hold_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 /channels/{channelId}/hold. More... | |
static void | ast_ari_channels_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 /channels. More... | |
static void | ast_ari_channels_move_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 /channels/{channelId}/move. More... | |
int | ast_ari_channels_move_parse_body (struct ast_json *body, struct ast_ari_channels_move_args *args) |
Body parsing function for /channels/{channelId}/move. More... | |
static void | ast_ari_channels_mute_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 /channels/{channelId}/mute. More... | |
int | ast_ari_channels_mute_parse_body (struct ast_json *body, struct ast_ari_channels_mute_args *args) |
Body parsing function for /channels/{channelId}/mute. More... | |
static void | ast_ari_channels_originate_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 /channels. More... | |
int | ast_ari_channels_originate_parse_body (struct ast_json *body, struct ast_ari_channels_originate_args *args) |
Body parsing function for /channels. More... | |
static void | ast_ari_channels_originate_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 /channels/{channelId}. More... | |
int | ast_ari_channels_originate_with_id_parse_body (struct ast_json *body, struct ast_ari_channels_originate_with_id_args *args) |
Body parsing function for /channels/{channelId}. More... | |
static void | ast_ari_channels_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 /channels/{channelId}/play. More... | |
int | ast_ari_channels_play_parse_body (struct ast_json *body, struct ast_ari_channels_play_args *args) |
Body parsing function for /channels/{channelId}/play. More... | |
static void | ast_ari_channels_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 /channels/{channelId}/play/{playbackId}. More... | |
int | ast_ari_channels_play_with_id_parse_body (struct ast_json *body, struct ast_ari_channels_play_with_id_args *args) |
Body parsing function for /channels/{channelId}/play/{playbackId}. More... | |
static void | ast_ari_channels_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 /channels/{channelId}/record. More... | |
int | ast_ari_channels_record_parse_body (struct ast_json *body, struct ast_ari_channels_record_args *args) |
Body parsing function for /channels/{channelId}/record. More... | |
static void | ast_ari_channels_redirect_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 /channels/{channelId}/redirect. More... | |
int | ast_ari_channels_redirect_parse_body (struct ast_json *body, struct ast_ari_channels_redirect_args *args) |
Body parsing function for /channels/{channelId}/redirect. More... | |
static void | ast_ari_channels_ring_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 /channels/{channelId}/ring. More... | |
static void | ast_ari_channels_ring_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 /channels/{channelId}/ring. More... | |
static void | ast_ari_channels_rtpstatistics_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 /channels/{channelId}/rtp_statistics. More... | |
static void | ast_ari_channels_send_dtmf_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 /channels/{channelId}/dtmf. More... | |
int | ast_ari_channels_send_dtmf_parse_body (struct ast_json *body, struct ast_ari_channels_send_dtmf_args *args) |
Body parsing function for /channels/{channelId}/dtmf. More... | |
static void | ast_ari_channels_set_channel_var_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 /channels/{channelId}/variable. More... | |
int | ast_ari_channels_set_channel_var_parse_body (struct ast_json *body, struct ast_ari_channels_set_channel_var_args *args) |
Body parsing function for /channels/{channelId}/variable. More... | |
static void | ast_ari_channels_snoop_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 /channels/{channelId}/snoop. More... | |
int | ast_ari_channels_snoop_channel_parse_body (struct ast_json *body, struct ast_ari_channels_snoop_channel_args *args) |
Body parsing function for /channels/{channelId}/snoop. More... | |
static void | ast_ari_channels_snoop_channel_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 /channels/{channelId}/snoop/{snoopId}. More... | |
int | ast_ari_channels_snoop_channel_with_id_parse_body (struct ast_json *body, struct ast_ari_channels_snoop_channel_with_id_args *args) |
Body parsing function for /channels/{channelId}/snoop/{snoopId}. More... | |
static void | ast_ari_channels_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 /channels/{channelId}/moh. More... | |
int | ast_ari_channels_start_moh_parse_body (struct ast_json *body, struct ast_ari_channels_start_moh_args *args) |
Body parsing function for /channels/{channelId}/moh. More... | |
static void | ast_ari_channels_start_silence_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 /channels/{channelId}/silence. More... | |
static void | ast_ari_channels_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 /channels/{channelId}/moh. More... | |
static void | ast_ari_channels_stop_silence_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 /channels/{channelId}/silence. More... | |
static void | ast_ari_channels_unhold_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 /channels/{channelId}/hold. More... | |
static void | ast_ari_channels_unmute_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 /channels/{channelId}/mute. More... | |
int | ast_ari_channels_unmute_parse_body (struct ast_json *body, struct ast_ari_channels_unmute_args *args) |
Body parsing function for /channels/{channelId}/mute. 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 - Channel 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_answer,res_stasis_playback,res_stasis_recording,res_stasis_snoop", } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static struct stasis_rest_handlers | channels |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_answer |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_continue |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_dial |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_dtmf |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_hold |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_moh |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_move |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_mute |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_play |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_play_playbackId |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_record |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_redirect |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_ring |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_rtp_statistics |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_silence |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_snoop |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_snoop_snoopId |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_channelId_variable |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_create |
REST handler for /api-docs/channels.json. More... | |
static struct stasis_rest_handlers | channels_externalMedia |
REST handler for /api-docs/channels.json. More... | |
Channel resources.
Definition in file res_ari_channels.c.
#define MAX_VALS 128 |
Definition at line 55 of file res_ari_channels.c.
Referenced by ast_ari_channels_play_cb(), and ast_ari_channels_play_with_id_cb().
|
static |
Definition at line 3180 of file res_ari_channels.c.
|
static |
Definition at line 3180 of file res_ari_channels.c.
|
static |
Parameter parsing callback for /channels/{channelId}/answer.
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 966 of file res_ari_channels.c.
References ast_ari_channels_answer(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_answer_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 /channels/{channelId}/continue.
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 713 of file res_ari_channels.c.
References ast_ari_channels_continue_in_dialplan(), ast_ari_channels_continue_in_dialplan_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_continue_in_dialplan_args::channel_id, ast_ari_channels_continue_in_dialplan_args::context, ast_ari_channels_continue_in_dialplan_args::extension, ast_ari_channels_continue_in_dialplan_args::label, LOG_ERROR, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_channels_continue_in_dialplan_args::priority, ast_ari_response::response_code, and ast_variable::value.
int ast_ari_channels_continue_in_dialplan_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_continue_in_dialplan_args * | args | ||
) |
Body parsing function for /channels/{channelId}/continue.
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 681 of file res_ari_channels.c.
References ast_json_integer_get(), ast_json_object_get(), ast_json_string_get(), ast_ari_channels_continue_in_dialplan_args::context, ast_ari_channels_continue_in_dialplan_args::extension, ast_ari_channels_continue_in_dialplan_args::label, and ast_ari_channels_continue_in_dialplan_args::priority.
Referenced by ast_ari_channels_continue_in_dialplan_cb().
|
static |
Parameter parsing callback for /channels/create.
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 308 of file res_ari_channels.c.
References ast_ari_channels_create_args::app, ast_ari_channels_create_args::app_args, ast_ari_channels_create(), ast_ari_response_error(), ast_ari_validate_channel(), ast_log, ast_ari_channels_create_args::channel_id, ast_ari_channels_create_args::endpoint, ast_ari_channels_create_args::formats, LOG_ERROR, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_channels_create_args::originator, ast_ari_channels_create_args::other_channel_id, ast_ari_response::response_code, ast_variable::value, and ast_ari_channels_create_args::variables.
int ast_ari_channels_create_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_create_args * | args | ||
) |
Body parsing function for /channels/create.
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 264 of file res_ari_channels.c.
References ast_ari_channels_create_args::app, ast_ari_channels_create_args::app_args, ast_json_object_get(), ast_json_string_get(), ast_ari_channels_create_args::channel_id, ast_ari_channels_create_args::endpoint, ast_ari_channels_create_args::formats, ast_ari_channels_create_args::originator, and ast_ari_channels_create_args::other_channel_id.
Referenced by ast_ari_channels_create().
|
static |
Parameter parsing callback for /channels/{channelId}/dial.
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 2691 of file res_ari_channels.c.
References ast_ari_channels_dial(), ast_ari_channels_dial_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_dial_args::caller, ast_ari_channels_dial_args::channel_id, LOG_ERROR, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_response::response_code, ast_ari_channels_dial_args::timeout, and ast_variable::value.
int ast_ari_channels_dial_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_dial_args * | args | ||
) |
Body parsing function for /channels/{channelId}/dial.
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 2667 of file res_ari_channels.c.
References ast_json_integer_get(), ast_json_object_get(), ast_json_string_get(), ast_ari_channels_dial_args::caller, and ast_ari_channels_dial_args::timeout.
Referenced by ast_ari_channels_dial_cb().
|
static |
Parameter parsing callback for /channels/externalMedia.
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 2866 of file res_ari_channels.c.
References ast_ari_channels_external_media_args::app, ast_ari_channels_external_media(), ast_ari_response_error(), ast_ari_validate_channel(), ast_log, ast_ari_channels_external_media_args::channel_id, ast_ari_channels_external_media_args::connection_type, ast_ari_channels_external_media_args::data, ast_ari_channels_external_media_args::direction, ast_ari_channels_external_media_args::encapsulation, ast_ari_channels_external_media_args::external_host, ast_ari_channels_external_media_args::format, LOG_ERROR, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_response::response_code, ast_ari_channels_external_media_args::transport, ast_variable::value, and ast_ari_channels_external_media_args::variables.
int ast_ari_channels_external_media_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_external_media_args * | args | ||
) |
Body parsing function for /channels/externalMedia.
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 2814 of file res_ari_channels.c.
References ast_ari_channels_external_media_args::app, ast_json_object_get(), ast_json_string_get(), ast_ari_channels_external_media_args::channel_id, ast_ari_channels_external_media_args::connection_type, ast_ari_channels_external_media_args::data, ast_ari_channels_external_media_args::direction, ast_ari_channels_external_media_args::encapsulation, ast_ari_channels_external_media_args::external_host, ast_ari_channels_external_media_args::format, and ast_ari_channels_external_media_args::transport.
Referenced by ast_ari_channels_external_media().
|
static |
Parameter parsing callback for /channels/{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 385 of file res_ari_channels.c.
References ast_ari_channels_get(), ast_ari_response_error(), ast_ari_validate_channel(), ast_log, ast_ari_channels_get_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 /channels/{channelId}/variable.
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 2298 of file res_ari_channels.c.
References ast_ari_channels_get_channel_var(), ast_ari_channels_get_channel_var_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_variable(), ast_log, ast_ari_channels_get_channel_var_args::channel_id, LOG_ERROR, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_response::response_code, ast_variable::value, and ast_ari_channels_get_channel_var_args::variable.
int ast_ari_channels_get_channel_var_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_get_channel_var_args * | args | ||
) |
Body parsing function for /channels/{channelId}/variable.
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 2278 of file res_ari_channels.c.
References ast_json_object_get(), ast_json_string_get(), and ast_ari_channels_get_channel_var_args::variable.
Referenced by ast_ari_channels_get_channel_var_cb().
|
static |
Parameter parsing callback for /channels/{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 616 of file res_ari_channels.c.
References ast_ari_channels_hangup(), ast_ari_channels_hangup_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_hangup_args::channel_id, LOG_ERROR, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_channels_hangup_args::reason, ast_ari_channels_hangup_args::reason_code, ast_ari_response::response_code, and ast_variable::value.
int ast_ari_channels_hangup_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_hangup_args * | args | ||
) |
Body parsing function for /channels/{channelId}.
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 592 of file res_ari_channels.c.
References ast_json_object_get(), ast_json_string_get(), ast_ari_channels_hangup_args::reason, and ast_ari_channels_hangup_args::reason_code.
Referenced by ast_ari_channels_hangup_cb().
|
static |
Parameter parsing callback for /channels/{channelId}/hold.
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 1424 of file res_ari_channels.c.
References ast_ari_channels_hold(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_hold_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 /channels.
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 64 of file res_ari_channels.c.
References ast_ari_channels_list(), ast_ari_response_error(), ast_ari_validate_channel_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 /channels/{channelId}/move.
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 809 of file res_ari_channels.c.
References ast_ari_channels_move_args::app, ast_ari_channels_move_args::app_args, ast_ari_channels_move(), ast_ari_channels_move_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_move_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.
int ast_ari_channels_move_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_move_args * | args | ||
) |
Body parsing function for /channels/{channelId}/move.
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 785 of file res_ari_channels.c.
References ast_ari_channels_move_args::app, ast_ari_channels_move_args::app_args, ast_json_object_get(), and ast_json_string_get().
Referenced by ast_ari_channels_move_cb().
|
static |
Parameter parsing callback for /channels/{channelId}/mute.
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 1271 of file res_ari_channels.c.
References ast_ari_channels_mute(), ast_ari_channels_mute_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_mute_args::channel_id, ast_ari_channels_mute_args::direction, 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_channels_mute_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_mute_args * | args | ||
) |
Body parsing function for /channels/{channelId}/mute.
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 1251 of file res_ari_channels.c.
References ast_json_object_get(), ast_json_string_get(), and ast_ari_channels_mute_args::direction.
Referenced by ast_ari_channels_mute_cb().
|
static |
Parameter parsing callback for /channels.
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 175 of file res_ari_channels.c.
References ast_ari_channels_originate_args::app, ast_ari_channels_originate_args::app_args, ast_ari_channels_originate(), ast_ari_response_error(), ast_ari_validate_channel(), ast_log, ast_ari_channels_originate_args::caller_id, ast_ari_channels_originate_args::channel_id, ast_ari_channels_originate_args::context, ast_ari_channels_originate_args::endpoint, ast_ari_channels_originate_args::extension, ast_ari_channels_originate_args::formats, ast_ari_channels_originate_args::label, LOG_ERROR, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_channels_originate_args::originator, ast_ari_channels_originate_args::other_channel_id, ast_ari_channels_originate_args::priority, ast_ari_response::response_code, ast_ari_channels_originate_args::timeout, ast_variable::value, and ast_ari_channels_originate_args::variables.
int ast_ari_channels_originate_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_originate_args * | args | ||
) |
Body parsing function for /channels.
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 107 of file res_ari_channels.c.
References ast_ari_channels_originate_args::app, ast_ari_channels_originate_args::app_args, ast_json_integer_get(), ast_json_object_get(), ast_json_string_get(), ast_ari_channels_originate_args::caller_id, ast_ari_channels_originate_args::channel_id, ast_ari_channels_originate_args::context, ast_ari_channels_originate_args::endpoint, ast_ari_channels_originate_args::extension, ast_ari_channels_originate_args::formats, ast_ari_channels_originate_args::label, ast_ari_channels_originate_args::originator, ast_ari_channels_originate_args::other_channel_id, ast_ari_channels_originate_args::priority, and ast_ari_channels_originate_args::timeout.
Referenced by ast_ari_channels_originate().
|
static |
Parameter parsing callback for /channels/{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 500 of file res_ari_channels.c.
References ast_ari_channels_originate_with_id_args::app, ast_ari_channels_originate_with_id_args::app_args, ast_ari_channels_originate_with_id(), ast_ari_response_error(), ast_ari_validate_channel(), ast_log, ast_ari_channels_originate_with_id_args::caller_id, ast_ari_channels_originate_with_id_args::channel_id, ast_ari_channels_originate_with_id_args::context, ast_ari_channels_originate_with_id_args::endpoint, ast_ari_channels_originate_with_id_args::extension, ast_ari_channels_originate_with_id_args::formats, ast_ari_channels_originate_with_id_args::label, LOG_ERROR, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_channels_originate_with_id_args::originator, ast_ari_channels_originate_with_id_args::other_channel_id, ast_ari_channels_originate_with_id_args::priority, ast_ari_response::response_code, ast_ari_channels_originate_with_id_args::timeout, ast_variable::value, and ast_ari_channels_originate_with_id_args::variables.
int ast_ari_channels_originate_with_id_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_originate_with_id_args * | args | ||
) |
Body parsing function for /channels/{channelId}.
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 436 of file res_ari_channels.c.
References ast_ari_channels_originate_with_id_args::app, ast_ari_channels_originate_with_id_args::app_args, ast_json_integer_get(), ast_json_object_get(), ast_json_string_get(), ast_ari_channels_originate_with_id_args::caller_id, ast_ari_channels_originate_with_id_args::context, ast_ari_channels_originate_with_id_args::endpoint, ast_ari_channels_originate_with_id_args::extension, ast_ari_channels_originate_with_id_args::formats, ast_ari_channels_originate_with_id_args::label, ast_ari_channels_originate_with_id_args::originator, ast_ari_channels_originate_with_id_args::other_channel_id, ast_ari_channels_originate_with_id_args::priority, and ast_ari_channels_originate_with_id_args::timeout.
Referenced by ast_ari_channels_originate_with_id().
|
static |
Parameter parsing callback for /channels/{channelId}/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 1861 of file res_ari_channels.c.
References ARRAY_LEN, ast_app_separate_args, ast_ari_channels_play(), ast_ari_channels_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_channels_play_args::channel_id, ast_ari_channels_play_args::lang, LOG_ERROR, MAX_VALS, ast_ari_channels_play_args::media, ast_ari_channels_play_args::media_count, ast_ari_channels_play_args::media_parse, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_channels_play_args::offsetms, ast_ari_channels_play_args::playback_id, ast_ari_response::response_code, ast_ari_channels_play_args::skipms, and ast_variable::value.
int ast_ari_channels_play_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_play_args * | args | ||
) |
Body parsing function for /channels/{channelId}/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 1800 of file res_ari_channels.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_channels_play_args::lang, ast_ari_channels_play_args::media, ast_ari_channels_play_args::media_count, ast_ari_channels_play_args::offsetms, ast_ari_channels_play_args::playback_id, and ast_ari_channels_play_args::skipms.
Referenced by ast_ari_channels_play_cb().
|
static |
Parameter parsing callback for /channels/{channelId}/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 2035 of file res_ari_channels.c.
References ARRAY_LEN, ast_app_separate_args, ast_ari_channels_play_with_id(), ast_ari_channels_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_channels_play_with_id_args::channel_id, ast_ari_channels_play_with_id_args::lang, LOG_ERROR, MAX_VALS, ast_ari_channels_play_with_id_args::media, ast_ari_channels_play_with_id_args::media_count, ast_ari_channels_play_with_id_args::media_parse, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_channels_play_with_id_args::offsetms, ast_ari_channels_play_with_id_args::playback_id, ast_ari_response::response_code, ast_ari_channels_play_with_id_args::skipms, and ast_variable::value.
int ast_ari_channels_play_with_id_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_play_with_id_args * | args | ||
) |
Body parsing function for /channels/{channelId}/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 1978 of file res_ari_channels.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_channels_play_with_id_args::lang, ast_ari_channels_play_with_id_args::media, ast_ari_channels_play_with_id_args::media_count, ast_ari_channels_play_with_id_args::offsetms, and ast_ari_channels_play_with_id_args::skipms.
Referenced by ast_ari_channels_play_with_id_cb().
|
static |
Parameter parsing callback for /channels/{channelId}/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 2196 of file res_ari_channels.c.
References ast_ari_channels_record(), ast_ari_channels_record_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_live_recording(), ast_log, ast_true(), ast_ari_channels_record_args::beep, ast_ari_channels_record_args::channel_id, ast_ari_channels_record_args::format, ast_ari_channels_record_args::if_exists, LOG_ERROR, ast_ari_channels_record_args::max_duration_seconds, ast_ari_channels_record_args::max_silence_seconds, ast_ari_response::message, ast_variable::name, ast_ari_channels_record_args::name, ast_variable::next, NULL, ast_ari_response::response_code, ast_ari_channels_record_args::terminate_on, and ast_variable::value.
int ast_ari_channels_record_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_record_args * | args | ||
) |
Body parsing function for /channels/{channelId}/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 2152 of file res_ari_channels.c.
References ast_json_integer_get(), ast_json_is_true(), ast_json_object_get(), ast_json_string_get(), ast_ari_channels_record_args::beep, ast_ari_channels_record_args::format, ast_ari_channels_record_args::if_exists, ast_ari_channels_record_args::max_duration_seconds, ast_ari_channels_record_args::max_silence_seconds, ast_ari_channels_record_args::name, and ast_ari_channels_record_args::terminate_on.
Referenced by ast_ari_channels_record_cb().
|
static |
Parameter parsing callback for /channels/{channelId}/redirect.
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 894 of file res_ari_channels.c.
References ast_ari_channels_redirect(), ast_ari_channels_redirect_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_redirect_args::channel_id, ast_ari_channels_redirect_args::endpoint, 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_channels_redirect_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_redirect_args * | args | ||
) |
Body parsing function for /channels/{channelId}/redirect.
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 874 of file res_ari_channels.c.
References ast_json_object_get(), ast_json_string_get(), and ast_ari_channels_redirect_args::endpoint.
Referenced by ast_ari_channels_redirect_cb().
|
static |
Parameter parsing callback for /channels/{channelId}/ring.
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 1026 of file res_ari_channels.c.
References ast_ari_channels_ring(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_ring_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 /channels/{channelId}/ring.
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 1086 of file res_ari_channels.c.
References ast_ari_channels_ring_stop(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_ring_stop_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 /channels/{channelId}/rtp_statistics.
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 2763 of file res_ari_channels.c.
References ast_ari_channels_rtpstatistics(), ast_ari_response_error(), ast_ari_validate_rtpstat(), ast_log, ast_ari_channels_rtpstatistics_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 /channels/{channelId}/dtmf.
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 1175 of file res_ari_channels.c.
References ast_ari_channels_send_dtmf_args::after, ast_ari_channels_send_dtmf(), ast_ari_channels_send_dtmf_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_send_dtmf_args::before, ast_ari_channels_send_dtmf_args::between, ast_ari_channels_send_dtmf_args::channel_id, ast_ari_channels_send_dtmf_args::dtmf, ast_ari_channels_send_dtmf_args::duration, 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_channels_send_dtmf_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_send_dtmf_args * | args | ||
) |
Body parsing function for /channels/{channelId}/dtmf.
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 1139 of file res_ari_channels.c.
References ast_ari_channels_send_dtmf_args::after, ast_json_integer_get(), ast_json_object_get(), ast_json_string_get(), ast_ari_channels_send_dtmf_args::before, ast_ari_channels_send_dtmf_args::between, ast_ari_channels_send_dtmf_args::dtmf, and ast_ari_channels_send_dtmf_args::duration.
Referenced by ast_ari_channels_send_dtmf_cb().
|
static |
Parameter parsing callback for /channels/{channelId}/variable.
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 2385 of file res_ari_channels.c.
References ast_ari_channels_set_channel_var(), ast_ari_channels_set_channel_var_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_set_channel_var_args::channel_id, LOG_ERROR, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_response::response_code, ast_variable::value, ast_ari_channels_set_channel_var_args::value, and ast_ari_channels_set_channel_var_args::variable.
int ast_ari_channels_set_channel_var_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_set_channel_var_args * | args | ||
) |
Body parsing function for /channels/{channelId}/variable.
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 2361 of file res_ari_channels.c.
References ast_json_object_get(), ast_json_string_get(), ast_ari_channels_set_channel_var_args::value, and ast_ari_channels_set_channel_var_args::variable.
Referenced by ast_ari_channels_set_channel_var_cb().
|
static |
Parameter parsing callback for /channels/{channelId}/snoop.
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 2487 of file res_ari_channels.c.
References ast_ari_channels_snoop_channel_args::app, ast_ari_channels_snoop_channel_args::app_args, ast_ari_channels_snoop_channel(), ast_ari_channels_snoop_channel_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_channel(), ast_log, ast_ari_channels_snoop_channel_args::channel_id, LOG_ERROR, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_response::response_code, ast_ari_channels_snoop_channel_args::snoop_id, ast_ari_channels_snoop_channel_args::spy, ast_variable::value, and ast_ari_channels_snoop_channel_args::whisper.
int ast_ari_channels_snoop_channel_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_snoop_channel_args * | args | ||
) |
Body parsing function for /channels/{channelId}/snoop.
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 2451 of file res_ari_channels.c.
References ast_ari_channels_snoop_channel_args::app, ast_ari_channels_snoop_channel_args::app_args, ast_json_object_get(), ast_json_string_get(), ast_ari_channels_snoop_channel_args::snoop_id, ast_ari_channels_snoop_channel_args::spy, and ast_ari_channels_snoop_channel_args::whisper.
Referenced by ast_ari_channels_snoop_channel_cb().
|
static |
Parameter parsing callback for /channels/{channelId}/snoop/{snoopId}.
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 2593 of file res_ari_channels.c.
References ast_ari_channels_snoop_channel_with_id_args::app, ast_ari_channels_snoop_channel_with_id_args::app_args, ast_ari_channels_snoop_channel_with_id(), ast_ari_channels_snoop_channel_with_id_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_channel(), ast_log, ast_ari_channels_snoop_channel_with_id_args::channel_id, LOG_ERROR, ast_ari_response::message, ast_variable::name, ast_variable::next, NULL, ast_ari_response::response_code, ast_ari_channels_snoop_channel_with_id_args::snoop_id, ast_ari_channels_snoop_channel_with_id_args::spy, ast_variable::value, and ast_ari_channels_snoop_channel_with_id_args::whisper.
int ast_ari_channels_snoop_channel_with_id_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_snoop_channel_with_id_args * | args | ||
) |
Body parsing function for /channels/{channelId}/snoop/{snoopId}.
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 2561 of file res_ari_channels.c.
References ast_ari_channels_snoop_channel_with_id_args::app, ast_ari_channels_snoop_channel_with_id_args::app_args, ast_json_object_get(), ast_json_string_get(), ast_ari_channels_snoop_channel_with_id_args::spy, and ast_ari_channels_snoop_channel_with_id_args::whisper.
Referenced by ast_ari_channels_snoop_channel_with_id_cb().
|
static |
Parameter parsing callback for /channels/{channelId}/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 1557 of file res_ari_channels.c.
References ast_ari_channels_start_moh(), ast_ari_channels_start_moh_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_start_moh_args::channel_id, LOG_ERROR, ast_ari_response::message, ast_ari_channels_start_moh_args::moh_class, ast_variable::name, ast_variable::next, NULL, ast_ari_response::response_code, and ast_variable::value.
int ast_ari_channels_start_moh_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_start_moh_args * | args | ||
) |
Body parsing function for /channels/{channelId}/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 1537 of file res_ari_channels.c.
References ast_json_object_get(), ast_json_string_get(), and ast_ari_channels_start_moh_args::moh_class.
Referenced by ast_ari_channels_start_moh_cb().
|
static |
Parameter parsing callback for /channels/{channelId}/silence.
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 1687 of file res_ari_channels.c.
References ast_ari_channels_start_silence(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_start_silence_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 /channels/{channelId}/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 1627 of file res_ari_channels.c.
References ast_ari_channels_stop_moh(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_stop_moh_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 /channels/{channelId}/silence.
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 1747 of file res_ari_channels.c.
References ast_ari_channels_stop_silence(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_stop_silence_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 /channels/{channelId}/hold.
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 1484 of file res_ari_channels.c.
References ast_ari_channels_unhold(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_unhold_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 /channels/{channelId}/mute.
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 1354 of file res_ari_channels.c.
References ast_ari_channels_unmute(), ast_ari_channels_unmute_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_void(), ast_log, ast_ari_channels_unmute_args::channel_id, ast_ari_channels_unmute_args::direction, 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_channels_unmute_parse_body | ( | struct ast_json * | body, |
struct ast_ari_channels_unmute_args * | args | ||
) |
Body parsing function for /channels/{channelId}/mute.
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 1334 of file res_ari_channels.c.
References ast_json_object_get(), ast_json_string_get(), and ast_ari_channels_unmute_args::direction.
Referenced by ast_ari_channels_unmute_cb().
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 3180 of file res_ari_channels.c.
|
static |
Definition at line 3161 of file res_ari_channels.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 3155 of file res_ari_channels.c.
References ast_ari_remove_handler().
Referenced by load_module().
|
static |
Definition at line 3180 of file res_ari_channels.c.
|
static |
Definition at line 3180 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3145 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3124 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 2981 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 2954 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3106 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3000 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3019 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3029 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 2963 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3009 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3059 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3049 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3068 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 2972 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 2990 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3115 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3039 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3097 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3087 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3077 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 2945 of file res_ari_channels.c.
|
static |
REST handler for /api-docs/channels.json.
Definition at line 3136 of file res_ari_channels.c.