51#if defined(AST_DEVMODE)
72#if defined(AST_DEVMODE)
78#if defined(AST_DEVMODE)
90 if (200 <= code && code <= 299) {
102 "Internal Server Error",
"Response validation failed");
106fin: __attribute__((unused))
186#if defined(AST_DEVMODE)
191 for (i = get_params; i; i = i->
next) {
192 if (strcmp(i->
name,
"endpoint") == 0) {
195 if (strcmp(i->
name,
"extension") == 0) {
198 if (strcmp(i->
name,
"context") == 0) {
201 if (strcmp(i->
name,
"priority") == 0) {
204 if (strcmp(i->
name,
"label") == 0) {
207 if (strcmp(i->
name,
"app") == 0) {
210 if (strcmp(i->
name,
"appArgs") == 0) {
213 if (strcmp(i->
name,
"callerId") == 0) {
216 if (strcmp(i->
name,
"timeout") == 0) {
219 if (strcmp(i->
name,
"channelId") == 0) {
222 if (strcmp(i->
name,
"otherChannelId") == 0) {
225 if (strcmp(i->
name,
"originator") == 0) {
228 if (strcmp(i->
name,
"formats") == 0) {
233 args.variables = body;
235#if defined(AST_DEVMODE)
249 if (200 <= code && code <= 299) {
261 "Internal Server Error",
"Response validation failed");
265fin: __attribute__((unused))
321#if defined(AST_DEVMODE)
326 for (i = get_params; i; i = i->
next) {
327 if (strcmp(i->
name,
"endpoint") == 0) {
330 if (strcmp(i->
name,
"app") == 0) {
333 if (strcmp(i->
name,
"appArgs") == 0) {
336 if (strcmp(i->
name,
"channelId") == 0) {
339 if (strcmp(i->
name,
"otherChannelId") == 0) {
342 if (strcmp(i->
name,
"originator") == 0) {
345 if (strcmp(i->
name,
"formats") == 0) {
350 args.variables = body;
352#if defined(AST_DEVMODE)
365 if (200 <= code && code <= 299) {
369 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/create\n", code);
377 "Internal Server Error",
"Response validation failed");
381fin: __attribute__((unused))
400#if defined(AST_DEVMODE)
405 for (i = path_vars; i; i = i->
next) {
406 if (strcmp(i->
name,
"channelId") == 0) {
412#if defined(AST_DEVMODE)
425 if (200 <= code && code <= 299) {
429 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}\n", code);
435 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}\n");
437 "Internal Server Error",
"Response validation failed");
441fin: __attribute__((unused))
517#if defined(AST_DEVMODE)
522 for (i = get_params; i; i = i->
next) {
523 if (strcmp(i->
name,
"endpoint") == 0) {
526 if (strcmp(i->
name,
"extension") == 0) {
529 if (strcmp(i->
name,
"context") == 0) {
532 if (strcmp(i->
name,
"priority") == 0) {
535 if (strcmp(i->
name,
"label") == 0) {
538 if (strcmp(i->
name,
"app") == 0) {
541 if (strcmp(i->
name,
"appArgs") == 0) {
544 if (strcmp(i->
name,
"callerId") == 0) {
547 if (strcmp(i->
name,
"timeout") == 0) {
550 if (strcmp(i->
name,
"otherChannelId") == 0) {
553 if (strcmp(i->
name,
"originator") == 0) {
556 if (strcmp(i->
name,
"formats") == 0) {
561 for (i = path_vars; i; i = i->
next) {
562 if (strcmp(i->
name,
"channelId") == 0) {
567 args.variables = body;
569#if defined(AST_DEVMODE)
583 if (200 <= code && code <= 299) {
587 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}\n", code);
593 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}\n");
595 "Internal Server Error",
"Response validation failed");
599fin: __attribute__((unused))
635#if defined(AST_DEVMODE)
640 for (i = get_params; i; i = i->
next) {
641 if (strcmp(i->
name,
"reason_code") == 0) {
644 if (strcmp(i->
name,
"reason") == 0) {
649 for (i = path_vars; i; i = i->
next) {
650 if (strcmp(i->
name,
"channelId") == 0) {
660#if defined(AST_DEVMODE)
674 if (200 <= code && code <= 299) {
678 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}\n", code);
684 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}\n");
686 "Internal Server Error",
"Response validation failed");
690fin: __attribute__((unused))
734#if defined(AST_DEVMODE)
739 for (i = get_params; i; i = i->
next) {
740 if (strcmp(i->
name,
"context") == 0) {
743 if (strcmp(i->
name,
"extension") == 0) {
746 if (strcmp(i->
name,
"priority") == 0) {
749 if (strcmp(i->
name,
"label") == 0) {
754 for (i = path_vars; i; i = i->
next) {
755 if (strcmp(i->
name,
"channelId") == 0) {
765#if defined(AST_DEVMODE)
780 if (200 <= code && code <= 299) {
784 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/continue\n", code);
790 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/continue\n");
792 "Internal Server Error",
"Response validation failed");
796fin: __attribute__((unused))
832#if defined(AST_DEVMODE)
837 for (i = get_params; i; i = i->
next) {
838 if (strcmp(i->
name,
"app") == 0) {
841 if (strcmp(i->
name,
"appArgs") == 0) {
846 for (i = path_vars; i; i = i->
next) {
847 if (strcmp(i->
name,
"channelId") == 0) {
857#if defined(AST_DEVMODE)
871 if (200 <= code && code <= 299) {
875 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/move\n", code);
881 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/move\n");
883 "Internal Server Error",
"Response validation failed");
887fin: __attribute__((unused))
919#if defined(AST_DEVMODE)
924 for (i = get_params; i; i = i->
next) {
925 if (strcmp(i->
name,
"endpoint") == 0) {
930 for (i = path_vars; i; i = i->
next) {
931 if (strcmp(i->
name,
"channelId") == 0) {
941#if defined(AST_DEVMODE)
958 if (200 <= code && code <= 299) {
962 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/redirect\n", code);
968 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/redirect\n");
970 "Internal Server Error",
"Response validation failed");
974fin: __attribute__((unused))
993#if defined(AST_DEVMODE)
998 for (i = path_vars; i; i = i->
next) {
999 if (strcmp(i->
name,
"channelId") == 0) {
1005#if defined(AST_DEVMODE)
1020 if (200 <= code && code <= 299) {
1024 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/answer\n", code);
1030 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/answer\n");
1032 "Internal Server Error",
"Response validation failed");
1036fin: __attribute__((unused))
1055#if defined(AST_DEVMODE)
1060 for (i = path_vars; i; i = i->
next) {
1061 if (strcmp(i->
name,
"channelId") == 0) {
1067#if defined(AST_DEVMODE)
1082 if (200 <= code && code <= 299) {
1086 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/ring\n", code);
1092 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/ring\n");
1094 "Internal Server Error",
"Response validation failed");
1098fin: __attribute__((unused))
1117#if defined(AST_DEVMODE)
1122 for (i = path_vars; i; i = i->
next) {
1123 if (strcmp(i->
name,
"channelId") == 0) {
1129#if defined(AST_DEVMODE)
1144 if (200 <= code && code <= 299) {
1148 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/ring\n", code);
1154 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/ring\n");
1156 "Internal Server Error",
"Response validation failed");
1160fin: __attribute__((unused))
1208#if defined(AST_DEVMODE)
1213 for (i = get_params; i; i = i->
next) {
1214 if (strcmp(i->
name,
"dtmf") == 0) {
1217 if (strcmp(i->
name,
"before") == 0) {
1220 if (strcmp(i->
name,
"between") == 0) {
1223 if (strcmp(i->
name,
"duration") == 0) {
1226 if (strcmp(i->
name,
"after") == 0) {
1231 for (i = path_vars; i; i = i->
next) {
1232 if (strcmp(i->
name,
"channelId") == 0) {
1242#if defined(AST_DEVMODE)
1258 if (200 <= code && code <= 299) {
1262 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/dtmf\n", code);
1268 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/dtmf\n");
1270 "Internal Server Error",
"Response validation failed");
1274fin: __attribute__((unused))
1306#if defined(AST_DEVMODE)
1311 for (i = get_params; i; i = i->
next) {
1312 if (strcmp(i->
name,
"direction") == 0) {
1317 for (i = path_vars; i; i = i->
next) {
1318 if (strcmp(i->
name,
"channelId") == 0) {
1328#if defined(AST_DEVMODE)
1343 if (200 <= code && code <= 299) {
1347 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/mute\n", code);
1353 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/mute\n");
1355 "Internal Server Error",
"Response validation failed");
1359fin: __attribute__((unused))
1391#if defined(AST_DEVMODE)
1396 for (i = get_params; i; i = i->
next) {
1397 if (strcmp(i->
name,
"direction") == 0) {
1402 for (i = path_vars; i; i = i->
next) {
1403 if (strcmp(i->
name,
"channelId") == 0) {
1413#if defined(AST_DEVMODE)
1428 if (200 <= code && code <= 299) {
1432 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/mute\n", code);
1438 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/mute\n");
1440 "Internal Server Error",
"Response validation failed");
1444fin: __attribute__((unused))
1463#if defined(AST_DEVMODE)
1468 for (i = path_vars; i; i = i->
next) {
1469 if (strcmp(i->
name,
"channelId") == 0) {
1475#if defined(AST_DEVMODE)
1490 if (200 <= code && code <= 299) {
1494 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/hold\n", code);
1500 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/hold\n");
1502 "Internal Server Error",
"Response validation failed");
1506fin: __attribute__((unused))
1525#if defined(AST_DEVMODE)
1530 for (i = path_vars; i; i = i->
next) {
1531 if (strcmp(i->
name,
"channelId") == 0) {
1537#if defined(AST_DEVMODE)
1552 if (200 <= code && code <= 299) {
1556 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/hold\n", code);
1562 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/hold\n");
1564 "Internal Server Error",
"Response validation failed");
1568fin: __attribute__((unused))
1600#if defined(AST_DEVMODE)
1605 for (i = get_params; i; i = i->
next) {
1606 if (strcmp(i->
name,
"mohClass") == 0) {
1611 for (i = path_vars; i; i = i->
next) {
1612 if (strcmp(i->
name,
"channelId") == 0) {
1622#if defined(AST_DEVMODE)
1637 if (200 <= code && code <= 299) {
1641 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/moh\n", code);
1647 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/moh\n");
1649 "Internal Server Error",
"Response validation failed");
1653fin: __attribute__((unused))
1672#if defined(AST_DEVMODE)
1677 for (i = path_vars; i; i = i->
next) {
1678 if (strcmp(i->
name,
"channelId") == 0) {
1684#if defined(AST_DEVMODE)
1699 if (200 <= code && code <= 299) {
1703 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/moh\n", code);
1709 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/moh\n");
1711 "Internal Server Error",
"Response validation failed");
1715fin: __attribute__((unused))
1734#if defined(AST_DEVMODE)
1739 for (i = path_vars; i; i = i->
next) {
1740 if (strcmp(i->
name,
"channelId") == 0) {
1746#if defined(AST_DEVMODE)
1761 if (200 <= code && code <= 299) {
1765 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/silence\n", code);
1771 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/silence\n");
1773 "Internal Server Error",
"Response validation failed");
1777fin: __attribute__((unused))
1796#if defined(AST_DEVMODE)
1801 for (i = path_vars; i; i = i->
next) {
1802 if (strcmp(i->
name,
"channelId") == 0) {
1808#if defined(AST_DEVMODE)
1823 if (200 <= code && code <= 299) {
1827 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/silence\n", code);
1833 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/silence\n");
1835 "Internal Server Error",
"Response validation failed");
1839fin: __attribute__((unused))
1864 for (i = 0; i <
args->media_count; ++i) {
1869 args->media_count = 1;
1912#if defined(AST_DEVMODE)
1917 for (i = get_params; i; i = i->
next) {
1918 if (strcmp(i->
name,
"media") == 0) {
1924 if (!
args.media_parse) {
1929 if (strlen(
args.media_parse) == 0) {
1931 args.media_count = 1;
1932 vals[0] =
args.media_parse;
1935 args.media_parse,
',', vals,
1939 if (
args.media_count == 0) {
1947 "Too many values for media");
1957 for (j = 0; j <
args.media_count; ++j) {
1958 args.media[j] = (vals[j]);
1961 if (strcmp(i->
name,
"lang") == 0) {
1964 if (strcmp(i->
name,
"offsetms") == 0) {
1967 if (strcmp(i->
name,
"skipms") == 0) {
1970 if (strcmp(i->
name,
"playbackId") == 0) {
1975 for (i = path_vars; i; i = i->
next) {
1976 if (strcmp(i->
name,
"channelId") == 0) {
1986#if defined(AST_DEVMODE)
2001 if (200 <= code && code <= 299) {
2005 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/play\n", code);
2011 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/play\n");
2013 "Internal Server Error",
"Response validation failed");
2017fin: __attribute__((unused))
2044 for (i = 0; i <
args->media_count; ++i) {
2049 args->media_count = 1;
2088#if defined(AST_DEVMODE)
2093 for (i = get_params; i; i = i->
next) {
2094 if (strcmp(i->
name,
"media") == 0) {
2100 if (!
args.media_parse) {
2105 if (strlen(
args.media_parse) == 0) {
2107 args.media_count = 1;
2108 vals[0] =
args.media_parse;
2111 args.media_parse,
',', vals,
2115 if (
args.media_count == 0) {
2123 "Too many values for media");
2133 for (j = 0; j <
args.media_count; ++j) {
2134 args.media[j] = (vals[j]);
2137 if (strcmp(i->
name,
"lang") == 0) {
2140 if (strcmp(i->
name,
"offsetms") == 0) {
2143 if (strcmp(i->
name,
"skipms") == 0) {
2148 for (i = path_vars; i; i = i->
next) {
2149 if (strcmp(i->
name,
"channelId") == 0) {
2152 if (strcmp(i->
name,
"playbackId") == 0) {
2162#if defined(AST_DEVMODE)
2177 if (200 <= code && code <= 299) {
2181 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/play/{playbackId}\n", code);
2187 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/play/{playbackId}\n");
2189 "Internal Server Error",
"Response validation failed");
2193fin: __attribute__((unused))
2251#if defined(AST_DEVMODE)
2256 for (i = get_params; i; i = i->
next) {
2257 if (strcmp(i->
name,
"name") == 0) {
2260 if (strcmp(i->
name,
"format") == 0) {
2263 if (strcmp(i->
name,
"maxDurationSeconds") == 0) {
2264 args.max_duration_seconds = atoi(i->
value);
2266 if (strcmp(i->
name,
"maxSilenceSeconds") == 0) {
2267 args.max_silence_seconds = atoi(i->
value);
2269 if (strcmp(i->
name,
"ifExists") == 0) {
2272 if (strcmp(i->
name,
"beep") == 0) {
2275 if (strcmp(i->
name,
"terminateOn") == 0) {
2280 for (i = path_vars; i; i = i->
next) {
2281 if (strcmp(i->
name,
"channelId") == 0) {
2291#if defined(AST_DEVMODE)
2307 if (200 <= code && code <= 299) {
2311 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/record\n", code);
2317 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/record\n");
2319 "Internal Server Error",
"Response validation failed");
2323fin: __attribute__((unused))
2355#if defined(AST_DEVMODE)
2360 for (i = get_params; i; i = i->
next) {
2361 if (strcmp(i->
name,
"variable") == 0) {
2366 for (i = path_vars; i; i = i->
next) {
2367 if (strcmp(i->
name,
"channelId") == 0) {
2377#if defined(AST_DEVMODE)
2392 if (200 <= code && code <= 299) {
2396 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/variable\n", code);
2402 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/variable\n");
2404 "Internal Server Error",
"Response validation failed");
2408fin: __attribute__((unused))
2444#if defined(AST_DEVMODE)
2449 for (i = get_params; i; i = i->
next) {
2450 if (strcmp(i->
name,
"variable") == 0) {
2453 if (strcmp(i->
name,
"value") == 0) {
2458 for (i = path_vars; i; i = i->
next) {
2459 if (strcmp(i->
name,
"channelId") == 0) {
2469#if defined(AST_DEVMODE)
2484 if (200 <= code && code <= 299) {
2488 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/variable\n", code);
2494 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/variable\n");
2496 "Internal Server Error",
"Response validation failed");
2500fin: __attribute__((unused))
2548#if defined(AST_DEVMODE)
2553 for (i = get_params; i; i = i->
next) {
2554 if (strcmp(i->
name,
"spy") == 0) {
2557 if (strcmp(i->
name,
"whisper") == 0) {
2560 if (strcmp(i->
name,
"app") == 0) {
2563 if (strcmp(i->
name,
"appArgs") == 0) {
2566 if (strcmp(i->
name,
"snoopId") == 0) {
2571 for (i = path_vars; i; i = i->
next) {
2572 if (strcmp(i->
name,
"channelId") == 0) {
2582#if defined(AST_DEVMODE)
2596 if (200 <= code && code <= 299) {
2600 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/snoop\n", code);
2606 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/snoop\n");
2608 "Internal Server Error",
"Response validation failed");
2612fin: __attribute__((unused))
2656#if defined(AST_DEVMODE)
2661 for (i = get_params; i; i = i->
next) {
2662 if (strcmp(i->
name,
"spy") == 0) {
2665 if (strcmp(i->
name,
"whisper") == 0) {
2668 if (strcmp(i->
name,
"app") == 0) {
2671 if (strcmp(i->
name,
"appArgs") == 0) {
2676 for (i = path_vars; i; i = i->
next) {
2677 if (strcmp(i->
name,
"channelId") == 0) {
2680 if (strcmp(i->
name,
"snoopId") == 0) {
2690#if defined(AST_DEVMODE)
2704 if (200 <= code && code <= 299) {
2708 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/snoop/{snoopId}\n", code);
2714 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/snoop/{snoopId}\n");
2716 "Internal Server Error",
"Response validation failed");
2720fin: __attribute__((unused))
2756#if defined(AST_DEVMODE)
2761 for (i = get_params; i; i = i->
next) {
2762 if (strcmp(i->
name,
"caller") == 0) {
2765 if (strcmp(i->
name,
"timeout") == 0) {
2770 for (i = path_vars; i; i = i->
next) {
2771 if (strcmp(i->
name,
"channelId") == 0) {
2781#if defined(AST_DEVMODE)
2795 if (200 <= code && code <= 299) {
2799 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/dial\n", code);
2805 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/dial\n");
2807 "Internal Server Error",
"Response validation failed");
2811fin: __attribute__((unused))
2830#if defined(AST_DEVMODE)
2835 for (i = path_vars; i; i = i->
next) {
2836 if (strcmp(i->
name,
"channelId") == 0) {
2842#if defined(AST_DEVMODE)
2855 if (200 <= code && code <= 299) {
2859 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/rtp_statistics\n", code);
2865 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/rtp_statistics\n");
2867 "Internal Server Error",
"Response validation failed");
2871fin: __attribute__((unused))
2935#if defined(AST_DEVMODE)
2940 for (i = get_params; i; i = i->
next) {
2941 if (strcmp(i->
name,
"channelId") == 0) {
2944 if (strcmp(i->
name,
"app") == 0) {
2947 if (strcmp(i->
name,
"external_host") == 0) {
2950 if (strcmp(i->
name,
"encapsulation") == 0) {
2953 if (strcmp(i->
name,
"transport") == 0) {
2956 if (strcmp(i->
name,
"connection_type") == 0) {
2959 if (strcmp(i->
name,
"format") == 0) {
2962 if (strcmp(i->
name,
"direction") == 0) {
2965 if (strcmp(i->
name,
"data") == 0) {
2970 args.variables = body;
2972#if defined(AST_DEVMODE)
2986 if (200 <= code && code <= 299) {
2990 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/externalMedia\n", code);
2996 ast_log(
LOG_ERROR,
"Response validation failed for /channels/externalMedia\n");
2998 "Internal Server Error",
"Response validation failed");
3002fin: __attribute__((unused))
3195 .children = { &
channels_channelId_continue,&
channels_channelId_move,&
channels_channelId_redirect,&
channels_channelId_answer,&
channels_channelId_ring,&
channels_channelId_dtmf,&
channels_channelId_mute,&
channels_channelId_hold,&
channels_channelId_moh,&
channels_channelId_silence,&
channels_channelId_play,&
channels_channelId_record,&
channels_channelId_variable,&
channels_channelId_snoop,&
channels_channelId_dial,&
channels_channelId_rtp_statistics, }
3241 .
requires =
"res_ari,res_ari_model,res_stasis,res_stasis_answer,res_stasis_playback,res_stasis_recording,res_stasis_snoop",
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_channel(struct ast_json *json)
Validator for Channel.
int ast_ari_validate_rtpstat(struct ast_json *json)
Validator for RTPstat.
ari_validator ast_ari_validate_channel_fn(void)
Function pointer to ast_ari_validate_channel().
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 struct stasis_rest_handlers channels_channelId_hold
REST handler for /api-docs/channels.json.
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.
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.
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.
static struct stasis_rest_handlers channels_channelId_snoop
REST handler for /api-docs/channels.json.
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.
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.
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.
static struct stasis_rest_handlers channels_channelId_silence
REST handler for /api-docs/channels.json.
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.
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.
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}.
static struct stasis_rest_handlers channels_channelId_mute
REST handler for /api-docs/channels.json.
static struct stasis_rest_handlers channels_create
REST handler for /api-docs/channels.json.
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.
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}.
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.
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.
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.
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.
static struct stasis_rest_handlers channels_channelId
REST handler for /api-docs/channels.json.
static struct stasis_rest_handlers channels_channelId_variable
REST handler for /api-docs/channels.json.
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.
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.
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.
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.
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.
static struct stasis_rest_handlers channels_channelId_answer
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_rtp_statistics
REST handler for /api-docs/channels.json.
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}.
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.
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.
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.
static struct stasis_rest_handlers channels_channelId_moh
REST handler for /api-docs/channels.json.
static struct stasis_rest_handlers channels_channelId_play
REST handler for /api-docs/channels.json.
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.
static struct stasis_rest_handlers channels_channelId_continue
REST handler for /api-docs/channels.json.
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.
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.
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.
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.
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}.
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}.
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.
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.
static struct stasis_rest_handlers channels_channelId_snoop_snoopId
REST handler for /api-docs/channels.json.
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}.
int ast_ari_channels_create_parse_body(struct ast_json *body, struct ast_ari_channels_create_args *args)
Body parsing function for /channels/create.
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.
static struct stasis_rest_handlers channels_channelId_dtmf
REST handler for /api-docs/channels.json.
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.
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.
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.
static struct stasis_rest_handlers channels_externalMedia
REST handler for /api-docs/channels.json.
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.
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.
static int load_module(void)
static struct stasis_rest_handlers channels_channelId_move
REST handler for /api-docs/channels.json.
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.
static int unload_module(void)
static struct stasis_rest_handlers channels_channelId_ring
REST handler for /api-docs/channels.json.
static struct stasis_rest_handlers channels_channelId_redirect
REST handler for /api-docs/channels.json.
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.
static struct stasis_rest_handlers channels_channelId_dial
REST handler for /api-docs/channels.json.
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}.
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.
static struct stasis_rest_handlers channels_channelId_play_playbackId
REST handler for /api-docs/channels.json.
int ast_ari_channels_originate_parse_body(struct ast_json *body, struct ast_ari_channels_originate_args *args)
Body parsing function for /channels.
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.
static struct stasis_rest_handlers channels
REST handler for /api-docs/channels.json.
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.
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}.
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.
int ast_ari_channels_hangup_parse_body(struct ast_json *body, struct ast_ari_channels_hangup_args *args)
Body parsing function for /channels/{channelId}.
void ast_ari_channels_mute(struct ast_variable *headers, struct ast_ari_channels_mute_args *args, struct ast_ari_response *response)
Mute a channel.
void ast_ari_channels_snoop_channel_with_id(struct ast_variable *headers, struct ast_ari_channels_snoop_channel_with_id_args *args, struct ast_ari_response *response)
Start snooping.
void ast_ari_channels_continue_in_dialplan(struct ast_variable *headers, struct ast_ari_channels_continue_in_dialplan_args *args, struct ast_ari_response *response)
Exit application; continue execution in the dialplan.
void ast_ari_channels_start_moh(struct ast_variable *headers, struct ast_ari_channels_start_moh_args *args, struct ast_ari_response *response)
Play music on hold to a channel.
void ast_ari_channels_stop_moh(struct ast_variable *headers, struct ast_ari_channels_stop_moh_args *args, struct ast_ari_response *response)
Stop playing music on hold to a channel.
void ast_ari_channels_move(struct ast_variable *headers, struct ast_ari_channels_move_args *args, struct ast_ari_response *response)
Move the channel from one Stasis application to another.
void ast_ari_channels_send_dtmf(struct ast_variable *headers, struct ast_ari_channels_send_dtmf_args *args, struct ast_ari_response *response)
Send provided DTMF to a given channel.
void ast_ari_channels_unmute(struct ast_variable *headers, struct ast_ari_channels_unmute_args *args, struct ast_ari_response *response)
Unmute a channel.
void ast_ari_channels_dial(struct ast_variable *headers, struct ast_ari_channels_dial_args *args, struct ast_ari_response *response)
Dial a created channel.
void ast_ari_channels_create(struct ast_variable *headers, struct ast_ari_channels_create_args *args, struct ast_ari_response *response)
Create channel.
void ast_ari_channels_list(struct ast_variable *headers, struct ast_ari_channels_list_args *args, struct ast_ari_response *response)
List all active channels in Asterisk.
void ast_ari_channels_get(struct ast_variable *headers, struct ast_ari_channels_get_args *args, struct ast_ari_response *response)
Channel details.
void ast_ari_channels_snoop_channel(struct ast_variable *headers, struct ast_ari_channels_snoop_channel_args *args, struct ast_ari_response *response)
Start snooping.
void ast_ari_channels_ring(struct ast_variable *headers, struct ast_ari_channels_ring_args *args, struct ast_ari_response *response)
Indicate ringing to a channel.
void ast_ari_channels_play(struct ast_variable *headers, struct ast_ari_channels_play_args *args, struct ast_ari_response *response)
Start playback of media.
void ast_ari_channels_stop_silence(struct ast_variable *headers, struct ast_ari_channels_stop_silence_args *args, struct ast_ari_response *response)
Stop playing silence to a channel.
void ast_ari_channels_external_media(struct ast_variable *headers, struct ast_ari_channels_external_media_args *args, struct ast_ari_response *response)
Start an External Media session.
void ast_ari_channels_ring_stop(struct ast_variable *headers, struct ast_ari_channels_ring_stop_args *args, struct ast_ari_response *response)
Stop ringing indication on a channel if locally generated.
void ast_ari_channels_start_silence(struct ast_variable *headers, struct ast_ari_channels_start_silence_args *args, struct ast_ari_response *response)
Play silence to a channel.
void ast_ari_channels_unhold(struct ast_variable *headers, struct ast_ari_channels_unhold_args *args, struct ast_ari_response *response)
Remove a channel from hold.
void ast_ari_channels_originate(struct ast_variable *headers, struct ast_ari_channels_originate_args *args, struct ast_ari_response *response)
Create a new channel (originate).
void ast_ari_channels_redirect(struct ast_variable *headers, struct ast_ari_channels_redirect_args *args, struct ast_ari_response *response)
Redirect the channel to a different location.
void ast_ari_channels_record(struct ast_variable *headers, struct ast_ari_channels_record_args *args, struct ast_ari_response *response)
Start a recording.
void ast_ari_channels_set_channel_var(struct ast_variable *headers, struct ast_ari_channels_set_channel_var_args *args, struct ast_ari_response *response)
Set the value of a channel variable or function.
void ast_ari_channels_hold(struct ast_variable *headers, struct ast_ari_channels_hold_args *args, struct ast_ari_response *response)
Hold a channel.
void ast_ari_channels_answer(struct ast_variable *headers, struct ast_ari_channels_answer_args *args, struct ast_ari_response *response)
Answer a channel.
void ast_ari_channels_play_with_id(struct ast_variable *headers, struct ast_ari_channels_play_with_id_args *args, struct ast_ari_response *response)
Start playback of media and specify the playbackId.
void ast_ari_channels_rtpstatistics(struct ast_variable *headers, struct ast_ari_channels_rtpstatistics_args *args, struct ast_ari_response *response)
RTP stats on a channel.
void ast_ari_channels_get_channel_var(struct ast_variable *headers, struct ast_ari_channels_get_channel_var_args *args, struct ast_ari_response *response)
Get the value of a channel variable or function.
void ast_ari_channels_originate_with_id(struct ast_variable *headers, struct ast_ari_channels_originate_with_id_args *args, struct ast_ari_response *response)
Create a new channel (originate with id).
void ast_ari_channels_hangup(struct ast_variable *headers, struct ast_ari_channels_hangup_args *args, struct ast_ari_response *response)
Delete (i.e. hangup) a channel.
Generated file - declares stubs to be implemented in res/ari/resource_channels.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