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))
1179#if defined(AST_DEVMODE)
1184 for (i = path_vars; i; i = i->
next) {
1185 if (strcmp(i->
name,
"channelId") == 0) {
1191#if defined(AST_DEVMODE)
1206 if (200 <= code && code <= 299) {
1210 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/progress\n", code);
1216 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/progress\n");
1218 "Internal Server Error",
"Response validation failed");
1222fin: __attribute__((unused))
1270#if defined(AST_DEVMODE)
1275 for (i = get_params; i; i = i->
next) {
1276 if (strcmp(i->
name,
"dtmf") == 0) {
1279 if (strcmp(i->
name,
"before") == 0) {
1282 if (strcmp(i->
name,
"between") == 0) {
1285 if (strcmp(i->
name,
"duration") == 0) {
1288 if (strcmp(i->
name,
"after") == 0) {
1293 for (i = path_vars; i; i = i->
next) {
1294 if (strcmp(i->
name,
"channelId") == 0) {
1304#if defined(AST_DEVMODE)
1320 if (200 <= code && code <= 299) {
1324 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/dtmf\n", code);
1330 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/dtmf\n");
1332 "Internal Server Error",
"Response validation failed");
1336fin: __attribute__((unused))
1368#if defined(AST_DEVMODE)
1373 for (i = get_params; i; i = i->
next) {
1374 if (strcmp(i->
name,
"direction") == 0) {
1379 for (i = path_vars; i; i = i->
next) {
1380 if (strcmp(i->
name,
"channelId") == 0) {
1390#if defined(AST_DEVMODE)
1405 if (200 <= code && code <= 299) {
1409 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/mute\n", code);
1415 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/mute\n");
1417 "Internal Server Error",
"Response validation failed");
1421fin: __attribute__((unused))
1453#if defined(AST_DEVMODE)
1458 for (i = get_params; i; i = i->
next) {
1459 if (strcmp(i->
name,
"direction") == 0) {
1464 for (i = path_vars; i; i = i->
next) {
1465 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}/mute\n", code);
1500 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/mute\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))
1587#if defined(AST_DEVMODE)
1592 for (i = path_vars; i; i = i->
next) {
1593 if (strcmp(i->
name,
"channelId") == 0) {
1599#if defined(AST_DEVMODE)
1614 if (200 <= code && code <= 299) {
1618 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/hold\n", code);
1624 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/hold\n");
1626 "Internal Server Error",
"Response validation failed");
1630fin: __attribute__((unused))
1662#if defined(AST_DEVMODE)
1667 for (i = get_params; i; i = i->
next) {
1668 if (strcmp(i->
name,
"mohClass") == 0) {
1673 for (i = path_vars; i; i = i->
next) {
1674 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}/moh\n", code);
1771 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/moh\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))
1858#if defined(AST_DEVMODE)
1863 for (i = path_vars; i; i = i->
next) {
1864 if (strcmp(i->
name,
"channelId") == 0) {
1870#if defined(AST_DEVMODE)
1885 if (200 <= code && code <= 299) {
1889 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/silence\n", code);
1895 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/silence\n");
1897 "Internal Server Error",
"Response validation failed");
1901fin: __attribute__((unused))
1926 for (i = 0; i <
args->media_count; ++i) {
1931 args->media_count = 1;
1974#if defined(AST_DEVMODE)
1979 for (i = get_params; i; i = i->
next) {
1980 if (strcmp(i->
name,
"media") == 0) {
1986 if (!
args.media_parse) {
1991 if (strlen(
args.media_parse) == 0) {
1993 args.media_count = 1;
1994 vals[0] =
args.media_parse;
1997 args.media_parse,
',', vals,
2001 if (
args.media_count == 0) {
2009 "Too many values for media");
2019 for (j = 0; j <
args.media_count; ++j) {
2020 args.media[j] = (vals[j]);
2023 if (strcmp(i->
name,
"lang") == 0) {
2026 if (strcmp(i->
name,
"offsetms") == 0) {
2029 if (strcmp(i->
name,
"skipms") == 0) {
2032 if (strcmp(i->
name,
"playbackId") == 0) {
2037 for (i = path_vars; i; i = i->
next) {
2038 if (strcmp(i->
name,
"channelId") == 0) {
2048#if defined(AST_DEVMODE)
2063 if (200 <= code && code <= 299) {
2067 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/play\n", code);
2073 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/play\n");
2075 "Internal Server Error",
"Response validation failed");
2079fin: __attribute__((unused))
2106 for (i = 0; i <
args->media_count; ++i) {
2111 args->media_count = 1;
2150#if defined(AST_DEVMODE)
2155 for (i = get_params; i; i = i->
next) {
2156 if (strcmp(i->
name,
"media") == 0) {
2162 if (!
args.media_parse) {
2167 if (strlen(
args.media_parse) == 0) {
2169 args.media_count = 1;
2170 vals[0] =
args.media_parse;
2173 args.media_parse,
',', vals,
2177 if (
args.media_count == 0) {
2185 "Too many values for media");
2195 for (j = 0; j <
args.media_count; ++j) {
2196 args.media[j] = (vals[j]);
2199 if (strcmp(i->
name,
"lang") == 0) {
2202 if (strcmp(i->
name,
"offsetms") == 0) {
2205 if (strcmp(i->
name,
"skipms") == 0) {
2210 for (i = path_vars; i; i = i->
next) {
2211 if (strcmp(i->
name,
"channelId") == 0) {
2214 if (strcmp(i->
name,
"playbackId") == 0) {
2224#if defined(AST_DEVMODE)
2239 if (200 <= code && code <= 299) {
2243 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/play/{playbackId}\n", code);
2249 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/play/{playbackId}\n");
2251 "Internal Server Error",
"Response validation failed");
2255fin: __attribute__((unused))
2313#if defined(AST_DEVMODE)
2318 for (i = get_params; i; i = i->
next) {
2319 if (strcmp(i->
name,
"name") == 0) {
2322 if (strcmp(i->
name,
"format") == 0) {
2325 if (strcmp(i->
name,
"maxDurationSeconds") == 0) {
2326 args.max_duration_seconds = atoi(i->
value);
2328 if (strcmp(i->
name,
"maxSilenceSeconds") == 0) {
2329 args.max_silence_seconds = atoi(i->
value);
2331 if (strcmp(i->
name,
"ifExists") == 0) {
2334 if (strcmp(i->
name,
"beep") == 0) {
2337 if (strcmp(i->
name,
"terminateOn") == 0) {
2342 for (i = path_vars; i; i = i->
next) {
2343 if (strcmp(i->
name,
"channelId") == 0) {
2353#if defined(AST_DEVMODE)
2369 if (200 <= code && code <= 299) {
2373 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/record\n", code);
2379 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/record\n");
2381 "Internal Server Error",
"Response validation failed");
2385fin: __attribute__((unused))
2417#if defined(AST_DEVMODE)
2422 for (i = get_params; i; i = i->
next) {
2423 if (strcmp(i->
name,
"variable") == 0) {
2428 for (i = path_vars; i; i = i->
next) {
2429 if (strcmp(i->
name,
"channelId") == 0) {
2439#if defined(AST_DEVMODE)
2454 if (200 <= code && code <= 299) {
2458 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/variable\n", code);
2464 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/variable\n");
2466 "Internal Server Error",
"Response validation failed");
2470fin: __attribute__((unused))
2506#if defined(AST_DEVMODE)
2511 for (i = get_params; i; i = i->
next) {
2512 if (strcmp(i->
name,
"variable") == 0) {
2515 if (strcmp(i->
name,
"value") == 0) {
2520 for (i = path_vars; i; i = i->
next) {
2521 if (strcmp(i->
name,
"channelId") == 0) {
2531#if defined(AST_DEVMODE)
2546 if (200 <= code && code <= 299) {
2550 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/variable\n", code);
2556 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/variable\n");
2558 "Internal Server Error",
"Response validation failed");
2562fin: __attribute__((unused))
2610#if defined(AST_DEVMODE)
2615 for (i = get_params; i; i = i->
next) {
2616 if (strcmp(i->
name,
"spy") == 0) {
2619 if (strcmp(i->
name,
"whisper") == 0) {
2622 if (strcmp(i->
name,
"app") == 0) {
2625 if (strcmp(i->
name,
"appArgs") == 0) {
2628 if (strcmp(i->
name,
"snoopId") == 0) {
2633 for (i = path_vars; i; i = i->
next) {
2634 if (strcmp(i->
name,
"channelId") == 0) {
2644#if defined(AST_DEVMODE)
2658 if (200 <= code && code <= 299) {
2662 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/snoop\n", code);
2668 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/snoop\n");
2670 "Internal Server Error",
"Response validation failed");
2674fin: __attribute__((unused))
2718#if defined(AST_DEVMODE)
2723 for (i = get_params; i; i = i->
next) {
2724 if (strcmp(i->
name,
"spy") == 0) {
2727 if (strcmp(i->
name,
"whisper") == 0) {
2730 if (strcmp(i->
name,
"app") == 0) {
2733 if (strcmp(i->
name,
"appArgs") == 0) {
2738 for (i = path_vars; i; i = i->
next) {
2739 if (strcmp(i->
name,
"channelId") == 0) {
2742 if (strcmp(i->
name,
"snoopId") == 0) {
2752#if defined(AST_DEVMODE)
2766 if (200 <= code && code <= 299) {
2770 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/snoop/{snoopId}\n", code);
2776 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/snoop/{snoopId}\n");
2778 "Internal Server Error",
"Response validation failed");
2782fin: __attribute__((unused))
2818#if defined(AST_DEVMODE)
2823 for (i = get_params; i; i = i->
next) {
2824 if (strcmp(i->
name,
"caller") == 0) {
2827 if (strcmp(i->
name,
"timeout") == 0) {
2832 for (i = path_vars; i; i = i->
next) {
2833 if (strcmp(i->
name,
"channelId") == 0) {
2843#if defined(AST_DEVMODE)
2857 if (200 <= code && code <= 299) {
2861 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/dial\n", code);
2867 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/dial\n");
2869 "Internal Server Error",
"Response validation failed");
2873fin: __attribute__((unused))
2892#if defined(AST_DEVMODE)
2897 for (i = path_vars; i; i = i->
next) {
2898 if (strcmp(i->
name,
"channelId") == 0) {
2904#if defined(AST_DEVMODE)
2917 if (200 <= code && code <= 299) {
2921 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/rtp_statistics\n", code);
2927 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/rtp_statistics\n");
2929 "Internal Server Error",
"Response validation failed");
2933fin: __attribute__((unused))
2997#if defined(AST_DEVMODE)
3002 for (i = get_params; i; i = i->
next) {
3003 if (strcmp(i->
name,
"channelId") == 0) {
3006 if (strcmp(i->
name,
"app") == 0) {
3009 if (strcmp(i->
name,
"external_host") == 0) {
3012 if (strcmp(i->
name,
"encapsulation") == 0) {
3015 if (strcmp(i->
name,
"transport") == 0) {
3018 if (strcmp(i->
name,
"connection_type") == 0) {
3021 if (strcmp(i->
name,
"format") == 0) {
3024 if (strcmp(i->
name,
"direction") == 0) {
3027 if (strcmp(i->
name,
"data") == 0) {
3032 args.variables = body;
3034#if defined(AST_DEVMODE)
3048 if (200 <= code && code <= 299) {
3052 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/externalMedia\n", code);
3058 ast_log(
LOG_ERROR,
"Response validation failed for /channels/externalMedia\n");
3060 "Internal Server Error",
"Response validation failed");
3064fin: __attribute__((unused))
3096#if defined(AST_DEVMODE)
3101 for (i = get_params; i; i = i->
next) {
3102 if (strcmp(i->
name,
"states") == 0) {
3107 for (i = path_vars; i; i = i->
next) {
3108 if (strcmp(i->
name,
"channelId") == 0) {
3118#if defined(AST_DEVMODE)
3134 if (200 <= code && code <= 299) {
3138 ast_log(
LOG_ERROR,
"Invalid error response %d for /channels/{channelId}/transfer_progress\n", code);
3144 ast_log(
LOG_ERROR,
"Response validation failed for /channels/{channelId}/transfer_progress\n");
3146 "Internal Server Error",
"Response validation failed");
3150fin: __attribute__((unused))
3361 .children = { &
channels_channelId_continue,&
channels_channelId_move,&
channels_channelId_redirect,&
channels_channelId_answer,&
channels_channelId_ring,&
channels_channelId_progress,&
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,&
channels_channelId_transfer_progress, }
3407 .
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.
int ast_ari_channels_transfer_progress_parse_body(struct ast_json *body, struct ast_ari_channels_transfer_progress_args *args)
Body parsing function for /channels/{channelId}/transfer_progress.
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 void ast_ari_channels_progress_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}/progress.
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_transfer_progress_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}/transfer_progress.
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_channelId_progress
REST handler for /api-docs/channels.json.
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_transfer_progress
REST handler for /api-docs/channels.json.
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_transfer_progress(struct ast_variable *headers, struct ast_ari_channels_transfer_progress_args *args, struct ast_ari_response *response)
Inform the channel about the progress of the attended/blind transfer.
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_progress(struct ast_variable *headers, struct ast_ari_channels_progress_args *args, struct ast_ari_response *response)
Indicate progress on a channel.
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