Asterisk - The Open Source Telephony Project
21.4.1
|
Channel resources. More...
#include "asterisk.h"
#include "asterisk/app.h"
#include "asterisk/module.h"
#include "asterisk/stasis_app.h"
#include "ari/resource_channels.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 = "da6642af068ee5e6490c5b1d2cc1d238" , .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. | |
static struct stasis_rest_handlers | channels_channelId |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_answer |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_continue |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_dial |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_dtmf |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_hold |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_moh |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_move |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_mute |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_play |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_play_playbackId |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_record |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_redirect |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_ring |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_rtp_statistics |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_silence |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_snoop |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_snoop_snoopId |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_channelId_variable |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_create |
REST handler for /api-docs/channels.json. | |
static struct stasis_rest_handlers | channels_externalMedia |
REST handler for /api-docs/channels.json. | |
Channel resources.
Definition in file res_ari_channels.c.
|
static |
Parameter parsing callback for /channels/{channelId}/answer.
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 986 of file res_ari_channels.c.
References ast_ari_channels_answer(), ast_ari_response_error(), ast_ari_validate_void(), ast_ari_channels_answer_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, ast_ari_response::response_code, and ast_variable::value.
|
static |
Parameter parsing callback for /channels/{channelId}/continue.
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 727 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_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, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 693 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.
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 314 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_ari_channels_create_args::channel_id, ast_ari_channels_create_args::endpoint, ast_ari_channels_create_args::formats, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 268 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.
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 2749 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_ari_channels_dial_args::caller, ast_ari_channels_dial_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 2723 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.
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 2928 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_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, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 2874 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}.
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 393 of file res_ari_channels.c.
References ast_ari_channels_get(), ast_ari_response_error(), ast_ari_validate_channel(), ast_ari_channels_get_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, ast_ari_response::response_code, and ast_variable::value.
|
static |
Parameter parsing callback for /channels/{channelId}/variable.
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 2348 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_ari_channels_get_channel_var_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 2326 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}.
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 628 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_ari_channels_hangup_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 602 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.
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 1456 of file res_ari_channels.c.
References ast_ari_channels_hold(), ast_ari_response_error(), ast_ari_validate_void(), ast_ari_channels_hold_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, ast_ari_response::response_code, and ast_variable::value.
|
static |
Parameter parsing callback for /channels.
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 66 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_ari_response::message, and ast_ari_response::response_code.
|
static |
Parameter parsing callback for /channels/{channelId}/move.
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 825 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_ari_channels_move_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 799 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.
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 1299 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_ari_channels_mute_args::channel_id, ast_ari_channels_mute_args::direction, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 1277 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.
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 179 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_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_response::message, ast_variable::name, ast_variable::next, 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 109 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}.
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 510 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_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, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 444 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.
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 1905 of file res_ari_channels.c.
References ast_ari_channels_play(), ast_ari_channels_play_parse_body(), ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_validate_playback(), ast_malloc, ast_strdup, ast_ari_channels_play_args::channel_id, ast_ari_channels_play_args::lang, 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, 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 1842 of file res_ari_channels.c.
References 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}.
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 2081 of file res_ari_channels.c.
References 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_malloc, ast_strdup, ast_ari_channels_play_with_id_args::channel_id, 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::media_parse, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 2022 of file res_ari_channels.c.
References 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.
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 2244 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_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, 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, 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 2198 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.
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 912 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_ari_channels_redirect_args::channel_id, ast_ari_channels_redirect_args::endpoint, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 890 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.
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 1048 of file res_ari_channels.c.
References ast_ari_channels_ring(), ast_ari_response_error(), ast_ari_validate_void(), ast_ari_channels_ring_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, ast_ari_response::response_code, and ast_variable::value.
|
static |
Parameter parsing callback for /channels/{channelId}/ring.
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 1110 of file res_ari_channels.c.
References ast_ari_channels_ring_stop(), ast_ari_response_error(), ast_ari_validate_void(), ast_ari_channels_ring_stop_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, ast_ari_response::response_code, and ast_variable::value.
|
static |
Parameter parsing callback for /channels/{channelId}/rtp_statistics.
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 2823 of file res_ari_channels.c.
References ast_ari_channels_rtpstatistics(), ast_ari_response_error(), ast_ari_validate_rtpstat(), ast_ari_channels_rtpstatistics_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, ast_ari_response::response_code, and ast_variable::value.
|
static |
Parameter parsing callback for /channels/{channelId}/dtmf.
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 1201 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_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, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 1163 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.
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 2437 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_ari_channels_set_channel_var_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 2411 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.
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 2541 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_ari_channels_snoop_channel_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 2503 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}.
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 2649 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_ari_channels_snoop_channel_with_id_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 2615 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.
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 1593 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_ari_channels_start_moh_args::channel_id, ast_ari_response::message, ast_ari_channels_start_moh_args::moh_class, ast_variable::name, ast_variable::next, 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 1571 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.
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 1727 of file res_ari_channels.c.
References ast_ari_channels_start_silence(), ast_ari_response_error(), ast_ari_validate_void(), ast_ari_channels_start_silence_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, ast_ari_response::response_code, and ast_variable::value.
|
static |
Parameter parsing callback for /channels/{channelId}/moh.
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 1665 of file res_ari_channels.c.
References ast_ari_channels_stop_moh(), ast_ari_response_error(), ast_ari_validate_void(), ast_ari_channels_stop_moh_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, ast_ari_response::response_code, and ast_variable::value.
|
static |
Parameter parsing callback for /channels/{channelId}/silence.
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 1789 of file res_ari_channels.c.
References ast_ari_channels_stop_silence(), ast_ari_response_error(), ast_ari_validate_void(), ast_ari_channels_stop_silence_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, ast_ari_response::response_code, and ast_variable::value.
|
static |
Parameter parsing callback for /channels/{channelId}/hold.
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 1518 of file res_ari_channels.c.
References ast_ari_channels_unhold(), ast_ari_response_error(), ast_ari_validate_void(), ast_ari_channels_unhold_args::channel_id, ast_ari_response::message, ast_variable::name, ast_variable::next, ast_ari_response::response_code, and ast_variable::value.
|
static |
Parameter parsing callback for /channels/{channelId}/mute.
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 1384 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_ari_channels_unmute_args::channel_id, ast_ari_channels_unmute_args::direction, ast_ari_response::message, ast_variable::name, ast_variable::next, 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 1362 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().