Asterisk - The Open Source Telephony Project GIT-master-754dea3
|
Generated file - Build validators for ARI model objects. More...
#include "asterisk.h"
#include "asterisk/logger.h"
#include "asterisk/module.h"
#include "ari_model_validators.h"
Go to the source code of this file.
Generated file - Build validators for ARI model objects.
Definition in file ari_model_validators.c.
int ast_ari_validate_additional_param | ( | struct ast_json * | json | ) |
Validator for AdditionalParam.
Protocol specific additional parameter
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 2431 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_additional_param_fn(), and ast_ari_validate_required_destination().
ari_validator ast_ari_validate_additional_param_fn | ( | void | ) |
Function pointer to ast_ari_validate_additional_param().
Definition at line 2480 of file ari_model_validators.c.
References ast_ari_validate_additional_param().
int ast_ari_validate_application | ( | struct ast_json * | json | ) |
Validator for Application.
Details of a Stasis application
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 8202 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().
Definition at line 8337 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 2485 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().
Definition at line 2608 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 2613 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().
Definition at line 2687 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
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().
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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
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().
Definition at line 159 of file ari_model_validators.c.
References ast_ari_validate_asterisk_ping().
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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 1740 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(), ast_ari_validate_channel_userevent(), ast_ari_validate_refer_to(), and ast_ari_validate_referred_by().
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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 2692 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().
Definition at line 2945 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 2950 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().
Definition at line 3131 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 3136 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().
Definition at line 3226 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 3231 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().
Definition at line 3321 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().
Definition at line 1904 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 3326 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().
Definition at line 3432 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 3437 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().
Definition at line 3536 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
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().
Definition at line 277 of file ari_model_validators.c.
References ast_ari_validate_build_info().
int ast_ari_validate_caller_id | ( | struct ast_json * | json | ) |
Validator for CallerID.
Caller identification
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
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().
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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
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_tone_detected(), ast_ari_validate_channel_unhold(), ast_ari_validate_channel_userevent(), ast_ari_validate_channel_varset(), ast_ari_validate_dial(), ast_ari_validate_refer_to(), ast_ari_validate_referred_by(), 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 3541 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().
Definition at line 3663 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 3668 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().
Definition at line 3758 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 3763 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().
Definition at line 3853 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 3858 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().
Definition at line 3980 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 3985 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().
Definition at line 4107 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 4112 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().
Definition at line 4234 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 4239 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().
Definition at line 4338 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().
Definition at line 1238 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 4343 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().
Definition at line 4451 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 4456 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().
Definition at line 4555 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 4560 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().
Definition at line 4666 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 4671 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().
Definition at line 4761 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 4766 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().
Definition at line 4872 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 4877 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().
Definition at line 4967 of file ari_model_validators.c.
References ast_ari_validate_channel_talking_started().
int ast_ari_validate_channel_tone_detected | ( | struct ast_json * | json | ) |
Validator for ChannelToneDetected.
Tone was detected on the channel.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 4972 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_tone_detected_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_tone_detected_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_tone_detected().
Definition at line 5062 of file ari_model_validators.c.
References ast_ari_validate_channel_tone_detected().
int ast_ari_validate_channel_transfer | ( | struct ast_json * | json | ) |
Validator for ChannelTransfer.
transfer on a channel.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 5067 of file ari_model_validators.c.
References ast_ari_validate_date(), ast_ari_validate_refer_to(), ast_ari_validate_referred_by(), 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_transfer_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_channel_transfer_fn | ( | void | ) |
Function pointer to ast_ari_validate_channel_transfer().
Definition at line 5182 of file ari_model_validators.c.
References ast_ari_validate_channel_transfer().
int ast_ari_validate_channel_unhold | ( | struct ast_json * | json | ) |
Validator for ChannelUnhold.
A channel initiated a media unhold.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 5187 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().
Definition at line 5277 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 5282 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().
Definition at line 5415 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 5420 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().
Definition at line 5535 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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
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().
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. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
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().
ari_validator ast_ari_validate_config_tuple_fn | ( | void | ) |
Function pointer to ast_ari_validate_config_tuple().
Definition at line 428 of file ari_model_validators.c.
References ast_ari_validate_config_tuple().
Referenced by ast_ari_asterisk_get_object_cb(), and ast_ari_asterisk_update_object_cb().
int ast_ari_validate_contact_info | ( | struct ast_json * | json | ) |
Validator for ContactInfo.
Detailed information about a contact on an endpoint.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 5540 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_contact_info_fn(), and ast_ari_validate_contact_status_change().
ari_validator ast_ari_validate_contact_info_fn | ( | void | ) |
Function pointer to ast_ari_validate_contact_info().
Definition at line 5614 of file ari_model_validators.c.
References ast_ari_validate_contact_info().
int ast_ari_validate_contact_status_change | ( | struct ast_json * | json | ) |
Validator for ContactStatusChange.
The state of a contact on an endpoint has changed.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 5619 of file ari_model_validators.c.
References ast_ari_validate_contact_info(), ast_ari_validate_date(), ast_ari_validate_endpoint(), 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_contact_status_change_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_contact_status_change_fn | ( | void | ) |
Function pointer to ast_ari_validate_contact_status_change().
Definition at line 5725 of file ari_model_validators.c.
References ast_ari_validate_contact_status_change().
int ast_ari_validate_device_state | ( | struct ast_json * | json | ) |
Validator for DeviceState.
Represents the state of a device.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 2307 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_device_states_get_cb(), ast_ari_validate_device_state_changed(), and ast_ari_validate_device_state_fn().
int ast_ari_validate_device_state_changed | ( | struct ast_json * | json | ) |
Validator for DeviceStateChanged.
Notification that a device state has changed.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 5730 of file ari_model_validators.c.
References ast_ari_validate_date(), ast_ari_validate_device_state(), 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_device_state_changed_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_device_state_changed_fn | ( | void | ) |
Function pointer to ast_ari_validate_device_state_changed().
Definition at line 5820 of file ari_model_validators.c.
References ast_ari_validate_device_state_changed().
ari_validator ast_ari_validate_device_state_fn | ( | void | ) |
Function pointer to ast_ari_validate_device_state().
Definition at line 2356 of file ari_model_validators.c.
References ast_ari_validate_device_state().
Referenced by ast_ari_device_states_list_cb().
int ast_ari_validate_dial | ( | struct ast_json * | json | ) |
Validator for Dial.
Dialing state has changed.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 5825 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_dial_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_dial_fn | ( | void | ) |
Function pointer to ast_ari_validate_dial().
Definition at line 5967 of file ari_model_validators.c.
References ast_ari_validate_dial().
int ast_ari_validate_dialed | ( | struct ast_json * | json | ) |
Validator for Dialed.
Dialed channel information.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 1243 of file ari_model_validators.c.
References ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_dialed_fn().
ari_validator ast_ari_validate_dialed_fn | ( | void | ) |
Function pointer to ast_ari_validate_dialed().
Definition at line 1260 of file ari_model_validators.c.
References ast_ari_validate_dialed().
int ast_ari_validate_dialplan_cep | ( | struct ast_json * | json | ) |
Validator for DialplanCEP.
Dialplan location (context/extension/priority)
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 1265 of file ari_model_validators.c.
References ast_ari_validate_long(), 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, has_priority(), and LOG_ERROR.
Referenced by ast_ari_validate_channel(), and ast_ari_validate_dialplan_cep_fn().
ari_validator ast_ari_validate_dialplan_cep_fn | ( | void | ) |
Function pointer to ast_ari_validate_dialplan_cep().
Definition at line 1362 of file ari_model_validators.c.
References ast_ari_validate_dialplan_cep().
int ast_ari_validate_endpoint | ( | struct ast_json * | json | ) |
Validator for Endpoint.
An external device that may offer/accept calls to/from Asterisk.
Unlike most resources, which have a single unique identifier, an endpoint is uniquely identified by the technology/resource pair.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 821 of file ari_model_validators.c.
References 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_endpoints_get_cb(), ast_ari_validate_channel_userevent(), ast_ari_validate_contact_status_change(), ast_ari_validate_endpoint_fn(), ast_ari_validate_endpoint_state_change(), ast_ari_validate_peer_status_change(), and ast_ari_validate_text_message_received().
ari_validator ast_ari_validate_endpoint_fn | ( | void | ) |
Function pointer to ast_ari_validate_endpoint().
Definition at line 896 of file ari_model_validators.c.
References ast_ari_validate_endpoint().
Referenced by ast_ari_endpoints_list_by_tech_cb(), and ast_ari_endpoints_list_cb().
int ast_ari_validate_endpoint_state_change | ( | struct ast_json * | json | ) |
Validator for EndpointStateChange.
Endpoint state changed.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 5972 of file ari_model_validators.c.
References ast_ari_validate_date(), ast_ari_validate_endpoint(), 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_endpoint_state_change_fn(), ast_ari_validate_event(), and ast_ari_validate_message().
ari_validator ast_ari_validate_endpoint_state_change_fn | ( | void | ) |
Function pointer to ast_ari_validate_endpoint_state_change().
Definition at line 6062 of file ari_model_validators.c.
References ast_ari_validate_endpoint_state_change().
int ast_ari_validate_event | ( | struct ast_json * | json | ) |
Validator for Event.
Base type for asynchronous events from Asterisk.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 6067 of file ari_model_validators.c.
References ast_ari_validate_application_move_failed(), ast_ari_validate_application_replaced(), 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_merged(), ast_ari_validate_bridge_video_source_changed(), 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_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_tone_detected(), ast_ari_validate_channel_transfer(), ast_ari_validate_channel_unhold(), ast_ari_validate_channel_userevent(), ast_ari_validate_channel_varset(), ast_ari_validate_contact_status_change(), ast_ari_validate_date(), ast_ari_validate_device_state_changed(), ast_ari_validate_dial(), ast_ari_validate_endpoint_state_change(), ast_ari_validate_peer_status_change(), ast_ari_validate_playback_continuing(), ast_ari_validate_playback_finished(), ast_ari_validate_playback_started(), ast_ari_validate_recording_failed(), ast_ari_validate_recording_finished(), ast_ari_validate_recording_started(), ast_ari_validate_restresponse(), ast_ari_validate_stasis_end(), ast_ari_validate_stasis_start(), ast_ari_validate_string(), ast_ari_validate_text_message_received(), ast_json_object_get(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_json_string_get(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_event_fn(), and ast_ari_validate_message().
ari_validator ast_ari_validate_event_fn | ( | void | ) |
Function pointer to ast_ari_validate_event().
Definition at line 6280 of file ari_model_validators.c.
References ast_ari_validate_event().
int ast_ari_validate_format_lang_pair | ( | struct ast_json * | json | ) |
Validator for FormatLangPair.
Identifies the format and language of a sound file
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 2085 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_format_lang_pair_fn(), and ast_ari_validate_sound().
ari_validator ast_ari_validate_format_lang_pair_fn | ( | void | ) |
Function pointer to ast_ari_validate_format_lang_pair().
Definition at line 2134 of file ari_model_validators.c.
References ast_ari_validate_format_lang_pair().
int ast_ari_validate_live_recording | ( | struct ast_json * | json | ) |
Validator for LiveRecording.
A recording that is in progress
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 1909 of file ari_model_validators.c.
References 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_bridges_record_cb(), ast_ari_channels_record_cb(), ast_ari_recordings_get_live_cb(), ast_ari_validate_live_recording_fn(), ast_ari_validate_recording_failed(), ast_ari_validate_recording_finished(), and ast_ari_validate_recording_started().
ari_validator ast_ari_validate_live_recording_fn | ( | void | ) |
Function pointer to ast_ari_validate_live_recording().
Definition at line 2026 of file ari_model_validators.c.
References ast_ari_validate_live_recording().
int ast_ari_validate_log_channel | ( | struct ast_json * | json | ) |
Validator for LogChannel.
Details of an Asterisk log channel
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 433 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_log_channel_fn().
ari_validator ast_ari_validate_log_channel_fn | ( | void | ) |
Function pointer to ast_ari_validate_log_channel().
Definition at line 514 of file ari_model_validators.c.
References ast_ari_validate_log_channel().
Referenced by ast_ari_asterisk_list_log_channels_cb().
int ast_ari_validate_mailbox | ( | struct ast_json * | json | ) |
Validator for Mailbox.
Represents the state of a mailbox.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 2361 of file ari_model_validators.c.
References 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_mailboxes_get_cb(), and ast_ari_validate_mailbox_fn().
ari_validator ast_ari_validate_mailbox_fn | ( | void | ) |
Function pointer to ast_ari_validate_mailbox().
Definition at line 2426 of file ari_model_validators.c.
References ast_ari_validate_mailbox().
Referenced by ast_ari_mailboxes_list_cb().
int ast_ari_validate_message | ( | struct ast_json * | json | ) |
Validator for Message.
Base type for errors and events
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 6285 of file ari_model_validators.c.
References ast_ari_validate_application_move_failed(), ast_ari_validate_application_replaced(), 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_merged(), ast_ari_validate_bridge_video_source_changed(), 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_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_tone_detected(), ast_ari_validate_channel_transfer(), ast_ari_validate_channel_unhold(), ast_ari_validate_channel_userevent(), ast_ari_validate_channel_varset(), ast_ari_validate_contact_status_change(), ast_ari_validate_device_state_changed(), ast_ari_validate_dial(), ast_ari_validate_endpoint_state_change(), ast_ari_validate_event(), ast_ari_validate_missing_params(), ast_ari_validate_peer_status_change(), ast_ari_validate_playback_continuing(), ast_ari_validate_playback_finished(), ast_ari_validate_playback_started(), ast_ari_validate_recording_failed(), ast_ari_validate_recording_finished(), ast_ari_validate_recording_started(), ast_ari_validate_restresponse(), ast_ari_validate_stasis_end(), ast_ari_validate_stasis_start(), ast_ari_validate_string(), ast_ari_validate_text_message_received(), ast_json_object_get(), ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_json_string_get(), ast_log, and LOG_ERROR.
Referenced by ast_ari_validate_message_fn().
ari_validator ast_ari_validate_message_fn | ( | void | ) |
Function pointer to ast_ari_validate_message().
Definition at line 6472 of file ari_model_validators.c.
References ast_ari_validate_message().
Referenced by websocket_attempted_cb().
int ast_ari_validate_missing_params | ( | struct ast_json * | json | ) |
Validator for MissingParams.
Error event sent when required params are missing.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 6477 of file ari_model_validators.c.
References 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_message(), and ast_ari_validate_missing_params_fn().
ari_validator ast_ari_validate_missing_params_fn | ( | void | ) |
Function pointer to ast_ari_validate_missing_params().
Definition at line 6536 of file ari_model_validators.c.
References ast_ari_validate_missing_params().
int ast_ari_validate_module | ( | struct ast_json * | json | ) |
Validator for Module.
Details of an Asterisk module
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 519 of file ari_model_validators.c.
References 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_asterisk_get_module_cb(), and ast_ari_validate_module_fn().
ari_validator ast_ari_validate_module_fn | ( | void | ) |
Function pointer to ast_ari_validate_module().
Definition at line 616 of file ari_model_validators.c.
References ast_ari_validate_module().
Referenced by ast_ari_asterisk_list_modules_cb().
int ast_ari_validate_peer | ( | struct ast_json * | json | ) |
Validator for Peer.
Detailed information about a remote peer that communicates with Asterisk.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 6541 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_peer_fn(), and ast_ari_validate_peer_status_change().
ari_validator ast_ari_validate_peer_fn | ( | void | ) |
Function pointer to ast_ari_validate_peer().
Definition at line 6610 of file ari_model_validators.c.
References ast_ari_validate_peer().
int ast_ari_validate_peer_status_change | ( | struct ast_json * | json | ) |
Validator for PeerStatusChange.
The state of a peer associated with an endpoint has changed.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 6615 of file ari_model_validators.c.
References ast_ari_validate_date(), ast_ari_validate_endpoint(), ast_ari_validate_peer(), 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_event(), ast_ari_validate_message(), and ast_ari_validate_peer_status_change_fn().
ari_validator ast_ari_validate_peer_status_change_fn | ( | void | ) |
Function pointer to ast_ari_validate_peer_status_change().
Definition at line 6721 of file ari_model_validators.c.
References ast_ari_validate_peer_status_change().
int ast_ari_validate_playback | ( | struct ast_json * | json | ) |
Validator for Playback.
Object representing the playback of media to a channel
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 2203 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_bridges_play_cb(), ast_ari_bridges_play_with_id_cb(), ast_ari_channels_play_cb(), ast_ari_channels_play_with_id_cb(), ast_ari_playbacks_get_cb(), ast_ari_validate_playback_continuing(), ast_ari_validate_playback_finished(), ast_ari_validate_playback_fn(), and ast_ari_validate_playback_started().
int ast_ari_validate_playback_continuing | ( | struct ast_json * | json | ) |
Validator for PlaybackContinuing.
Event showing the continuation of a media playback operation from one media URI to the next in the list.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 6726 of file ari_model_validators.c.
References ast_ari_validate_date(), ast_ari_validate_playback(), 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_event(), ast_ari_validate_message(), and ast_ari_validate_playback_continuing_fn().
ari_validator ast_ari_validate_playback_continuing_fn | ( | void | ) |
Function pointer to ast_ari_validate_playback_continuing().
Definition at line 6816 of file ari_model_validators.c.
References ast_ari_validate_playback_continuing().
int ast_ari_validate_playback_finished | ( | struct ast_json * | json | ) |
Validator for PlaybackFinished.
Event showing the completion of a media playback operation.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 6821 of file ari_model_validators.c.
References ast_ari_validate_date(), ast_ari_validate_playback(), 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_event(), ast_ari_validate_message(), and ast_ari_validate_playback_finished_fn().
ari_validator ast_ari_validate_playback_finished_fn | ( | void | ) |
Function pointer to ast_ari_validate_playback_finished().
Definition at line 6911 of file ari_model_validators.c.
References ast_ari_validate_playback_finished().
ari_validator ast_ari_validate_playback_fn | ( | void | ) |
Function pointer to ast_ari_validate_playback().
Definition at line 2302 of file ari_model_validators.c.
References ast_ari_validate_playback().
int ast_ari_validate_playback_started | ( | struct ast_json * | json | ) |
Validator for PlaybackStarted.
Event showing the start of a media playback operation.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 6916 of file ari_model_validators.c.
References ast_ari_validate_date(), ast_ari_validate_playback(), 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_event(), ast_ari_validate_message(), and ast_ari_validate_playback_started_fn().
ari_validator ast_ari_validate_playback_started_fn | ( | void | ) |
Function pointer to ast_ari_validate_playback_started().
Definition at line 7006 of file ari_model_validators.c.
References ast_ari_validate_playback_started().
int ast_ari_validate_recording_failed | ( | struct ast_json * | json | ) |
Validator for RecordingFailed.
Event showing failure of a recording operation.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 7426 of file ari_model_validators.c.
References ast_ari_validate_date(), ast_ari_validate_live_recording(), 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_event(), ast_ari_validate_message(), and ast_ari_validate_recording_failed_fn().
ari_validator ast_ari_validate_recording_failed_fn | ( | void | ) |
Function pointer to ast_ari_validate_recording_failed().
Definition at line 7516 of file ari_model_validators.c.
References ast_ari_validate_recording_failed().
int ast_ari_validate_recording_finished | ( | struct ast_json * | json | ) |
Validator for RecordingFinished.
Event showing the completion of a recording operation.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 7521 of file ari_model_validators.c.
References ast_ari_validate_date(), ast_ari_validate_live_recording(), 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_event(), ast_ari_validate_message(), and ast_ari_validate_recording_finished_fn().
ari_validator ast_ari_validate_recording_finished_fn | ( | void | ) |
Function pointer to ast_ari_validate_recording_finished().
Definition at line 7611 of file ari_model_validators.c.
References ast_ari_validate_recording_finished().
int ast_ari_validate_recording_started | ( | struct ast_json * | json | ) |
Validator for RecordingStarted.
Event showing the start of a recording operation.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 7616 of file ari_model_validators.c.
References ast_ari_validate_date(), ast_ari_validate_live_recording(), 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_event(), ast_ari_validate_message(), and ast_ari_validate_recording_started_fn().
ari_validator ast_ari_validate_recording_started_fn | ( | void | ) |
Function pointer to ast_ari_validate_recording_started().
Definition at line 7706 of file ari_model_validators.c.
References ast_ari_validate_recording_started().
int ast_ari_validate_refer_to | ( | struct ast_json * | json | ) |
Validator for ReferTo.
transfer destination requested by transferee
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 7711 of file ari_model_validators.c.
References ast_ari_validate_bridge(), ast_ari_validate_channel(), ast_ari_validate_required_destination(), 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_transfer(), and ast_ari_validate_refer_to_fn().
ari_validator ast_ari_validate_refer_to_fn | ( | void | ) |
Function pointer to ast_ari_validate_refer_to().
Definition at line 7771 of file ari_model_validators.c.
References ast_ari_validate_refer_to().
int ast_ari_validate_referred_by | ( | struct ast_json * | json | ) |
Validator for ReferredBy.
transfer destination requested by transferee
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 7776 of file ari_model_validators.c.
References ast_ari_validate_bridge(), ast_ari_validate_channel(), 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_transfer(), and ast_ari_validate_referred_by_fn().
ari_validator ast_ari_validate_referred_by_fn | ( | void | ) |
Function pointer to ast_ari_validate_referred_by().
Definition at line 7827 of file ari_model_validators.c.
References ast_ari_validate_referred_by().
int ast_ari_validate_required_destination | ( | struct ast_json * | json | ) |
Validator for RequiredDestination.
Information about the requested destination
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 7832 of file ari_model_validators.c.
References ast_ari_validate_additional_param(), 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_refer_to(), and ast_ari_validate_required_destination_fn().
ari_validator ast_ari_validate_required_destination_fn | ( | void | ) |
Function pointer to ast_ari_validate_required_destination().
Definition at line 7877 of file ari_model_validators.c.
References ast_ari_validate_required_destination().
int ast_ari_validate_restheader | ( | struct ast_json * | json | ) |
Validator for RESTHeader.
REST over Websocket header
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 7011 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_restheader_fn().
ari_validator ast_ari_validate_restheader_fn | ( | void | ) |
Function pointer to ast_ari_validate_restheader().
Definition at line 7060 of file ari_model_validators.c.
References ast_ari_validate_restheader().
int ast_ari_validate_restquery_string_parameter | ( | struct ast_json * | json | ) |
Validator for RESTQueryStringParameter.
REST over Websocket Query String Parameter
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 7065 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_restquery_string_parameter_fn(), and ast_ari_validate_restrequest().
ari_validator ast_ari_validate_restquery_string_parameter_fn | ( | void | ) |
Function pointer to ast_ari_validate_restquery_string_parameter().
Definition at line 7114 of file ari_model_validators.c.
References ast_ari_validate_restquery_string_parameter().
int ast_ari_validate_restrequest | ( | struct ast_json * | json | ) |
Validator for RESTRequest.
REST over Websocket Request.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 7119 of file ari_model_validators.c.
References ast_ari_validate_list(), ast_ari_validate_restquery_string_parameter(), 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_restrequest_fn().
ari_validator ast_ari_validate_restrequest_fn | ( | void | ) |
Function pointer to ast_ari_validate_restrequest().
Definition at line 7244 of file ari_model_validators.c.
References ast_ari_validate_restrequest().
int ast_ari_validate_restresponse | ( | struct ast_json * | json | ) |
Validator for RESTResponse.
REST over Websocket Response.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 7249 of file ari_model_validators.c.
References 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_event(), ast_ari_validate_message(), and ast_ari_validate_restresponse_fn().
ari_validator ast_ari_validate_restresponse_fn | ( | void | ) |
Function pointer to ast_ari_validate_restresponse().
Definition at line 7421 of file ari_model_validators.c.
References ast_ari_validate_restresponse().
int ast_ari_validate_rtpstat | ( | struct ast_json * | json | ) |
Validator for RTPstat.
A statistics of a RTP.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 1367 of file ari_model_validators.c.
References ast_ari_validate_double(), 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_channels_rtpstatistics_cb(), and ast_ari_validate_rtpstat_fn().
ari_validator ast_ari_validate_rtpstat_fn | ( | void | ) |
Function pointer to ast_ari_validate_rtpstat().
Definition at line 1735 of file ari_model_validators.c.
References ast_ari_validate_rtpstat().
int ast_ari_validate_set_id | ( | struct ast_json * | json | ) |
Validator for SetId.
Effective user/group id
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 621 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_info(), and ast_ari_validate_set_id_fn().
ari_validator ast_ari_validate_set_id_fn | ( | void | ) |
Function pointer to ast_ari_validate_set_id().
Definition at line 670 of file ari_model_validators.c.
References ast_ari_validate_set_id().
int ast_ari_validate_sound | ( | struct ast_json * | json | ) |
Validator for Sound.
A media file that may be played back.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 2139 of file ari_model_validators.c.
References ast_ari_validate_format_lang_pair(), 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_sounds_get_cb(), and ast_ari_validate_sound_fn().
ari_validator ast_ari_validate_sound_fn | ( | void | ) |
Function pointer to ast_ari_validate_sound().
Definition at line 2198 of file ari_model_validators.c.
References ast_ari_validate_sound().
Referenced by ast_ari_sounds_list_cb().
int ast_ari_validate_stasis_end | ( | struct ast_json * | json | ) |
Validator for StasisEnd.
Notification that a channel has left a Stasis application.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 7882 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_event(), ast_ari_validate_message(), and ast_ari_validate_stasis_end_fn().
ari_validator ast_ari_validate_stasis_end_fn | ( | void | ) |
Function pointer to ast_ari_validate_stasis_end().
Definition at line 7972 of file ari_model_validators.c.
References ast_ari_validate_stasis_end().
int ast_ari_validate_stasis_start | ( | struct ast_json * | json | ) |
Validator for StasisStart.
Notification that a channel has entered a Stasis application.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 7977 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_event(), ast_ari_validate_message(), and ast_ari_validate_stasis_start_fn().
ari_validator ast_ari_validate_stasis_start_fn | ( | void | ) |
Function pointer to ast_ari_validate_stasis_start().
Definition at line 8093 of file ari_model_validators.c.
References ast_ari_validate_stasis_start().
int ast_ari_validate_status_info | ( | struct ast_json * | json | ) |
Validator for StatusInfo.
Info about Asterisk status
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 675 of file ari_model_validators.c.
References ast_ari_validate_date(), 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_status_info_fn().
ari_validator ast_ari_validate_status_info_fn | ( | void | ) |
Function pointer to ast_ari_validate_status_info().
Definition at line 724 of file ari_model_validators.c.
References ast_ari_validate_status_info().
int ast_ari_validate_stored_recording | ( | struct ast_json * | json | ) |
Validator for StoredRecording.
A past recording that may be played back.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 2031 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_recordings_copy_stored_cb(), ast_ari_recordings_get_stored_cb(), and ast_ari_validate_stored_recording_fn().
ari_validator ast_ari_validate_stored_recording_fn | ( | void | ) |
Function pointer to ast_ari_validate_stored_recording().
Definition at line 2080 of file ari_model_validators.c.
References ast_ari_validate_stored_recording().
Referenced by ast_ari_recordings_list_stored_cb().
int ast_ari_validate_system_info | ( | struct ast_json * | json | ) |
Validator for SystemInfo.
Info about Asterisk
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 729 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_system_info_fn().
ari_validator ast_ari_validate_system_info_fn | ( | void | ) |
Function pointer to ast_ari_validate_system_info().
Definition at line 778 of file ari_model_validators.c.
References ast_ari_validate_system_info().
int ast_ari_validate_text_message | ( | struct ast_json * | json | ) |
Validator for TextMessage.
A text message.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 901 of file ari_model_validators.c.
References 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_text_message_fn(), and ast_ari_validate_text_message_received().
ari_validator ast_ari_validate_text_message_fn | ( | void | ) |
Function pointer to ast_ari_validate_text_message().
Definition at line 975 of file ari_model_validators.c.
References ast_ari_validate_text_message().
int ast_ari_validate_text_message_received | ( | struct ast_json * | json | ) |
Validator for TextMessageReceived.
A text message was received from an endpoint.
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 8098 of file ari_model_validators.c.
References ast_ari_validate_date(), ast_ari_validate_endpoint(), ast_ari_validate_string(), ast_ari_validate_text_message(), 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_event(), ast_ari_validate_message(), and ast_ari_validate_text_message_received_fn().
ari_validator ast_ari_validate_text_message_received_fn | ( | void | ) |
Function pointer to ast_ari_validate_text_message_received().
Definition at line 8197 of file ari_model_validators.c.
References ast_ari_validate_text_message_received().
int ast_ari_validate_variable | ( | struct ast_json * | json | ) |
Validator for Variable.
The value of a channel variable
json | JSON object to validate. |
True | (non-zero) if valid. |
False | (zero) if invalid. |
Definition at line 783 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_get_global_var_cb(), ast_ari_channels_get_channel_var_cb(), and ast_ari_validate_variable_fn().
ari_validator ast_ari_validate_variable_fn | ( | void | ) |
Function pointer to ast_ari_validate_variable().
Definition at line 816 of file ari_model_validators.c.
References ast_ari_validate_variable().