Asterisk - The Open Source Telephony Project
18.5.0
|
Generated file - Build validators for ARI model objects. More...
#include "asterisk/json.h"
Go to the source code of this file.
Typedefs | |
typedef int(* | ari_validator) (struct ast_json *json) |
Function type for validator functions. Allows for. More... | |
Generated file - Build validators for ARI model objects.
In addition to the normal validation functions one would normally expect, each validator has a ast_ari_validate_{id}_fn() companion function that returns the validator's function pointer.
The reason for this seamingly useless indirection is the way function pointers used to interfere with module loading. Previously, Asterisk attempted to dlopen() each module using RTLD_LAZY
in order to read some metadata from the module. Using functions to get the function pointer allowed us to be lazy.
Definition in file ari_model_validators.h.
typedef int(* ari_validator) (struct ast_json *json) |
Function type for validator functions. Allows for.
Definition at line 152 of file ari_model_validators.h.
int ast_ari_validate_application | ( | struct ast_json * | json | ) |
Validator for Application.
Details of a Stasis application
json | JSON object to validate. |
Definition at line 7295 of file ari_model_validators.c.
References ast_ari_validate_list(), ast_ari_validate_object(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_applications_filter_cb(), ast_ari_applications_get_cb(), ast_ari_applications_subscribe_cb(), ast_ari_applications_unsubscribe_cb(), and ast_ari_validate_application_fn().
ari_validator ast_ari_validate_application_fn | ( | void | ) |
Function pointer to ast_ari_validate_application().
See ast_ari_model_validators.h for more details.
Definition at line 7430 of file ari_model_validators.c.
References ast_ari_validate_application().
Referenced by ast_ari_applications_list_cb().
int ast_ari_validate_application_move_failed | ( | struct ast_json * | json | ) |
Validator for ApplicationMoveFailed.
Notification that trying to move a channel to another Stasis application failed.
json | JSON object to validate. |
Definition at line 2397 of file ari_model_validators.c.
References ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_list(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_application_move_failed_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_application_move_failed_fn | ( | void | ) |
Function pointer to ast_ari_validate_application_move_failed().
See ast_ari_model_validators.h for more details.
Definition at line 2520 of file ari_model_validators.c.
References ast_ari_validate_application_move_failed().
int ast_ari_validate_application_replaced | ( | struct ast_json * | json | ) |
Validator for ApplicationReplaced.
Notification that another WebSocket has taken over for an application.
An application may only be subscribed to by a single WebSocket at a time. If multiple WebSockets attempt to subscribe to the same application, the newer WebSocket wins, and the older one receives this event.
json | JSON object to validate. |
Definition at line 2525 of file ari_model_validators.c.
References ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_application_replaced_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_application_replaced_fn | ( | void | ) |
Function pointer to ast_ari_validate_application_replaced().
See ast_ari_model_validators.h for more details.
Definition at line 2599 of file ari_model_validators.c.
References ast_ari_validate_application_replaced().
int ast_ari_validate_asterisk_info | ( | struct ast_json * | json | ) |
Validator for AsteriskInfo.
Asterisk system information
json | JSON object to validate. |
Definition at line 36 of file ari_model_validators.c.
References ast_ari_validate_build_info(), ast_ari_validate_config_info(), ast_ari_validate_status_info(), ast_ari_validate_system_info(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_asterisk_get_info_cb(), and ast_ari_validate_asterisk_info_fn().
ari_validator ast_ari_validate_asterisk_info_fn | ( | void | ) |
Function pointer to ast_ari_validate_asterisk_info().
See ast_ari_model_validators.h for more details.
Definition at line 89 of file ari_model_validators.c.
References ast_ari_validate_asterisk_info().
int ast_ari_validate_asterisk_ping | ( | struct ast_json * | json | ) |
Validator for AsteriskPing.
Asterisk ping information
json | JSON object to validate. |
Definition at line 94 of file ari_model_validators.c.
References ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_asterisk_ping_cb(), and ast_ari_validate_asterisk_ping_fn().
ari_validator ast_ari_validate_asterisk_ping_fn | ( | void | ) |
Function pointer to ast_ari_validate_asterisk_ping().
See ast_ari_model_validators.h for more details.
Definition at line 159 of file ari_model_validators.c.
References ast_ari_validate_asterisk_ping().
int ast_ari_validate_boolean | ( | struct ast_json * | json | ) |
Validator for native Swagger boolean.
json | JSON object to validate. |
Definition at line 107 of file res_ari_model.c.
References AST_JSON_FALSE, AST_JSON_TRUE, ast_json_typename(), ast_json_typeof(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_bridge_attended_transfer(), ast_ari_validate_bridge_blind_transfer(), ast_ari_validate_channel_hangup_request(), and AST_TEST_DEFINE().
int ast_ari_validate_bridge | ( | struct ast_json * | json | ) |
Validator for Bridge.
The merging of media from one or more channels.
Everyone on the bridge receives the same audio.
json | JSON object to validate. |
Definition at line 1706 of file ari_model_validators.c.
References ast_ari_validate_date(), ast_ari_validate_list(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_bridges_create_cb(), ast_ari_bridges_create_with_id_cb(), ast_ari_bridges_get_cb(), ast_ari_validate_bridge_attended_transfer(), ast_ari_validate_bridge_blind_transfer(), ast_ari_validate_bridge_created(), ast_ari_validate_bridge_destroyed(), ast_ari_validate_bridge_fn(), ast_ari_validate_bridge_merged(), ast_ari_validate_bridge_video_source_changed(), ast_ari_validate_channel_entered_bridge(), ast_ari_validate_channel_left_bridge(), and ast_ari_validate_channel_userevent().
int ast_ari_validate_bridge_attended_transfer | ( | struct ast_json * | json | ) |
Validator for BridgeAttendedTransfer.
Notification that an attended transfer has occurred.
json | JSON object to validate. |
Definition at line 2604 of file ari_model_validators.c.
References ast_ari_validate_boolean(), ast_ari_validate_bridge(), ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_bridge_attended_transfer_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_bridge_attended_transfer_fn | ( | void | ) |
Function pointer to ast_ari_validate_bridge_attended_transfer().
See ast_ari_model_validators.h for more details.
Definition at line 2857 of file ari_model_validators.c.
References ast_ari_validate_bridge_attended_transfer().
int ast_ari_validate_bridge_blind_transfer | ( | struct ast_json * | json | ) |
Validator for BridgeBlindTransfer.
Notification that a blind transfer has occurred.
json | JSON object to validate. |
Definition at line 2862 of file ari_model_validators.c.
References ast_ari_validate_boolean(), ast_ari_validate_bridge(), ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_bridge_blind_transfer_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_bridge_blind_transfer_fn | ( | void | ) |
Function pointer to ast_ari_validate_bridge_blind_transfer().
See ast_ari_model_validators.h for more details.
Definition at line 3043 of file ari_model_validators.c.
References ast_ari_validate_bridge_blind_transfer().
int ast_ari_validate_bridge_created | ( | struct ast_json * | json | ) |
Validator for BridgeCreated.
Notification that a bridge has been created.
json | JSON object to validate. |
Definition at line 3048 of file ari_model_validators.c.
References ast_ari_validate_bridge(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_bridge_created_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_bridge_created_fn | ( | void | ) |
Function pointer to ast_ari_validate_bridge_created().
See ast_ari_model_validators.h for more details.
Definition at line 3138 of file ari_model_validators.c.
References ast_ari_validate_bridge_created().
int ast_ari_validate_bridge_destroyed | ( | struct ast_json * | json | ) |
Validator for BridgeDestroyed.
Notification that a bridge has been destroyed.
json | JSON object to validate. |
Definition at line 3143 of file ari_model_validators.c.
References ast_ari_validate_bridge(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_bridge_destroyed_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_bridge_destroyed_fn | ( | void | ) |
Function pointer to ast_ari_validate_bridge_destroyed().
See ast_ari_model_validators.h for more details.
Definition at line 3233 of file ari_model_validators.c.
References ast_ari_validate_bridge_destroyed().
ari_validator ast_ari_validate_bridge_fn | ( | void | ) |
Function pointer to ast_ari_validate_bridge().
See ast_ari_model_validators.h for more details.
Definition at line 1870 of file ari_model_validators.c.
References ast_ari_validate_bridge().
Referenced by ast_ari_bridges_list_cb().
int ast_ari_validate_bridge_merged | ( | struct ast_json * | json | ) |
Validator for BridgeMerged.
Notification that one bridge has merged into another.
json | JSON object to validate. |
Definition at line 3238 of file ari_model_validators.c.
References ast_ari_validate_bridge(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_bridge_merged_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_bridge_merged_fn | ( | void | ) |
Function pointer to ast_ari_validate_bridge_merged().
See ast_ari_model_validators.h for more details.
Definition at line 3344 of file ari_model_validators.c.
References ast_ari_validate_bridge_merged().
int ast_ari_validate_bridge_video_source_changed | ( | struct ast_json * | json | ) |
Validator for BridgeVideoSourceChanged.
Notification that the source of video in a bridge has changed.
json | JSON object to validate. |
Definition at line 3349 of file ari_model_validators.c.
References ast_ari_validate_bridge(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_bridge_video_source_changed_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_bridge_video_source_changed_fn | ( | void | ) |
Function pointer to ast_ari_validate_bridge_video_source_changed().
See ast_ari_model_validators.h for more details.
Definition at line 3448 of file ari_model_validators.c.
References ast_ari_validate_bridge_video_source_changed().
int ast_ari_validate_build_info | ( | struct ast_json * | json | ) |
Validator for BuildInfo.
Info about how Asterisk was built
json | JSON object to validate. |
Definition at line 164 of file ari_model_validators.c.
References ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_asterisk_info(), and ast_ari_validate_build_info_fn().
ari_validator ast_ari_validate_build_info_fn | ( | void | ) |
Function pointer to ast_ari_validate_build_info().
See ast_ari_model_validators.h for more details.
Definition at line 277 of file ari_model_validators.c.
References ast_ari_validate_build_info().
int ast_ari_validate_byte | ( | struct ast_json * | json | ) |
Validator for native Swagger byte.
json | JSON object to validate. |
Definition at line 101 of file res_ari_model.c.
References check_range().
Referenced by AST_TEST_DEFINE().
int ast_ari_validate_caller_id | ( | struct ast_json * | json | ) |
Validator for CallerID.
Caller identification
json | JSON object to validate. |
Definition at line 980 of file ari_model_validators.c.
References ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_caller_id_fn(), and ast_ari_validate_channel().
ari_validator ast_ari_validate_caller_id_fn | ( | void | ) |
Function pointer to ast_ari_validate_caller_id().
See ast_ari_model_validators.h for more details.
Definition at line 1029 of file ari_model_validators.c.
References ast_ari_validate_caller_id().
int ast_ari_validate_channel | ( | struct ast_json * | json | ) |
Validator for Channel.
A specific communication connection between Asterisk and an Endpoint.
json | JSON object to validate. |
Definition at line 1034 of file ari_model_validators.c.
References ast_ari_validate_caller_id(), ast_ari_validate_date(), ast_ari_validate_dialplan_cep(), ast_ari_validate_object(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_channels_create_cb(), ast_ari_channels_external_media_cb(), ast_ari_channels_get_cb(), ast_ari_channels_originate_cb(), ast_ari_channels_originate_with_id_cb(), ast_ari_channels_snoop_channel_cb(), ast_ari_channels_snoop_channel_with_id_cb(), ast_ari_validate_application_move_failed(), ast_ari_validate_bridge_attended_transfer(), ast_ari_validate_bridge_blind_transfer(), ast_ari_validate_channel_caller_id(), ast_ari_validate_channel_connected_line(), ast_ari_validate_channel_created(), ast_ari_validate_channel_destroyed(), ast_ari_validate_channel_dialplan(), ast_ari_validate_channel_dtmf_received(), ast_ari_validate_channel_entered_bridge(), ast_ari_validate_channel_fn(), ast_ari_validate_channel_hangup_request(), ast_ari_validate_channel_hold(), ast_ari_validate_channel_left_bridge(), ast_ari_validate_channel_state_change(), ast_ari_validate_channel_talking_finished(), ast_ari_validate_channel_talking_started(), ast_ari_validate_channel_unhold(), ast_ari_validate_channel_userevent(), ast_ari_validate_channel_varset(), ast_ari_validate_dial(), ast_ari_validate_stasis_end(), and ast_ari_validate_stasis_start().
int ast_ari_validate_channel_caller_id | ( | struct ast_json * | json | ) |
Validator for ChannelCallerId.
Channel changed Caller ID.
json | JSON object to validate. |
Definition at line 3453 of file ari_model_validators.c.
References ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_int(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_caller_id_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_caller_id_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_caller_id().
See ast_ari_model_validators.h for more details.
Definition at line 3575 of file ari_model_validators.c.
References ast_ari_validate_channel_caller_id().
int ast_ari_validate_channel_connected_line | ( | struct ast_json * | json | ) |
Validator for ChannelConnectedLine.
Channel changed Connected Line.
json | JSON object to validate. |
Definition at line 3580 of file ari_model_validators.c.
References ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_connected_line_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_connected_line_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_connected_line().
See ast_ari_model_validators.h for more details.
Definition at line 3670 of file ari_model_validators.c.
References ast_ari_validate_channel_connected_line().
int ast_ari_validate_channel_created | ( | struct ast_json * | json | ) |
Validator for ChannelCreated.
Notification that a channel has been created.
json | JSON object to validate. |
Definition at line 3675 of file ari_model_validators.c.
References ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_created_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_created_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_created().
See ast_ari_model_validators.h for more details.
Definition at line 3765 of file ari_model_validators.c.
References ast_ari_validate_channel_created().
int ast_ari_validate_channel_destroyed | ( | struct ast_json * | json | ) |
Validator for ChannelDestroyed.
Notification that a channel has been destroyed.
json | JSON object to validate. |
Definition at line 3770 of file ari_model_validators.c.
References ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_int(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_destroyed_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_destroyed_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_destroyed().
See ast_ari_model_validators.h for more details.
Definition at line 3892 of file ari_model_validators.c.
References ast_ari_validate_channel_destroyed().
int ast_ari_validate_channel_dialplan | ( | struct ast_json * | json | ) |
Validator for ChannelDialplan.
Channel changed location in the dialplan.
json | JSON object to validate. |
Definition at line 3897 of file ari_model_validators.c.
References ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_dialplan_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_dialplan_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_dialplan().
See ast_ari_model_validators.h for more details.
Definition at line 4019 of file ari_model_validators.c.
References ast_ari_validate_channel_dialplan().
int ast_ari_validate_channel_dtmf_received | ( | struct ast_json * | json | ) |
Validator for ChannelDtmfReceived.
DTMF received on a channel.
This event is sent when the DTMF ends. There is no notification about the start of DTMF
json | JSON object to validate. |
Definition at line 4024 of file ari_model_validators.c.
References ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_int(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_dtmf_received_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_dtmf_received_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_dtmf_received().
See ast_ari_model_validators.h for more details.
Definition at line 4146 of file ari_model_validators.c.
References ast_ari_validate_channel_dtmf_received().
int ast_ari_validate_channel_entered_bridge | ( | struct ast_json * | json | ) |
Validator for ChannelEnteredBridge.
Notification that a channel has entered a bridge.
json | JSON object to validate. |
Definition at line 4151 of file ari_model_validators.c.
References ast_ari_validate_bridge(), ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_entered_bridge_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_entered_bridge_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_entered_bridge().
See ast_ari_model_validators.h for more details.
Definition at line 4250 of file ari_model_validators.c.
References ast_ari_validate_channel_entered_bridge().
ari_validator ast_ari_validate_channel_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel().
See ast_ari_model_validators.h for more details.
Definition at line 1204 of file ari_model_validators.c.
References ast_ari_validate_channel().
Referenced by ast_ari_channels_list_cb().
int ast_ari_validate_channel_hangup_request | ( | struct ast_json * | json | ) |
Validator for ChannelHangupRequest.
A hangup was requested on the channel.
json | JSON object to validate. |
Definition at line 4255 of file ari_model_validators.c.
References ast_ari_validate_boolean(), ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_int(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_hangup_request_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_hangup_request_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_hangup_request().
See ast_ari_model_validators.h for more details.
Definition at line 4363 of file ari_model_validators.c.
References ast_ari_validate_channel_hangup_request().
int ast_ari_validate_channel_hold | ( | struct ast_json * | json | ) |
Validator for ChannelHold.
A channel initiated a media hold.
json | JSON object to validate. |
Definition at line 4368 of file ari_model_validators.c.
References ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_hold_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_hold_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_hold().
See ast_ari_model_validators.h for more details.
Definition at line 4467 of file ari_model_validators.c.
References ast_ari_validate_channel_hold().
int ast_ari_validate_channel_left_bridge | ( | struct ast_json * | json | ) |
Validator for ChannelLeftBridge.
Notification that a channel has left a bridge.
json | JSON object to validate. |
Definition at line 4472 of file ari_model_validators.c.
References ast_ari_validate_bridge(), ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_left_bridge_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_left_bridge_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_left_bridge().
See ast_ari_model_validators.h for more details.
Definition at line 4578 of file ari_model_validators.c.
References ast_ari_validate_channel_left_bridge().
int ast_ari_validate_channel_state_change | ( | struct ast_json * | json | ) |
Validator for ChannelStateChange.
Notification of a channel's state change.
json | JSON object to validate. |
Definition at line 4583 of file ari_model_validators.c.
References ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_state_change_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_state_change_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_state_change().
See ast_ari_model_validators.h for more details.
Definition at line 4673 of file ari_model_validators.c.
References ast_ari_validate_channel_state_change().
int ast_ari_validate_channel_talking_finished | ( | struct ast_json * | json | ) |
Validator for ChannelTalkingFinished.
Talking is no longer detected on the channel.
json | JSON object to validate. |
Definition at line 4678 of file ari_model_validators.c.
References ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_int(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_talking_finished_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_talking_finished_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_talking_finished().
See ast_ari_model_validators.h for more details.
Definition at line 4784 of file ari_model_validators.c.
References ast_ari_validate_channel_talking_finished().
int ast_ari_validate_channel_talking_started | ( | struct ast_json * | json | ) |
Validator for ChannelTalkingStarted.
Talking was detected on the channel.
json | JSON object to validate. |
Definition at line 4789 of file ari_model_validators.c.
References ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_talking_started_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_talking_started_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_talking_started().
See ast_ari_model_validators.h for more details.
Definition at line 4879 of file ari_model_validators.c.
References ast_ari_validate_channel_talking_started().
int ast_ari_validate_channel_unhold | ( | struct ast_json * | json | ) |
Validator for ChannelUnhold.
A channel initiated a media unhold.
json | JSON object to validate. |
Definition at line 4884 of file ari_model_validators.c.
References ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_unhold_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_unhold_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_unhold().
See ast_ari_model_validators.h for more details.
Definition at line 4974 of file ari_model_validators.c.
References ast_ari_validate_channel_unhold().
int ast_ari_validate_channel_userevent | ( | struct ast_json * | json | ) |
Validator for ChannelUserevent.
User-generated event with additional user-defined fields in the object.
json | JSON object to validate. |
Definition at line 4979 of file ari_model_validators.c.
References ast_ari_validate_bridge(), ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_endpoint(), ast_ari_validate_object(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_userevent_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_userevent_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_userevent().
See ast_ari_model_validators.h for more details.
Definition at line 5112 of file ari_model_validators.c.
References ast_ari_validate_channel_userevent().
int ast_ari_validate_channel_varset | ( | struct ast_json * | json | ) |
Validator for ChannelVarset.
Channel variable changed.
json | JSON object to validate. |
Definition at line 5117 of file ari_model_validators.c.
References ast_ari_validate_channel(), ast_ari_validate_date(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_channel_varset_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_varset_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_varset().
See ast_ari_model_validators.h for more details.
Definition at line 5232 of file ari_model_validators.c.
References ast_ari_validate_channel_varset().
int ast_ari_validate_config_info | ( | struct ast_json * | json | ) |
Validator for ConfigInfo.
Info about Asterisk configuration
json | JSON object to validate. |
Definition at line 282 of file ari_model_validators.c.
References ast_ari_validate_double(), ast_ari_validate_int(), ast_ari_validate_set_id(), ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_asterisk_info(), and ast_ari_validate_config_info_fn().
ari_validator ast_ari_validate_config_info_fn | ( | void | ) |
Function pointer to ast_ari_validate_config_info().
See ast_ari_model_validators.h for more details.
Definition at line 374 of file ari_model_validators.c.
References ast_ari_validate_config_info().
int ast_ari_validate_config_tuple | ( | struct ast_json * | json | ) |
Validator for ConfigTuple.
A key/value pair that makes up part of a configuration object.
json | JSON object to validate. |
Definition at line 379 of file ari_model_validators.c.
References ast_ari_validate_string(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_config_tuple_fn().