Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Generated file - declares stubs to be implemented in res/ari/resource_bridges.c. More...
#include "asterisk/ari.h"
Go to the source code of this file.
Data Structures | |
struct | ast_ari_bridges_add_channel_args |
struct | ast_ari_bridges_clear_video_source_args |
struct | ast_ari_bridges_create_args |
struct | ast_ari_bridges_create_with_id_args |
struct | ast_ari_bridges_destroy_args |
struct | ast_ari_bridges_get_args |
struct | ast_ari_bridges_list_args |
struct | ast_ari_bridges_play_args |
struct | ast_ari_bridges_play_with_id_args |
struct | ast_ari_bridges_record_args |
struct | ast_ari_bridges_remove_channel_args |
struct | ast_ari_bridges_set_video_source_args |
struct | ast_ari_bridges_start_moh_args |
struct | ast_ari_bridges_stop_moh_args |
Functions | |
void | ast_ari_bridges_add_channel (struct ast_variable *headers, struct ast_ari_bridges_add_channel_args *args, struct ast_ari_response *response) |
Add a channel to a bridge. More... | |
int | ast_ari_bridges_add_channel_parse_body (struct ast_json *body, struct ast_ari_bridges_add_channel_args *args) |
Body parsing function for /bridges/{bridgeId}/addChannel. More... | |
void | ast_ari_bridges_clear_video_source (struct ast_variable *headers, struct ast_ari_bridges_clear_video_source_args *args, struct ast_ari_response *response) |
Removes any explicit video source in a multi-party mixing bridge. This operation has no effect on bridges with two or fewer participants. When no explicit video source is set, talk detection will be used to determine the active video stream. More... | |
void | ast_ari_bridges_create (struct ast_variable *headers, struct ast_ari_bridges_create_args *args, struct ast_ari_response *response) |
Create a new bridge. More... | |
int | ast_ari_bridges_create_parse_body (struct ast_json *body, struct ast_ari_bridges_create_args *args) |
Body parsing function for /bridges. More... | |
void | ast_ari_bridges_create_with_id (struct ast_variable *headers, struct ast_ari_bridges_create_with_id_args *args, struct ast_ari_response *response) |
Create a new bridge or updates an existing one. More... | |
int | ast_ari_bridges_create_with_id_parse_body (struct ast_json *body, struct ast_ari_bridges_create_with_id_args *args) |
Body parsing function for /bridges/{bridgeId}. More... | |
void | ast_ari_bridges_destroy (struct ast_variable *headers, struct ast_ari_bridges_destroy_args *args, struct ast_ari_response *response) |
Shut down a bridge. More... | |
void | ast_ari_bridges_get (struct ast_variable *headers, struct ast_ari_bridges_get_args *args, struct ast_ari_response *response) |
Get bridge details. More... | |
void | ast_ari_bridges_list (struct ast_variable *headers, struct ast_ari_bridges_list_args *args, struct ast_ari_response *response) |
List all active bridges in Asterisk. More... | |
void | ast_ari_bridges_play (struct ast_variable *headers, struct ast_ari_bridges_play_args *args, struct ast_ari_response *response) |
Start playback of media on a bridge. More... | |
int | ast_ari_bridges_play_parse_body (struct ast_json *body, struct ast_ari_bridges_play_args *args) |
Body parsing function for /bridges/{bridgeId}/play. More... | |
void | ast_ari_bridges_play_with_id (struct ast_variable *headers, struct ast_ari_bridges_play_with_id_args *args, struct ast_ari_response *response) |
Start playback of media on a bridge. More... | |
int | ast_ari_bridges_play_with_id_parse_body (struct ast_json *body, struct ast_ari_bridges_play_with_id_args *args) |
Body parsing function for /bridges/{bridgeId}/play/{playbackId}. More... | |
void | ast_ari_bridges_record (struct ast_variable *headers, struct ast_ari_bridges_record_args *args, struct ast_ari_response *response) |
Start a recording. More... | |
int | ast_ari_bridges_record_parse_body (struct ast_json *body, struct ast_ari_bridges_record_args *args) |
Body parsing function for /bridges/{bridgeId}/record. More... | |
void | ast_ari_bridges_remove_channel (struct ast_variable *headers, struct ast_ari_bridges_remove_channel_args *args, struct ast_ari_response *response) |
Remove a channel from a bridge. More... | |
int | ast_ari_bridges_remove_channel_parse_body (struct ast_json *body, struct ast_ari_bridges_remove_channel_args *args) |
Body parsing function for /bridges/{bridgeId}/removeChannel. More... | |
void | ast_ari_bridges_set_video_source (struct ast_variable *headers, struct ast_ari_bridges_set_video_source_args *args, struct ast_ari_response *response) |
Set a channel as the video source in a multi-party mixing bridge. This operation has no effect on bridges with two or fewer participants. More... | |
void | ast_ari_bridges_start_moh (struct ast_variable *headers, struct ast_ari_bridges_start_moh_args *args, struct ast_ari_response *response) |
Play music on hold to a bridge or change the MOH class that is playing. More... | |
int | ast_ari_bridges_start_moh_parse_body (struct ast_json *body, struct ast_ari_bridges_start_moh_args *args) |
Body parsing function for /bridges/{bridgeId}/moh. More... | |
void | ast_ari_bridges_stop_moh (struct ast_variable *headers, struct ast_ari_bridges_stop_moh_args *args, struct ast_ari_response *response) |
Stop playing music on hold to a bridge. More... | |
Generated file - declares stubs to be implemented in res/ari/resource_bridges.c.
Bridge resources
Definition in file resource_bridges.h.
void ast_ari_bridges_add_channel | ( | struct ast_variable * | headers, |
struct ast_ari_bridges_add_channel_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Add a channel to a bridge.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 191 of file resource_bridges.c.
References ao2_cleanup, args, ast_ari_response_alloc_failed(), ast_ari_response_no_content(), ast_strlen_zero(), check_add_remove_channel(), control_list_create(), find_bridge(), NULL, RAII_VAR, stasis_app_control_absorb_dtmf_in_bridge(), stasis_app_control_add_channel_to_bridge(), stasis_app_control_add_role(), stasis_app_control_bridge_features_init(), stasis_app_control_clear_roles(), stasis_app_control_inhibit_colp_in_bridge(), and stasis_app_control_mute_in_bridge().
Referenced by ast_ari_bridges_add_channel_cb().
int ast_ari_bridges_add_channel_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_add_channel_args * | args | ||
) |
Body parsing function for /bridges/{bridgeId}/addChannel.
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 406 of file res_ari_bridges.c.
References args, ast_free, AST_JSON_ARRAY, ast_json_array_get(), ast_json_array_size(), ast_json_is_true(), ast_json_object_get(), ast_json_string_get(), ast_json_typeof(), and ast_malloc.
Referenced by ast_ari_bridges_add_channel_cb().
void ast_ari_bridges_clear_video_source | ( | struct ast_variable * | headers, |
struct ast_ari_bridges_clear_video_source_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Removes any explicit video source in a multi-party mixing bridge. This operation has no effect on bridges with two or fewer participants. When no explicit video source is set, talk detection will be used to determine the active video stream.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 1072 of file resource_bridges.c.
References ao2_ref, args, ast_ari_response_no_content(), ast_bridge_lock, ast_bridge_set_talker_src_video_mode(), ast_bridge_unlock, and find_bridge().
Referenced by ast_ari_bridges_clear_video_source_cb().
void ast_ari_bridges_create | ( | struct ast_variable * | headers, |
struct ast_ari_bridges_create_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Create a new bridge.
This bridge persists until it has been shut down, or Asterisk has been shut down.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 946 of file resource_bridges.c.
References ao2_cleanup, args, ast_ari_response_error(), ast_ari_response_ok(), ast_bridge_lock, ast_bridge_snapshot_create(), ast_bridge_snapshot_to_json(), ast_bridge_unlock, NULL, RAII_VAR, stasis_app_bridge_create(), and stasis_app_get_sanitizer().
Referenced by ast_ari_bridges_create_cb().
int ast_ari_bridges_create_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_create_args * | args | ||
) |
Body parsing function for /bridges.
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 107 of file res_ari_bridges.c.
References args, ast_json_object_get(), and ast_json_string_get().
Referenced by ast_ari_bridges_create_cb().
void ast_ari_bridges_create_with_id | ( | struct ast_variable * | headers, |
struct ast_ari_bridges_create_with_id_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Create a new bridge or updates an existing one.
This bridge persists until it has been shut down, or Asterisk has been shut down.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 975 of file resource_bridges.c.
References ao2_cleanup, args, ast_ari_response_error(), ast_ari_response_ok(), ast_bridge_lock, ast_bridge_snapshot_create(), ast_bridge_snapshot_to_json(), ast_bridge_unlock, ast_strlen_zero(), find_bridge(), NULL, RAII_VAR, stasis_app_bridge_create(), and stasis_app_get_sanitizer().
Referenced by ast_ari_bridges_create_with_id_cb().
int ast_ari_bridges_create_with_id_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_create_with_id_args * | args | ||
) |
Body parsing function for /bridges/{bridgeId}.
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 197 of file res_ari_bridges.c.
References args, ast_json_object_get(), and ast_json_string_get().
Referenced by ast_ari_bridges_create_with_id_cb().
void ast_ari_bridges_destroy | ( | struct ast_variable * | headers, |
struct ast_ari_bridges_destroy_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Shut down a bridge.
If any channels are in this bridge, they will be removed and resume whatever they were doing beforehand.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 882 of file resource_bridges.c.
References ao2_cleanup, args, ast_ari_response_no_content(), ast_channel::bridge, find_bridge(), RAII_VAR, and stasis_app_bridge_destroy().
Referenced by ast_ari_bridges_destroy_cb().
void ast_ari_bridges_get | ( | struct ast_variable * | headers, |
struct ast_ari_bridges_get_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Get bridge details.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 866 of file resource_bridges.c.
References ao2_cleanup, args, ast_ari_response_error(), ast_ari_response_ok(), ast_bridge_get_snapshot_by_uniqueid(), ast_bridge_snapshot_to_json(), RAII_VAR, ast_channel::snapshot, and stasis_app_get_sanitizer().
Referenced by ast_ari_bridges_get_cb().
void ast_ari_bridges_list | ( | struct ast_variable * | headers, |
struct ast_ari_bridges_list_args * | args, | ||
struct ast_ari_response * | response | ||
) |
List all active bridges in Asterisk.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 895 of file resource_bridges.c.
References ao2_cleanup, ao2_iterator_destroy(), ao2_iterator_init(), ao2_iterator_next, ao2_ref, ast_ari_response_alloc_failed(), ast_ari_response_ok(), AST_BRIDGE_FLAG_INVISIBLE, ast_bridge_get_snapshot(), ast_bridge_snapshot_to_json(), ast_bridges(), ast_json_array_append(), ast_json_array_create(), ast_json_ref(), ast_json_unref(), ast_test_flag, bridges, ast_bridge::feature_flags, NULL, RAII_VAR, and stasis_app_get_sanitizer().
Referenced by ast_ari_bridges_list_cb().
void ast_ari_bridges_play | ( | struct ast_variable * | headers, |
struct ast_ari_bridges_play_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Start playback of media on a bridge.
The media URI may be any of a number of URI's. Currently sound:, recording:, number:, digits:, characters:, and tone: URI's are supported. This operation creates a playback resource that can be used to control the playback of media (pause, rewind, fast forward, etc.)
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 616 of file resource_bridges.c.
References args, and ari_bridges_handle_play().
Referenced by ast_ari_bridges_play_cb().
int ast_ari_bridges_play_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_play_args * | args | ||
) |
Body parsing function for /bridges/{bridgeId}/play.
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 1010 of file res_ari_bridges.c.
References args, ast_free, AST_JSON_ARRAY, ast_json_array_get(), ast_json_array_size(), ast_json_integer_get(), ast_json_object_get(), ast_json_string_get(), ast_json_typeof(), and ast_malloc.
Referenced by ast_ari_bridges_play_cb().
void ast_ari_bridges_play_with_id | ( | struct ast_variable * | headers, |
struct ast_ari_bridges_play_with_id_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Start playback of media on a bridge.
The media URI may be any of a number of URI's. Currently sound:, recording:, number:, digits:, characters:, and tone: URI's are supported. This operation creates a playback resource that can be used to control the playback of media (pause, rewind, fast forward, etc.)
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 630 of file resource_bridges.c.
References args, and ari_bridges_handle_play().
Referenced by ast_ari_bridges_play_with_id_cb().
int ast_ari_bridges_play_with_id_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_play_with_id_args * | args | ||
) |
Body parsing function for /bridges/{bridgeId}/play/{playbackId}.
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 1189 of file res_ari_bridges.c.
References args, ast_free, AST_JSON_ARRAY, ast_json_array_get(), ast_json_array_size(), ast_json_integer_get(), ast_json_object_get(), ast_json_string_get(), ast_json_typeof(), and ast_malloc.
Referenced by ast_ari_bridges_play_with_id_cb().
void ast_ari_bridges_record | ( | struct ast_variable * | headers, |
struct ast_ari_bridges_record_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Start a recording.
This records the mixed audio from all channels participating in this bridge.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 644 of file resource_bridges.c.
References ao2_cleanup, args, ast_ari_response_alloc_failed(), ast_ari_response_created(), ast_ari_response_error(), ast_asprintf, ast_assert, AST_BRIDGE_CHANNEL_FLAG_IMMOVABLE, AST_BRIDGE_CHANNEL_FLAG_LONELY, ast_bridge_topic(), ast_calloc, ast_channel_topic(), ast_free, ast_get_format_for_file_ext(), ast_hangup(), ast_json_ref(), ast_json_unref(), ast_log, ast_malloc, ast_pthread_create_detached, AST_RECORD_IF_EXISTS_ERROR, ast_string_field_build, ast_unreal_channel_push_to_bridge(), ast_uri_encode(), ast_uri_http, ast_channel::bridge, bridge_channel_control_thread_data::bridge_channel, bridge_channel_control_thread(), ast_channel::channel_forward, bridge_channel_control_thread_data::control, errno, find_bridge(), bridge_channel_control_thread_data::forward, LOG_WARNING, NULL, options, prepare_bridge_media_channel(), RAII_VAR, stasis_app_control_create(), stasis_app_control_record(), stasis_app_recording_if_exists_parse(), stasis_app_recording_options_create(), STASIS_APP_RECORDING_TERMINATE_INVALID, stasis_app_recording_termination_parse(), stasis_app_recording_to_json(), stasis_forward_all(), and stasis_forward_cancel().
Referenced by ast_ari_bridges_record_cb().
int ast_ari_bridges_record_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_record_args * | args | ||
) |
Body parsing function for /bridges/{bridgeId}/record.
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 1364 of file res_ari_bridges.c.
References args, ast_json_integer_get(), ast_json_is_true(), ast_json_object_get(), and ast_json_string_get().
Referenced by ast_ari_bridges_record_cb().
void ast_ari_bridges_remove_channel | ( | struct ast_variable * | headers, |
struct ast_ari_bridges_remove_channel_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Remove a channel from a bridge.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 241 of file resource_bridges.c.
References ao2_cleanup, args, ast_ari_response_error(), ast_ari_response_no_content(), ast_log, control_list_create(), find_bridge(), LOG_WARNING, NULL, RAII_VAR, stasis_app_control_remove_channel_from_bridge(), and stasis_app_get_bridge().
Referenced by ast_ari_bridges_remove_channel_cb().
int ast_ari_bridges_remove_channel_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_remove_channel_args * | args | ||
) |
Body parsing function for /bridges/{bridgeId}/removeChannel.
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 587 of file res_ari_bridges.c.
References args, ast_free, AST_JSON_ARRAY, ast_json_array_get(), ast_json_array_size(), ast_json_object_get(), ast_json_string_get(), ast_json_typeof(), and ast_malloc.
Referenced by ast_ari_bridges_remove_channel_cb().
void ast_ari_bridges_set_video_source | ( | struct ast_variable * | headers, |
struct ast_ari_bridges_set_video_source_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Set a channel as the video source in a multi-party mixing bridge. This operation has no effect on bridges with two or fewer participants.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 1037 of file resource_bridges.c.
References __ao2_cleanup(), ao2_bump, ao2_ref, args, ast_ari_response_error(), ast_ari_response_no_content(), stasis_app_control::bridge, bridge_set_video_source_cb(), find_bridge(), find_channel_control(), stasis_app_get_bridge(), and stasis_app_send_command().
Referenced by ast_ari_bridges_set_video_source_cb().
void ast_ari_bridges_start_moh | ( | struct ast_variable * | headers, |
struct ast_ari_bridges_start_moh_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Play music on hold to a bridge or change the MOH class that is playing.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 819 of file resource_bridges.c.
References ao2_cleanup, args, ast_ari_response_alloc_failed(), ast_ari_response_no_content(), ast_channel_cleanup, ast_moh_start(), ast_channel::bridge, find_bridge(), NULL, RAII_VAR, and stasis_app_bridge_moh_channel().
Referenced by ast_ari_bridges_start_moh_cb().
int ast_ari_bridges_start_moh_parse_body | ( | struct ast_json * | body, |
struct ast_ari_bridges_start_moh_args * | args | ||
) |
Body parsing function for /bridges/{bridgeId}/moh.
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 865 of file res_ari_bridges.c.
References args, ast_json_object_get(), and ast_json_string_get().
Referenced by ast_ari_bridges_start_moh_cb().
void ast_ari_bridges_stop_moh | ( | struct ast_variable * | headers, |
struct ast_ari_bridges_stop_moh_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Stop playing music on hold to a bridge.
This will only stop music on hold being played via POST bridges/{bridgeId}/moh.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 845 of file resource_bridges.c.
References ao2_cleanup, args, ast_ari_response_error(), ast_ari_response_no_content(), ast_channel::bridge, find_bridge(), RAII_VAR, and stasis_app_bridge_moh_stop().
Referenced by ast_ari_bridges_stop_moh_cb().