Asterisk - The Open Source Telephony Project
21.4.1
|
Generated file - declares stubs to be implemented in res/ari/resource_endpoints.c. More...
#include "asterisk/ari.h"
Go to the source code of this file.
Data Structures | |
struct | ast_ari_endpoints_get_args |
struct | ast_ari_endpoints_list_args |
struct | ast_ari_endpoints_list_by_tech_args |
struct | ast_ari_endpoints_refer_args |
struct | ast_ari_endpoints_refer_to_endpoint_args |
struct | ast_ari_endpoints_send_message_args |
struct | ast_ari_endpoints_send_message_to_endpoint_args |
Functions | |
void | ast_ari_endpoints_get (struct ast_variable *headers, struct ast_ari_endpoints_get_args *args, struct ast_ari_response *response) |
Details for an endpoint. More... | |
void | ast_ari_endpoints_list (struct ast_variable *headers, struct ast_ari_endpoints_list_args *args, struct ast_ari_response *response) |
List all endpoints. More... | |
void | ast_ari_endpoints_list_by_tech (struct ast_variable *headers, struct ast_ari_endpoints_list_by_tech_args *args, struct ast_ari_response *response) |
List available endoints for a given endpoint technology. More... | |
void | ast_ari_endpoints_refer (struct ast_variable *headers, struct ast_ari_endpoints_refer_args *args, struct ast_ari_response *response) |
Refer an endpoint or technology URI to some technology URI or endpoint. More... | |
int | ast_ari_endpoints_refer_parse_body (struct ast_json *body, struct ast_ari_endpoints_refer_args *args) |
Body parsing function for /endpoints/refer. More... | |
void | ast_ari_endpoints_refer_to_endpoint (struct ast_variable *headers, struct ast_ari_endpoints_refer_to_endpoint_args *args, struct ast_ari_response *response) |
Refer an endpoint or technology URI to some technology URI or endpoint. More... | |
int | ast_ari_endpoints_refer_to_endpoint_parse_body (struct ast_json *body, struct ast_ari_endpoints_refer_to_endpoint_args *args) |
Body parsing function for /endpoints/{tech}/{resource}/refer. More... | |
void | ast_ari_endpoints_send_message (struct ast_variable *headers, struct ast_ari_endpoints_send_message_args *args, struct ast_ari_response *response) |
Send a message to some technology URI or endpoint. More... | |
int | ast_ari_endpoints_send_message_parse_body (struct ast_json *body, struct ast_ari_endpoints_send_message_args *args) |
Body parsing function for /endpoints/sendMessage. More... | |
void | ast_ari_endpoints_send_message_to_endpoint (struct ast_variable *headers, struct ast_ari_endpoints_send_message_to_endpoint_args *args, struct ast_ari_response *response) |
Send a message to some endpoint in a technology. More... | |
int | ast_ari_endpoints_send_message_to_endpoint_parse_body (struct ast_json *body, struct ast_ari_endpoints_send_message_to_endpoint_args *args) |
Body parsing function for /endpoints/{tech}/{resource}/sendMessage. More... | |
Generated file - declares stubs to be implemented in res/ari/resource_endpoints.c.
Endpoint resources
Definition in file resource_endpoints.h.
void ast_ari_endpoints_get | ( | struct ast_variable * | headers, |
struct ast_ari_endpoints_get_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Details for an endpoint.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 154 of file resource_endpoints.c.
References ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_response_ok(), ast_endpoint_latest_snapshot(), ast_endpoint_snapshot_to_json(), RAII_VAR, ast_ari_endpoints_get_args::resource, stasis_app_get_sanitizer(), and ast_ari_endpoints_get_args::tech.
Referenced by ast_ari_endpoints_get_cb().
void ast_ari_endpoints_list | ( | struct ast_variable * | headers, |
struct ast_ari_endpoints_list_args * | args, | ||
struct ast_ari_response * | response | ||
) |
List all endpoints.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 38 of file resource_endpoints.c.
References ao2_iterator_destroy(), ao2_iterator_init(), ao2_ref, ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_response_ok(), ast_endpoint_cache(), ast_endpoint_snapshot_to_json(), ast_endpoint_snapshot_type(), ast_json_array_append(), ast_json_array_create(), ast_json_ref(), ast_json_unref(), cache, RAII_VAR, stasis_app_get_sanitizer(), stasis_cache_dump(), and stasis_message_data().
Referenced by ast_ari_endpoints_list_cb().
void ast_ari_endpoints_list_by_tech | ( | struct ast_variable * | headers, |
struct ast_ari_endpoints_list_by_tech_args * | args, | ||
struct ast_ari_response * | response | ||
) |
List available endoints for a given endpoint technology.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 86 of file resource_endpoints.c.
References ao2_iterator_destroy(), ao2_iterator_init(), ao2_ref, ast_ari_response_alloc_failed(), ast_ari_response_error(), ast_ari_response_ok(), ast_endpoint_cache(), ast_endpoint_find_by_id(), ast_endpoint_snapshot_to_json(), ast_endpoint_snapshot_type(), ast_json_array_append(), ast_json_array_create(), ast_json_ref(), ast_json_unref(), cache, RAII_VAR, stasis_app_get_sanitizer(), stasis_cache_dump(), stasis_message_data(), ast_endpoint_snapshot::tech, and ast_ari_endpoints_list_by_tech_args::tech.
Referenced by ast_ari_endpoints_list_by_tech_cb().
void ast_ari_endpoints_refer | ( | struct ast_variable * | headers, |
struct ast_ari_endpoints_refer_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Refer an endpoint or technology URI to some technology URI or endpoint.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 398 of file resource_endpoints.c.
References ast_ari_endpoints_refer_parse_body(), ast_variables_destroy(), ast_ari_endpoints_refer_args::from, ast_ari_endpoints_refer_args::refer_to, ast_ari_endpoints_refer_args::to, ast_ari_endpoints_refer_args::to_self, and ast_ari_endpoints_refer_args::variables.
Referenced by ast_ari_endpoints_refer_cb().
int ast_ari_endpoints_refer_parse_body | ( | struct ast_json * | body, |
struct ast_ari_endpoints_refer_args * | args | ||
) |
Body parsing function for /endpoints/refer.
body | The JSON body from which to parse parameters. | |
[out] | args | The args structure to parse into. |
zero | on success |
non-zero | on failure |
Definition at line 194 of file res_ari_endpoints.c.
References ast_json_is_true(), ast_json_object_get(), ast_json_string_get(), ast_ari_endpoints_refer_args::from, ast_ari_endpoints_refer_args::refer_to, ast_ari_endpoints_refer_args::to, and ast_ari_endpoints_refer_args::to_self.
Referenced by ast_ari_endpoints_refer().
void ast_ari_endpoints_refer_to_endpoint | ( | struct ast_variable * | headers, |
struct ast_ari_endpoints_refer_to_endpoint_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Refer an endpoint or technology URI to some technology URI or endpoint.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 414 of file resource_endpoints.c.
References ao2_ref, ast_ari_endpoints_refer_to_endpoint_parse_body(), ast_ari_response_error(), ast_endpoint_latest_snapshot(), ast_str_to_lower(), ast_strdupa, ast_variables_destroy(), ast_ari_endpoints_refer_to_endpoint_args::from, ast_ari_endpoints_refer_to_endpoint_args::refer_to, ast_ari_endpoints_refer_to_endpoint_args::resource, ast_endpoint_snapshot::tech, ast_ari_endpoints_refer_to_endpoint_args::tech, ast_ari_endpoints_refer_to_endpoint_args::to_self, and ast_ari_endpoints_refer_to_endpoint_args::variables.
Referenced by ast_ari_endpoints_refer_to_endpoint_cb().
int ast_ari_endpoints_refer_to_endpoint_parse_body | ( | struct ast_json * | body, |
struct ast_ari_endpoints_refer_to_endpoint_args * | args | ||
) |
Body parsing function for /endpoints/{tech}/{resource}/refer.
body | The JSON body from which to parse parameters. | |
[out] | args | The args structure to parse into. |
zero | on success |
non-zero | on failure |
Definition at line 505 of file res_ari_endpoints.c.
References ast_json_is_true(), ast_json_object_get(), ast_json_string_get(), ast_ari_endpoints_refer_to_endpoint_args::from, ast_ari_endpoints_refer_to_endpoint_args::refer_to, and ast_ari_endpoints_refer_to_endpoint_args::to_self.
Referenced by ast_ari_endpoints_refer_to_endpoint().
void ast_ari_endpoints_send_message | ( | struct ast_variable * | headers, |
struct ast_ari_endpoints_send_message_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Send a message to some technology URI or endpoint.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 256 of file resource_endpoints.c.
References ast_ari_endpoints_send_message_parse_body(), ast_json_object_get(), ast_variables_destroy(), ast_ari_endpoints_send_message_args::body, ast_ari_endpoints_send_message_args::from, and ast_ari_endpoints_send_message_args::to.
Referenced by ast_ari_endpoints_send_message_cb().
int ast_ari_endpoints_send_message_parse_body | ( | struct ast_json * | body, |
struct ast_ari_endpoints_send_message_args * | args | ||
) |
Body parsing function for /endpoints/sendMessage.
body | The JSON body from which to parse parameters. | |
[out] | args | The args structure to parse into. |
zero | on success |
non-zero | on failure |
Definition at line 105 of file res_ari_endpoints.c.
References ast_json_object_get(), ast_json_string_get(), ast_ari_endpoints_send_message_args::body, ast_ari_endpoints_send_message_args::from, and ast_ari_endpoints_send_message_args::to.
Referenced by ast_ari_endpoints_send_message().
void ast_ari_endpoints_send_message_to_endpoint | ( | struct ast_variable * | headers, |
struct ast_ari_endpoints_send_message_to_endpoint_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Send a message to some endpoint in a technology.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 277 of file resource_endpoints.c.
References ao2_ref, ast_ari_endpoints_send_message_to_endpoint_parse_body(), ast_ari_response_error(), ast_endpoint_latest_snapshot(), ast_json_object_get(), ast_str_to_lower(), ast_strdupa, ast_variables_destroy(), ast_ari_endpoints_send_message_to_endpoint_args::body, ast_ari_endpoints_send_message_to_endpoint_args::from, ast_ari_endpoints_send_message_to_endpoint_args::resource, ast_endpoint_snapshot::tech, and ast_ari_endpoints_send_message_to_endpoint_args::tech.
Referenced by ast_ari_endpoints_send_message_to_endpoint_cb().
int ast_ari_endpoints_send_message_to_endpoint_parse_body | ( | struct ast_json * | body, |
struct ast_ari_endpoints_send_message_to_endpoint_args * | args | ||
) |
Body parsing function for /endpoints/{tech}/{resource}/sendMessage.
body | The JSON body from which to parse parameters. | |
[out] | args | The args structure to parse into. |
zero | on success |
non-zero | on failure |
Definition at line 414 of file res_ari_endpoints.c.
References ast_json_object_get(), ast_json_string_get(), ast_ari_endpoints_send_message_to_endpoint_args::body, and ast_ari_endpoints_send_message_to_endpoint_args::from.
Referenced by ast_ari_endpoints_send_message_to_endpoint().