49#if defined(AST_DEVMODE)
70#if defined(AST_DEVMODE)
76#if defined(AST_DEVMODE)
88 if (200 <= code && code <= 299) {
100 "Internal Server Error",
"Response validation failed");
104fin: __attribute__((unused))
144#if defined(AST_DEVMODE)
149 for (i = get_params; i; i = i->
next) {
150 if (strcmp(i->
name,
"type") == 0) {
153 if (strcmp(i->
name,
"bridgeId") == 0) {
156 if (strcmp(i->
name,
"name") == 0) {
161 args.variables = body;
163#if defined(AST_DEVMODE)
176 if (200 <= code && code <= 299) {
188 "Internal Server Error",
"Response validation failed");
192fin: __attribute__((unused))
228#if defined(AST_DEVMODE)
233 for (i = get_params; i; i = i->
next) {
234 if (strcmp(i->
name,
"type") == 0) {
237 if (strcmp(i->
name,
"name") == 0) {
242 for (i = path_vars; i; i = i->
next) {
243 if (strcmp(i->
name,
"bridgeId") == 0) {
248 args.variables = body;
250#if defined(AST_DEVMODE)
263 if (200 <= code && code <= 299) {
267 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}\n", code);
275 "Internal Server Error",
"Response validation failed");
279fin: __attribute__((unused))
298#if defined(AST_DEVMODE)
303 for (i = path_vars; i; i = i->
next) {
304 if (strcmp(i->
name,
"bridgeId") == 0) {
310#if defined(AST_DEVMODE)
323 if (200 <= code && code <= 299) {
327 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}\n", code);
335 "Internal Server Error",
"Response validation failed");
339fin: __attribute__((unused))
358#if defined(AST_DEVMODE)
363 for (i = path_vars; i; i = i->
next) {
364 if (strcmp(i->
name,
"bridgeId") == 0) {
370#if defined(AST_DEVMODE)
383 if (200 <= code && code <= 299) {
387 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}\n", code);
395 "Internal Server Error",
"Response validation failed");
399fin: __attribute__((unused))
431#if defined(AST_DEVMODE)
436 for (i = get_params; i; i = i->
next) {
437 if (strcmp(i->
name,
"variable") == 0) {
442 for (i = path_vars; i; i = i->
next) {
443 if (strcmp(i->
name,
"bridgeId") == 0) {
453#if defined(AST_DEVMODE)
468 if (200 <= code && code <= 299) {
472 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}/variable\n", code);
478 ast_log(
LOG_ERROR,
"Response validation failed for /bridges/{bridgeId}/variable\n");
480 "Internal Server Error",
"Response validation failed");
484fin: __attribute__((unused))
524#if defined(AST_DEVMODE)
529 for (i = get_params; i; i = i->
next) {
530 if (strcmp(i->
name,
"variable") == 0) {
533 if (strcmp(i->
name,
"value") == 0) {
536 if (strcmp(i->
name,
"report_events") == 0) {
541 for (i = path_vars; i; i = i->
next) {
542 if (strcmp(i->
name,
"bridgeId") == 0) {
552#if defined(AST_DEVMODE)
567 if (200 <= code && code <= 299) {
571 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}/variable\n", code);
577 ast_log(
LOG_ERROR,
"Response validation failed for /bridges/{bridgeId}/variable\n");
579 "Internal Server Error",
"Response validation failed");
583fin: __attribute__((unused))
604 if (!
args->variables) {
608 for (i = 0; i <
args->variables_count; ++i) {
613 args->variables_count = 1;
615 if (!
args->variables) {
640#if defined(AST_DEVMODE)
645 for (i = get_params; i; i = i->
next) {
646 if (strcmp(i->
name,
"variables") == 0) {
652 if (!
args.variables_parse) {
657 if (strlen(
args.variables_parse) == 0) {
659 args.variables_count = 1;
660 vals[0] =
args.variables_parse;
663 args.variables_parse,
',', vals,
667 if (
args.variables_count == 0) {
675 "Too many values for variables");
680 if (!
args.variables) {
685 for (j = 0; j <
args.variables_count; ++j) {
686 args.variables[j] = (vals[j]);
691 for (i = path_vars; i; i = i->
next) {
692 if (strcmp(i->
name,
"bridgeId") == 0) {
702#if defined(AST_DEVMODE)
717 if (200 <= code && code <= 299) {
721 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}/variables\n", code);
727 ast_log(
LOG_ERROR,
"Response validation failed for /bridges/{bridgeId}/variables\n");
729 "Internal Server Error",
"Response validation failed");
733fin: __attribute__((unused))
762#if defined(AST_DEVMODE)
767 for (i = path_vars; i; i = i->
next) {
768 if (strcmp(i->
name,
"bridgeId") == 0) {
773 args.variables = body;
775#if defined(AST_DEVMODE)
790 if (200 <= code && code <= 299) {
794 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}/variables\n", code);
800 ast_log(
LOG_ERROR,
"Response validation failed for /bridges/{bridgeId}/variables\n");
802 "Internal Server Error",
"Response validation failed");
806fin: __attribute__((unused))
827 if (!
args->channel) {
831 for (i = 0; i <
args->channel_count; ++i) {
836 args->channel_count = 1;
838 if (!
args->channel) {
879#if defined(AST_DEVMODE)
884 for (i = get_params; i; i = i->
next) {
885 if (strcmp(i->
name,
"channel") == 0) {
891 if (!
args.channel_parse) {
896 if (strlen(
args.channel_parse) == 0) {
898 args.channel_count = 1;
899 vals[0] =
args.channel_parse;
902 args.channel_parse,
',', vals,
906 if (
args.channel_count == 0) {
914 "Too many values for channel");
924 for (j = 0; j <
args.channel_count; ++j) {
925 args.channel[j] = (vals[j]);
928 if (strcmp(i->
name,
"role") == 0) {
931 if (strcmp(i->
name,
"absorbDTMF") == 0) {
934 if (strcmp(i->
name,
"mute") == 0) {
937 if (strcmp(i->
name,
"inhibitConnectedLineUpdates") == 0) {
942 for (i = path_vars; i; i = i->
next) {
943 if (strcmp(i->
name,
"bridgeId") == 0) {
953#if defined(AST_DEVMODE)
969 if (200 <= code && code <= 299) {
973 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}/addChannel\n", code);
979 ast_log(
LOG_ERROR,
"Response validation failed for /bridges/{bridgeId}/addChannel\n");
981 "Internal Server Error",
"Response validation failed");
985fin: __attribute__((unused))
1008 if (!
args->channel) {
1012 for (i = 0; i <
args->channel_count; ++i) {
1017 args->channel_count = 1;
1019 if (!
args->channel) {
1044#if defined(AST_DEVMODE)
1049 for (i = get_params; i; i = i->
next) {
1050 if (strcmp(i->
name,
"channel") == 0) {
1056 if (!
args.channel_parse) {
1061 if (strlen(
args.channel_parse) == 0) {
1063 args.channel_count = 1;
1064 vals[0] =
args.channel_parse;
1067 args.channel_parse,
',', vals,
1071 if (
args.channel_count == 0) {
1079 "Too many values for channel");
1084 if (!
args.channel) {
1089 for (j = 0; j <
args.channel_count; ++j) {
1090 args.channel[j] = (vals[j]);
1095 for (i = path_vars; i; i = i->
next) {
1096 if (strcmp(i->
name,
"bridgeId") == 0) {
1106#if defined(AST_DEVMODE)
1122 if (200 <= code && code <= 299) {
1126 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}/removeChannel\n", code);
1132 ast_log(
LOG_ERROR,
"Response validation failed for /bridges/{bridgeId}/removeChannel\n");
1134 "Internal Server Error",
"Response validation failed");
1138fin: __attribute__((unused))
1159#if defined(AST_DEVMODE)
1164 for (i = path_vars; i; i = i->
next) {
1165 if (strcmp(i->
name,
"bridgeId") == 0) {
1168 if (strcmp(i->
name,
"channelId") == 0) {
1174#if defined(AST_DEVMODE)
1189 if (200 <= code && code <= 299) {
1193 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}/videoSource/{channelId}\n", code);
1199 ast_log(
LOG_ERROR,
"Response validation failed for /bridges/{bridgeId}/videoSource/{channelId}\n");
1201 "Internal Server Error",
"Response validation failed");
1205fin: __attribute__((unused))
1224#if defined(AST_DEVMODE)
1229 for (i = path_vars; i; i = i->
next) {
1230 if (strcmp(i->
name,
"bridgeId") == 0) {
1236#if defined(AST_DEVMODE)
1249 if (200 <= code && code <= 299) {
1253 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}/videoSource\n", code);
1259 ast_log(
LOG_ERROR,
"Response validation failed for /bridges/{bridgeId}/videoSource\n");
1261 "Internal Server Error",
"Response validation failed");
1265fin: __attribute__((unused))
1297#if defined(AST_DEVMODE)
1302 for (i = get_params; i; i = i->
next) {
1303 if (strcmp(i->
name,
"mohClass") == 0) {
1308 for (i = path_vars; i; i = i->
next) {
1309 if (strcmp(i->
name,
"bridgeId") == 0) {
1319#if defined(AST_DEVMODE)
1333 if (200 <= code && code <= 299) {
1337 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}/moh\n", code);
1343 ast_log(
LOG_ERROR,
"Response validation failed for /bridges/{bridgeId}/moh\n");
1345 "Internal Server Error",
"Response validation failed");
1349fin: __attribute__((unused))
1368#if defined(AST_DEVMODE)
1373 for (i = path_vars; i; i = i->
next) {
1374 if (strcmp(i->
name,
"bridgeId") == 0) {
1380#if defined(AST_DEVMODE)
1394 if (200 <= code && code <= 299) {
1398 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}/moh\n", code);
1404 ast_log(
LOG_ERROR,
"Response validation failed for /bridges/{bridgeId}/moh\n");
1406 "Internal Server Error",
"Response validation failed");
1410fin: __attribute__((unused))
1435 for (i = 0; i <
args->media_count; ++i) {
1440 args->media_count = 1;
1487#if defined(AST_DEVMODE)
1492 for (i = get_params; i; i = i->
next) {
1493 if (strcmp(i->
name,
"media") == 0) {
1499 if (!
args.media_parse) {
1504 if (strlen(
args.media_parse) == 0) {
1506 args.media_count = 1;
1507 vals[0] =
args.media_parse;
1510 args.media_parse,
',', vals,
1514 if (
args.media_count == 0) {
1522 "Too many values for media");
1532 for (j = 0; j <
args.media_count; ++j) {
1533 args.media[j] = (vals[j]);
1536 if (strcmp(i->
name,
"announcer_format") == 0) {
1539 if (strcmp(i->
name,
"lang") == 0) {
1542 if (strcmp(i->
name,
"offsetms") == 0) {
1545 if (strcmp(i->
name,
"skipms") == 0) {
1548 if (strcmp(i->
name,
"playbackId") == 0) {
1553 for (i = path_vars; i; i = i->
next) {
1554 if (strcmp(i->
name,
"bridgeId") == 0) {
1564#if defined(AST_DEVMODE)
1579 if (200 <= code && code <= 299) {
1583 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}/play\n", code);
1589 ast_log(
LOG_ERROR,
"Response validation failed for /bridges/{bridgeId}/play\n");
1591 "Internal Server Error",
"Response validation failed");
1595fin: __attribute__((unused))
1622 for (i = 0; i <
args->media_count; ++i) {
1627 args->media_count = 1;
1670#if defined(AST_DEVMODE)
1675 for (i = get_params; i; i = i->
next) {
1676 if (strcmp(i->
name,
"media") == 0) {
1682 if (!
args.media_parse) {
1687 if (strlen(
args.media_parse) == 0) {
1689 args.media_count = 1;
1690 vals[0] =
args.media_parse;
1693 args.media_parse,
',', vals,
1697 if (
args.media_count == 0) {
1705 "Too many values for media");
1715 for (j = 0; j <
args.media_count; ++j) {
1716 args.media[j] = (vals[j]);
1719 if (strcmp(i->
name,
"announcer_format") == 0) {
1722 if (strcmp(i->
name,
"lang") == 0) {
1725 if (strcmp(i->
name,
"offsetms") == 0) {
1728 if (strcmp(i->
name,
"skipms") == 0) {
1733 for (i = path_vars; i; i = i->
next) {
1734 if (strcmp(i->
name,
"bridgeId") == 0) {
1737 if (strcmp(i->
name,
"playbackId") == 0) {
1747#if defined(AST_DEVMODE)
1762 if (200 <= code && code <= 299) {
1766 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}/play/{playbackId}\n", code);
1772 ast_log(
LOG_ERROR,
"Response validation failed for /bridges/{bridgeId}/play/{playbackId}\n");
1774 "Internal Server Error",
"Response validation failed");
1778fin: __attribute__((unused))
1840#if defined(AST_DEVMODE)
1845 for (i = get_params; i; i = i->
next) {
1846 if (strcmp(i->
name,
"name") == 0) {
1849 if (strcmp(i->
name,
"format") == 0) {
1852 if (strcmp(i->
name,
"recorder_format") == 0) {
1855 if (strcmp(i->
name,
"maxDurationSeconds") == 0) {
1856 args.max_duration_seconds = atoi(i->
value);
1858 if (strcmp(i->
name,
"maxSilenceSeconds") == 0) {
1859 args.max_silence_seconds = atoi(i->
value);
1861 if (strcmp(i->
name,
"ifExists") == 0) {
1864 if (strcmp(i->
name,
"beep") == 0) {
1867 if (strcmp(i->
name,
"terminateOn") == 0) {
1872 for (i = path_vars; i; i = i->
next) {
1873 if (strcmp(i->
name,
"bridgeId") == 0) {
1883#if defined(AST_DEVMODE)
1899 if (200 <= code && code <= 299) {
1903 ast_log(
LOG_ERROR,
"Invalid error response %d for /bridges/{bridgeId}/record\n", code);
1909 ast_log(
LOG_ERROR,
"Response validation failed for /bridges/{bridgeId}/record\n");
1911 "Internal Server Error",
"Response validation failed");
1915fin: __attribute__((unused))
2061 .
requires =
"res_ari,res_ari_model,res_stasis,res_stasis_recording,res_stasis_playback",
int ast_ari_remove_handler(struct stasis_rest_handlers *handler)
void ast_ari_response_error(struct ast_ari_response *response, int response_code, const char *response_text, const char *message_fmt,...)
Fill in an error ast_ari_response.
void ast_ari_response_alloc_failed(struct ast_ari_response *response)
Fill in response with a 500 message for allocation failures.
int ast_ari_add_handler(struct stasis_rest_handlers *handler)
int ast_ari_validate_variable(struct ast_json *json)
Validator for Variable.
int ast_ari_validate_playback(struct ast_json *json)
Validator for Playback.
int ast_ari_validate_live_recording(struct ast_json *json)
Validator for LiveRecording.
int ast_ari_validate_bridge(struct ast_json *json)
Validator for Bridge.
ari_validator ast_ari_validate_bridge_fn(void)
Function pointer to ast_ari_validate_bridge().
int ast_ari_validate_variables(struct ast_json *json)
Validator for Variables.
Generated file - Build validators for ARI model objects.
int ast_ari_validate_void(struct ast_json *json)
Validator for native Swagger void.
int ast_ari_validate_list(struct ast_json *json, int(*fn)(struct ast_json *))
Validator for a Swagger List[]/JSON array.
Asterisk main include file. File version handling, generic pbx functions.
#define ast_strdup(str)
A wrapper for strdup()
#define ast_malloc(len)
A wrapper for malloc()
Application convenience functions, designed to give consistent look and feel to Asterisk apps.
#define ast_app_separate_args(a, b, c, d)
enum ast_json_type ast_json_typeof(const struct ast_json *value)
Get the type of value.
struct ast_json * ast_json_array_get(const struct ast_json *array, size_t index)
Get an element from an array.
const char * ast_json_string_get(const struct ast_json *string)
Get the value of a JSON string.
struct ast_json * ast_json_object_get(struct ast_json *object, const char *key)
Get a field from a JSON object.
intmax_t ast_json_integer_get(const struct ast_json *integer)
Get the value from a JSON integer.
int ast_json_is_true(const struct ast_json *value)
Check if value is JSON true.
size_t ast_json_array_size(const struct ast_json *array)
Get the size of a JSON array.
Asterisk module definitions.
#define AST_MODULE_INFO(keystr, flags_to_set, desc, fields...)
@ AST_MODULE_SUPPORT_CORE
#define ASTERISK_GPL_KEY
The text the key() function should return.
@ AST_MODULE_LOAD_SUCCESS
@ AST_MODULE_LOAD_DECLINE
Module has failed to load, may be in an inconsistent state.
static void ast_ari_bridges_stop_moh_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges/{bridgeId}/moh.
static struct stasis_rest_handlers bridges_bridgeId_play
REST handler for /api-docs/bridges.json.
static void ast_ari_bridges_destroy_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges/{bridgeId}.
static struct stasis_rest_handlers bridges_bridgeId_record
REST handler for /api-docs/bridges.json.
int ast_ari_bridges_get_bridge_var_parse_body(struct ast_json *body, struct ast_ari_bridges_get_bridge_var_args *args)
Body parsing function for /bridges/{bridgeId}/variable.
static void ast_ari_bridges_get_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges/{bridgeId}.
int ast_ari_bridges_add_channel_parse_body(struct ast_json *body, struct ast_ari_bridges_add_channel_args *args)
Body parsing function for /bridges/{bridgeId}/addChannel.
static void ast_ari_bridges_list_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges.
int ast_ari_bridges_set_bridge_var_parse_body(struct ast_json *body, struct ast_ari_bridges_set_bridge_var_args *args)
Body parsing function for /bridges/{bridgeId}/variable.
static void ast_ari_bridges_set_video_source_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges/{bridgeId}/videoSource/{channelId}.
static struct stasis_rest_handlers bridges_bridgeId_videoSource_channelId
REST handler for /api-docs/bridges.json.
static void ast_ari_bridges_create_with_id_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges/{bridgeId}.
static void ast_ari_bridges_get_bridge_vars_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges/{bridgeId}/variables.
int ast_ari_bridges_start_moh_parse_body(struct ast_json *body, struct ast_ari_bridges_start_moh_args *args)
Body parsing function for /bridges/{bridgeId}/moh.
static void ast_ari_bridges_create_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges.
int ast_ari_bridges_record_parse_body(struct ast_json *body, struct ast_ari_bridges_record_args *args)
Body parsing function for /bridges/{bridgeId}/record.
int ast_ari_bridges_get_bridge_vars_parse_body(struct ast_json *body, struct ast_ari_bridges_get_bridge_vars_args *args)
Body parsing function for /bridges/{bridgeId}/variables.
int ast_ari_bridges_create_with_id_parse_body(struct ast_json *body, struct ast_ari_bridges_create_with_id_args *args)
Body parsing function for /bridges/{bridgeId}.
static struct stasis_rest_handlers bridges_bridgeId_addChannel
REST handler for /api-docs/bridges.json.
int ast_ari_bridges_play_parse_body(struct ast_json *body, struct ast_ari_bridges_play_args *args)
Body parsing function for /bridges/{bridgeId}/play.
static void ast_ari_bridges_play_with_id_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges/{bridgeId}/play/{playbackId}.
static void ast_ari_bridges_remove_channel_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges/{bridgeId}/removeChannel.
static void ast_ari_bridges_play_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges/{bridgeId}/play.
static struct stasis_rest_handlers bridges_bridgeId_variables
REST handler for /api-docs/bridges.json.
int ast_ari_bridges_play_with_id_parse_body(struct ast_json *body, struct ast_ari_bridges_play_with_id_args *args)
Body parsing function for /bridges/{bridgeId}/play/{playbackId}.
static void ast_ari_bridges_start_moh_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges/{bridgeId}/moh.
static void ast_ari_bridges_set_bridge_vars_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges/{bridgeId}/variables.
static void ast_ari_bridges_record_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges/{bridgeId}/record.
static void ast_ari_bridges_clear_video_source_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges/{bridgeId}/videoSource.
static void ast_ari_bridges_get_bridge_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 /bridges/{bridgeId}/variable.
int ast_ari_bridges_set_bridge_vars_parse_body(struct ast_json *body, struct ast_ari_bridges_set_bridge_vars_args *args)
Body parsing function for /bridges/{bridgeId}/variables.
int ast_ari_bridges_create_parse_body(struct ast_json *body, struct ast_ari_bridges_create_args *args)
Body parsing function for /bridges.
static int load_module(void)
static void ast_ari_bridges_set_bridge_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 /bridges/{bridgeId}/variable.
static struct stasis_rest_handlers bridges_bridgeId_moh
REST handler for /api-docs/bridges.json.
static int unload_module(void)
int ast_ari_bridges_remove_channel_parse_body(struct ast_json *body, struct ast_ari_bridges_remove_channel_args *args)
Body parsing function for /bridges/{bridgeId}/removeChannel.
static struct stasis_rest_handlers bridges_bridgeId_play_playbackId
REST handler for /api-docs/bridges.json.
static struct stasis_rest_handlers bridges_bridgeId
REST handler for /api-docs/bridges.json.
static void ast_ari_bridges_add_channel_cb(struct ast_tcptls_session_instance *ser, struct ast_variable *get_params, struct ast_variable *path_vars, struct ast_variable *headers, struct ast_json *body, struct ast_ari_response *response)
Parameter parsing callback for /bridges/{bridgeId}/addChannel.
static struct stasis_rest_handlers bridges_bridgeId_removeChannel
REST handler for /api-docs/bridges.json.
static struct stasis_rest_handlers bridges_bridgeId_videoSource
REST handler for /api-docs/bridges.json.
static struct stasis_rest_handlers bridges
REST handler for /api-docs/bridges.json.
static struct stasis_rest_handlers bridges_bridgeId_variable
REST handler for /api-docs/bridges.json.
void ast_ari_bridges_add_channel(struct ast_variable *headers, struct ast_ari_bridges_add_channel_args *args, struct ast_ari_response *response)
Add a channel to a bridge.
void ast_ari_bridges_set_bridge_var(struct ast_variable *headers, struct ast_ari_bridges_set_bridge_var_args *args, struct ast_ari_response *response)
Set the value of a bridge variable or function.
void ast_ari_bridges_clear_video_source(struct ast_variable *headers, struct ast_ari_bridges_clear_video_source_args *args, struct ast_ari_response *response)
Removes any explicit video source in a multi-party mixing bridge. This operation has no effect on bri...
void ast_ari_bridges_get(struct ast_variable *headers, struct ast_ari_bridges_get_args *args, struct ast_ari_response *response)
Get bridge details.
void ast_ari_bridges_play_with_id(struct ast_variable *headers, struct ast_ari_bridges_play_with_id_args *args, struct ast_ari_response *response)
Start playback of media on a bridge.
void ast_ari_bridges_play(struct ast_variable *headers, struct ast_ari_bridges_play_args *args, struct ast_ari_response *response)
Start playback of media on a bridge.
void ast_ari_bridges_destroy(struct ast_variable *headers, struct ast_ari_bridges_destroy_args *args, struct ast_ari_response *response)
Shut down a bridge.
void ast_ari_bridges_remove_channel(struct ast_variable *headers, struct ast_ari_bridges_remove_channel_args *args, struct ast_ari_response *response)
Remove a channel from a bridge.
void ast_ari_bridges_create(struct ast_variable *headers, struct ast_ari_bridges_create_args *args, struct ast_ari_response *response)
Create a new bridge.
void ast_ari_bridges_create_with_id(struct ast_variable *headers, struct ast_ari_bridges_create_with_id_args *args, struct ast_ari_response *response)
Create a new bridge.
void ast_ari_bridges_get_bridge_vars(struct ast_variable *headers, struct ast_ari_bridges_get_bridge_vars_args *args, struct ast_ari_response *response)
Get the value of multiple bridge variables or functions.
void ast_ari_bridges_set_video_source(struct ast_variable *headers, struct ast_ari_bridges_set_video_source_args *args, struct ast_ari_response *response)
Set a channel as the video source in a multi-party mixing bridge. This operation has no effect on bri...
void ast_ari_bridges_record(struct ast_variable *headers, struct ast_ari_bridges_record_args *args, struct ast_ari_response *response)
Start a recording.
void ast_ari_bridges_start_moh(struct ast_variable *headers, struct ast_ari_bridges_start_moh_args *args, struct ast_ari_response *response)
Play music on hold to a bridge or change the MOH class that is playing.
void ast_ari_bridges_get_bridge_var(struct ast_variable *headers, struct ast_ari_bridges_get_bridge_var_args *args, struct ast_ari_response *response)
Get the value of a bridge variable or function.
void ast_ari_bridges_stop_moh(struct ast_variable *headers, struct ast_ari_bridges_stop_moh_args *args, struct ast_ari_response *response)
Stop playing music on hold to a bridge.
void ast_ari_bridges_list(struct ast_variable *headers, struct ast_ari_bridges_list_args *args, struct ast_ari_response *response)
List all active bridges in Asterisk.
void ast_ari_bridges_set_bridge_vars(struct ast_variable *headers, struct ast_ari_bridges_set_bridge_vars_args *args, struct ast_ari_response *response)
Set the values of multiple bridge variables or functions.
Generated file - declares stubs to be implemented in res/ari/resource_bridges.c.
Stasis Application API. See Stasis Application API for detailed documentation.
int attribute_pure ast_true(const char *val)
Make sure something is true. Determine if a string containing a boolean value is "true"....
struct ast_json * message
Abstract JSON element (object, array, string, int, ...).
describes a server instance
Structure for variables, used for configurations and for channel variables.
struct ast_variable * next
Handler for a single RESTful path segment.
const char * path_segment