Asterisk - The Open Source Telephony Project GIT-master-f36a736
ari_model_validators.h
Go to the documentation of this file.
1/*
2 * Asterisk -- An open source telephony toolkit.
3 *
4 * Copyright (C) 2013, Digium, Inc.
5 *
6 * See http://www.asterisk.org for more information about
7 * the Asterisk project. Please do not directly contact
8 * any of the maintainers of this project for assistance;
9 * the project provides a web site, mailing lists and IRC
10 * channels for your use.
11 *
12 * This program is free software, distributed under the terms of
13 * the GNU General Public License Version 2. See the LICENSE file
14 * at the top of the source tree.
15 */
16
17/*! \file
18 *
19 * \brief Generated file - Build validators for ARI model objects.
20 *
21 * In addition to the normal validation functions one would normally expect,
22 * each validator has a ast_ari_validate_{id}_fn() companion function that returns
23 * the validator's function pointer.
24 *
25 * The reason for this seamingly useless indirection is the way function
26 * pointers used to interfere with module loading. Previously, Asterisk
27 * attempted to dlopen() each module using \c RTLD_LAZY in order to read some
28 * metadata from the module. Using functions to get the function pointer
29 * allowed us to be lazy.
30 */
31
32 /*
33 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
34 * !!!!! DO NOT EDIT !!!!!
35 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
36 * This file is generated by a mustache template. Please see the original
37 * template in rest-api-templates/ari_model_validators.h.mustache
38 */
39
40#ifndef _ASTERISK_ARI_MODEL_H
41#define _ASTERISK_ARI_MODEL_H
42
43#include "asterisk/json.h"
44
45/*! @{ */
46
47/*!
48 * \brief Validator for native Swagger void.
49 *
50 * \param json JSON object to validate.
51 * \retval True (non-zero) if valid.
52 * \retval False (zero) if invalid.
53 */
54int ast_ari_validate_void(struct ast_json *json);
55
56/*!
57 * \brief Validator for native Swagger object.
58 *
59 * \param json JSON object to validate.
60 * \retval True (non-zero) if valid.
61 * \retval False (zero) if invalid.
62 */
63int ast_ari_validate_object(struct ast_json *json);
64
65/*!
66 * \brief Validator for native Swagger byte.
67 *
68 * \param json JSON object to validate.
69 * \retval True (non-zero) if valid.
70 * \retval False (zero) if invalid.
71 */
72int ast_ari_validate_byte(struct ast_json *json);
73
74/*!
75 * \brief Validator for native Swagger boolean.
76 *
77 * \param json JSON object to validate.
78 * \retval True (non-zero) if valid.
79 * \retval False (zero) if invalid.
80 */
81int ast_ari_validate_boolean(struct ast_json *json);
82
83/*!
84 * \brief Validator for native Swagger int.
85 *
86 * \param json JSON object to validate.
87 * \retval True (non-zero) if valid.
88 * \retval False (zero) if invalid.
89 */
90int ast_ari_validate_int(struct ast_json *json);
91
92/*!
93 * \brief Validator for native Swagger long.
94 *
95 * \param json JSON object to validate.
96 * \retval True (non-zero) if valid.
97 * \retval False (zero) if invalid.
98 */
99int ast_ari_validate_long(struct ast_json *json);
100
101/*!
102 * \brief Validator for native Swagger float.
103 *
104 * \param json JSON object to validate.
105 * \retval True (non-zero) if valid.
106 * \retval False (zero) if invalid.
107 */
108int ast_ari_validate_float(struct ast_json *json);
109
110/*!
111 * \brief Validator for native Swagger double.
112 *
113 * \param json JSON object to validate.
114 * \retval True (non-zero) if valid.
115 * \retval False (zero) if invalid.
116 */
117int ast_ari_validate_double(struct ast_json *json);
118
119/*!
120 * \brief Validator for native Swagger string.
121 *
122 * \param json JSON object to validate.
123 * \retval True (non-zero) if valid.
124 * \retval False (zero) if invalid.
125 */
126int ast_ari_validate_string(struct ast_json *json);
127
128/*!
129 * \brief Validator for native Swagger date.
130 *
131 * \param json JSON object to validate.
132 * \retval True (non-zero) if valid.
133 * \retval False (zero) if invalid.
134 */
135int ast_ari_validate_date(struct ast_json *json);
136
137/*!
138 * \brief Validator for a Swagger List[]/JSON array.
139 *
140 * \param json JSON object to validate.
141 * \param fn Validator to call on every element in the array.
142 * \retval True (non-zero) if valid.
143 * \retval False (zero) if invalid.
144 */
145int ast_ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
146
147/*! @} */
148
149/*!
150 * \brief Function type for validator functions. Allows for
151 */
152typedef int (*ari_validator)(struct ast_json *json);
153
154/*!
155 * \brief Validator for AsteriskInfo.
156 *
157 * Asterisk system information
158 *
159 * \param json JSON object to validate.
160 * \retval True (non-zero) if valid.
161 * \retval False (zero) if invalid.
162 */
164
165/*!
166 * \brief Function pointer to ast_ari_validate_asterisk_info().
167 */
169
170/*!
171 * \brief Validator for AsteriskPing.
172 *
173 * Asterisk ping information
174 *
175 * \param json JSON object to validate.
176 * \retval True (non-zero) if valid.
177 * \retval False (zero) if invalid.
178 */
180
181/*!
182 * \brief Function pointer to ast_ari_validate_asterisk_ping().
183 */
185
186/*!
187 * \brief Validator for BuildInfo.
188 *
189 * Info about how Asterisk was built
190 *
191 * \param json JSON object to validate.
192 * \retval True (non-zero) if valid.
193 * \retval False (zero) if invalid.
194 */
195int ast_ari_validate_build_info(struct ast_json *json);
196
197/*!
198 * \brief Function pointer to ast_ari_validate_build_info().
199 */
201
202/*!
203 * \brief Validator for ConfigInfo.
204 *
205 * Info about Asterisk configuration
206 *
207 * \param json JSON object to validate.
208 * \retval True (non-zero) if valid.
209 * \retval False (zero) if invalid.
210 */
211int ast_ari_validate_config_info(struct ast_json *json);
212
213/*!
214 * \brief Function pointer to ast_ari_validate_config_info().
215 */
217
218/*!
219 * \brief Validator for ConfigTuple.
220 *
221 * A key/value pair that makes up part of a configuration object.
222 *
223 * \param json JSON object to validate.
224 * \retval True (non-zero) if valid.
225 * \retval False (zero) if invalid.
226 */
228
229/*!
230 * \brief Function pointer to ast_ari_validate_config_tuple().
231 */
233
234/*!
235 * \brief Validator for LogChannel.
236 *
237 * Details of an Asterisk log channel
238 *
239 * \param json JSON object to validate.
240 * \retval True (non-zero) if valid.
241 * \retval False (zero) if invalid.
242 */
243int ast_ari_validate_log_channel(struct ast_json *json);
244
245/*!
246 * \brief Function pointer to ast_ari_validate_log_channel().
247 */
249
250/*!
251 * \brief Validator for Module.
252 *
253 * Details of an Asterisk module
254 *
255 * \param json JSON object to validate.
256 * \retval True (non-zero) if valid.
257 * \retval False (zero) if invalid.
258 */
259int ast_ari_validate_module(struct ast_json *json);
260
261/*!
262 * \brief Function pointer to ast_ari_validate_module().
263 */
265
266/*!
267 * \brief Validator for SetId.
268 *
269 * Effective user/group id
270 *
271 * \param json JSON object to validate.
272 * \retval True (non-zero) if valid.
273 * \retval False (zero) if invalid.
274 */
275int ast_ari_validate_set_id(struct ast_json *json);
276
277/*!
278 * \brief Function pointer to ast_ari_validate_set_id().
279 */
281
282/*!
283 * \brief Validator for StatusInfo.
284 *
285 * Info about Asterisk status
286 *
287 * \param json JSON object to validate.
288 * \retval True (non-zero) if valid.
289 * \retval False (zero) if invalid.
290 */
291int ast_ari_validate_status_info(struct ast_json *json);
292
293/*!
294 * \brief Function pointer to ast_ari_validate_status_info().
295 */
297
298/*!
299 * \brief Validator for SystemInfo.
300 *
301 * Info about Asterisk
302 *
303 * \param json JSON object to validate.
304 * \retval True (non-zero) if valid.
305 * \retval False (zero) if invalid.
306 */
307int ast_ari_validate_system_info(struct ast_json *json);
308
309/*!
310 * \brief Function pointer to ast_ari_validate_system_info().
311 */
313
314/*!
315 * \brief Validator for Variable.
316 *
317 * The value of a channel variable
318 *
319 * \param json JSON object to validate.
320 * \retval True (non-zero) if valid.
321 * \retval False (zero) if invalid.
322 */
323int ast_ari_validate_variable(struct ast_json *json);
324
325/*!
326 * \brief Function pointer to ast_ari_validate_variable().
327 */
329
330/*!
331 * \brief Validator for Endpoint.
332 *
333 * An external device that may offer/accept calls to/from Asterisk.
334 *
335 * Unlike most resources, which have a single unique identifier, an endpoint is uniquely identified by the technology/resource pair.
336 *
337 * \param json JSON object to validate.
338 * \retval True (non-zero) if valid.
339 * \retval False (zero) if invalid.
340 */
341int ast_ari_validate_endpoint(struct ast_json *json);
342
343/*!
344 * \brief Function pointer to ast_ari_validate_endpoint().
345 */
347
348/*!
349 * \brief Validator for TextMessage.
350 *
351 * A text message.
352 *
353 * \param json JSON object to validate.
354 * \retval True (non-zero) if valid.
355 * \retval False (zero) if invalid.
356 */
358
359/*!
360 * \brief Function pointer to ast_ari_validate_text_message().
361 */
363
364/*!
365 * \brief Validator for CallerID.
366 *
367 * Caller identification
368 *
369 * \param json JSON object to validate.
370 * \retval True (non-zero) if valid.
371 * \retval False (zero) if invalid.
372 */
373int ast_ari_validate_caller_id(struct ast_json *json);
374
375/*!
376 * \brief Function pointer to ast_ari_validate_caller_id().
377 */
379
380/*!
381 * \brief Validator for Channel.
382 *
383 * A specific communication connection between Asterisk and an Endpoint.
384 *
385 * \param json JSON object to validate.
386 * \retval True (non-zero) if valid.
387 * \retval False (zero) if invalid.
388 */
389int ast_ari_validate_channel(struct ast_json *json);
390
391/*!
392 * \brief Function pointer to ast_ari_validate_channel().
393 */
395
396/*!
397 * \brief Validator for Dialed.
398 *
399 * Dialed channel information.
400 *
401 * \param json JSON object to validate.
402 * \retval True (non-zero) if valid.
403 * \retval False (zero) if invalid.
404 */
405int ast_ari_validate_dialed(struct ast_json *json);
406
407/*!
408 * \brief Function pointer to ast_ari_validate_dialed().
409 */
411
412/*!
413 * \brief Validator for DialplanCEP.
414 *
415 * Dialplan location (context/extension/priority)
416 *
417 * \param json JSON object to validate.
418 * \retval True (non-zero) if valid.
419 * \retval False (zero) if invalid.
420 */
422
423/*!
424 * \brief Function pointer to ast_ari_validate_dialplan_cep().
425 */
427
428/*!
429 * \brief Validator for RTPstat.
430 *
431 * A statistics of a RTP.
432 *
433 * \param json JSON object to validate.
434 * \retval True (non-zero) if valid.
435 * \retval False (zero) if invalid.
436 */
437int ast_ari_validate_rtpstat(struct ast_json *json);
438
439/*!
440 * \brief Function pointer to ast_ari_validate_rtpstat().
441 */
443
444/*!
445 * \brief Validator for Bridge.
446 *
447 * The merging of media from one or more channels.
448 *
449 * Everyone on the bridge receives the same audio.
450 *
451 * \param json JSON object to validate.
452 * \retval True (non-zero) if valid.
453 * \retval False (zero) if invalid.
454 */
455int ast_ari_validate_bridge(struct ast_json *json);
456
457/*!
458 * \brief Function pointer to ast_ari_validate_bridge().
459 */
461
462/*!
463 * \brief Validator for LiveRecording.
464 *
465 * A recording that is in progress
466 *
467 * \param json JSON object to validate.
468 * \retval True (non-zero) if valid.
469 * \retval False (zero) if invalid.
470 */
472
473/*!
474 * \brief Function pointer to ast_ari_validate_live_recording().
475 */
477
478/*!
479 * \brief Validator for StoredRecording.
480 *
481 * A past recording that may be played back.
482 *
483 * \param json JSON object to validate.
484 * \retval True (non-zero) if valid.
485 * \retval False (zero) if invalid.
486 */
488
489/*!
490 * \brief Function pointer to ast_ari_validate_stored_recording().
491 */
493
494/*!
495 * \brief Validator for FormatLangPair.
496 *
497 * Identifies the format and language of a sound file
498 *
499 * \param json JSON object to validate.
500 * \retval True (non-zero) if valid.
501 * \retval False (zero) if invalid.
502 */
504
505/*!
506 * \brief Function pointer to ast_ari_validate_format_lang_pair().
507 */
509
510/*!
511 * \brief Validator for Sound.
512 *
513 * A media file that may be played back.
514 *
515 * \param json JSON object to validate.
516 * \retval True (non-zero) if valid.
517 * \retval False (zero) if invalid.
518 */
519int ast_ari_validate_sound(struct ast_json *json);
520
521/*!
522 * \brief Function pointer to ast_ari_validate_sound().
523 */
525
526/*!
527 * \brief Validator for Playback.
528 *
529 * Object representing the playback of media to a channel
530 *
531 * \param json JSON object to validate.
532 * \retval True (non-zero) if valid.
533 * \retval False (zero) if invalid.
534 */
535int ast_ari_validate_playback(struct ast_json *json);
536
537/*!
538 * \brief Function pointer to ast_ari_validate_playback().
539 */
541
542/*!
543 * \brief Validator for DeviceState.
544 *
545 * Represents the state of a device.
546 *
547 * \param json JSON object to validate.
548 * \retval True (non-zero) if valid.
549 * \retval False (zero) if invalid.
550 */
552
553/*!
554 * \brief Function pointer to ast_ari_validate_device_state().
555 */
557
558/*!
559 * \brief Validator for Mailbox.
560 *
561 * Represents the state of a mailbox.
562 *
563 * \param json JSON object to validate.
564 * \retval True (non-zero) if valid.
565 * \retval False (zero) if invalid.
566 */
567int ast_ari_validate_mailbox(struct ast_json *json);
568
569/*!
570 * \brief Function pointer to ast_ari_validate_mailbox().
571 */
573
574/*!
575 * \brief Validator for ApplicationMoveFailed.
576 *
577 * Notification that trying to move a channel to another Stasis application failed.
578 *
579 * \param json JSON object to validate.
580 * \retval True (non-zero) if valid.
581 * \retval False (zero) if invalid.
582 */
584
585/*!
586 * \brief Function pointer to ast_ari_validate_application_move_failed().
587 */
589
590/*!
591 * \brief Validator for ApplicationReplaced.
592 *
593 * Notification that another WebSocket has taken over for an application.
594 *
595 * 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.
596 *
597 * \param json JSON object to validate.
598 * \retval True (non-zero) if valid.
599 * \retval False (zero) if invalid.
600 */
602
603/*!
604 * \brief Function pointer to ast_ari_validate_application_replaced().
605 */
607
608/*!
609 * \brief Validator for BridgeAttendedTransfer.
610 *
611 * Notification that an attended transfer has occurred.
612 *
613 * \param json JSON object to validate.
614 * \retval True (non-zero) if valid.
615 * \retval False (zero) if invalid.
616 */
618
619/*!
620 * \brief Function pointer to ast_ari_validate_bridge_attended_transfer().
621 */
623
624/*!
625 * \brief Validator for BridgeBlindTransfer.
626 *
627 * Notification that a blind transfer has occurred.
628 *
629 * \param json JSON object to validate.
630 * \retval True (non-zero) if valid.
631 * \retval False (zero) if invalid.
632 */
634
635/*!
636 * \brief Function pointer to ast_ari_validate_bridge_blind_transfer().
637 */
639
640/*!
641 * \brief Validator for BridgeCreated.
642 *
643 * Notification that a bridge has been created.
644 *
645 * \param json JSON object to validate.
646 * \retval True (non-zero) if valid.
647 * \retval False (zero) if invalid.
648 */
650
651/*!
652 * \brief Function pointer to ast_ari_validate_bridge_created().
653 */
655
656/*!
657 * \brief Validator for BridgeDestroyed.
658 *
659 * Notification that a bridge has been destroyed.
660 *
661 * \param json JSON object to validate.
662 * \retval True (non-zero) if valid.
663 * \retval False (zero) if invalid.
664 */
666
667/*!
668 * \brief Function pointer to ast_ari_validate_bridge_destroyed().
669 */
671
672/*!
673 * \brief Validator for BridgeMerged.
674 *
675 * Notification that one bridge has merged into another.
676 *
677 * \param json JSON object to validate.
678 * \retval True (non-zero) if valid.
679 * \retval False (zero) if invalid.
680 */
682
683/*!
684 * \brief Function pointer to ast_ari_validate_bridge_merged().
685 */
687
688/*!
689 * \brief Validator for BridgeVideoSourceChanged.
690 *
691 * Notification that the source of video in a bridge has changed.
692 *
693 * \param json JSON object to validate.
694 * \retval True (non-zero) if valid.
695 * \retval False (zero) if invalid.
696 */
698
699/*!
700 * \brief Function pointer to ast_ari_validate_bridge_video_source_changed().
701 */
703
704/*!
705 * \brief Validator for ChannelCallerId.
706 *
707 * Channel changed Caller ID.
708 *
709 * \param json JSON object to validate.
710 * \retval True (non-zero) if valid.
711 * \retval False (zero) if invalid.
712 */
714
715/*!
716 * \brief Function pointer to ast_ari_validate_channel_caller_id().
717 */
719
720/*!
721 * \brief Validator for ChannelConnectedLine.
722 *
723 * Channel changed Connected Line.
724 *
725 * \param json JSON object to validate.
726 * \retval True (non-zero) if valid.
727 * \retval False (zero) if invalid.
728 */
730
731/*!
732 * \brief Function pointer to ast_ari_validate_channel_connected_line().
733 */
735
736/*!
737 * \brief Validator for ChannelCreated.
738 *
739 * Notification that a channel has been created.
740 *
741 * \param json JSON object to validate.
742 * \retval True (non-zero) if valid.
743 * \retval False (zero) if invalid.
744 */
746
747/*!
748 * \brief Function pointer to ast_ari_validate_channel_created().
749 */
751
752/*!
753 * \brief Validator for ChannelDestroyed.
754 *
755 * Notification that a channel has been destroyed.
756 *
757 * \param json JSON object to validate.
758 * \retval True (non-zero) if valid.
759 * \retval False (zero) if invalid.
760 */
762
763/*!
764 * \brief Function pointer to ast_ari_validate_channel_destroyed().
765 */
767
768/*!
769 * \brief Validator for ChannelDialplan.
770 *
771 * Channel changed location in the dialplan.
772 *
773 * \param json JSON object to validate.
774 * \retval True (non-zero) if valid.
775 * \retval False (zero) if invalid.
776 */
778
779/*!
780 * \brief Function pointer to ast_ari_validate_channel_dialplan().
781 */
783
784/*!
785 * \brief Validator for ChannelDtmfReceived.
786 *
787 * DTMF received on a channel.
788 *
789 * This event is sent when the DTMF ends. There is no notification about the start of DTMF
790 *
791 * \param json JSON object to validate.
792 * \retval True (non-zero) if valid.
793 * \retval False (zero) if invalid.
794 */
796
797/*!
798 * \brief Function pointer to ast_ari_validate_channel_dtmf_received().
799 */
801
802/*!
803 * \brief Validator for ChannelEnteredBridge.
804 *
805 * Notification that a channel has entered a bridge.
806 *
807 * \param json JSON object to validate.
808 * \retval True (non-zero) if valid.
809 * \retval False (zero) if invalid.
810 */
812
813/*!
814 * \brief Function pointer to ast_ari_validate_channel_entered_bridge().
815 */
817
818/*!
819 * \brief Validator for ChannelHangupRequest.
820 *
821 * A hangup was requested on the channel.
822 *
823 * \param json JSON object to validate.
824 * \retval True (non-zero) if valid.
825 * \retval False (zero) if invalid.
826 */
828
829/*!
830 * \brief Function pointer to ast_ari_validate_channel_hangup_request().
831 */
833
834/*!
835 * \brief Validator for ChannelHold.
836 *
837 * A channel initiated a media hold.
838 *
839 * \param json JSON object to validate.
840 * \retval True (non-zero) if valid.
841 * \retval False (zero) if invalid.
842 */
844
845/*!
846 * \brief Function pointer to ast_ari_validate_channel_hold().
847 */
849
850/*!
851 * \brief Validator for ChannelLeftBridge.
852 *
853 * Notification that a channel has left a bridge.
854 *
855 * \param json JSON object to validate.
856 * \retval True (non-zero) if valid.
857 * \retval False (zero) if invalid.
858 */
860
861/*!
862 * \brief Function pointer to ast_ari_validate_channel_left_bridge().
863 */
865
866/*!
867 * \brief Validator for ChannelStateChange.
868 *
869 * Notification of a channel's state change.
870 *
871 * \param json JSON object to validate.
872 * \retval True (non-zero) if valid.
873 * \retval False (zero) if invalid.
874 */
876
877/*!
878 * \brief Function pointer to ast_ari_validate_channel_state_change().
879 */
881
882/*!
883 * \brief Validator for ChannelTalkingFinished.
884 *
885 * Talking is no longer detected on the channel.
886 *
887 * \param json JSON object to validate.
888 * \retval True (non-zero) if valid.
889 * \retval False (zero) if invalid.
890 */
892
893/*!
894 * \brief Function pointer to ast_ari_validate_channel_talking_finished().
895 */
897
898/*!
899 * \brief Validator for ChannelTalkingStarted.
900 *
901 * Talking was detected on the channel.
902 *
903 * \param json JSON object to validate.
904 * \retval True (non-zero) if valid.
905 * \retval False (zero) if invalid.
906 */
908
909/*!
910 * \brief Function pointer to ast_ari_validate_channel_talking_started().
911 */
913
914/*!
915 * \brief Validator for ChannelToneDetected.
916 *
917 * Tone was detected on the channel.
918 *
919 * \param json JSON object to validate.
920 * \retval True (non-zero) if valid.
921 * \retval False (zero) if invalid.
922 */
924
925/*!
926 * \brief Function pointer to ast_ari_validate_channel_tone_detected().
927 */
929
930/*!
931 * \brief Validator for ChannelUnhold.
932 *
933 * A channel initiated a media unhold.
934 *
935 * \param json JSON object to validate.
936 * \retval True (non-zero) if valid.
937 * \retval False (zero) if invalid.
938 */
940
941/*!
942 * \brief Function pointer to ast_ari_validate_channel_unhold().
943 */
945
946/*!
947 * \brief Validator for ChannelUserevent.
948 *
949 * User-generated event with additional user-defined fields in the object.
950 *
951 * \param json JSON object to validate.
952 * \retval True (non-zero) if valid.
953 * \retval False (zero) if invalid.
954 */
956
957/*!
958 * \brief Function pointer to ast_ari_validate_channel_userevent().
959 */
961
962/*!
963 * \brief Validator for ChannelVarset.
964 *
965 * Channel variable changed.
966 *
967 * \param json JSON object to validate.
968 * \retval True (non-zero) if valid.
969 * \retval False (zero) if invalid.
970 */
972
973/*!
974 * \brief Function pointer to ast_ari_validate_channel_varset().
975 */
977
978/*!
979 * \brief Validator for ContactInfo.
980 *
981 * Detailed information about a contact on an endpoint.
982 *
983 * \param json JSON object to validate.
984 * \retval True (non-zero) if valid.
985 * \retval False (zero) if invalid.
986 */
988
989/*!
990 * \brief Function pointer to ast_ari_validate_contact_info().
991 */
993
994/*!
995 * \brief Validator for ContactStatusChange.
996 *
997 * The state of a contact on an endpoint has changed.
998 *
999 * \param json JSON object to validate.
1000 * \retval True (non-zero) if valid.
1001 * \retval False (zero) if invalid.
1002 */
1004
1005/*!
1006 * \brief Function pointer to ast_ari_validate_contact_status_change().
1007 */
1009
1010/*!
1011 * \brief Validator for DeviceStateChanged.
1012 *
1013 * Notification that a device state has changed.
1014 *
1015 * \param json JSON object to validate.
1016 * \retval True (non-zero) if valid.
1017 * \retval False (zero) if invalid.
1018 */
1020
1021/*!
1022 * \brief Function pointer to ast_ari_validate_device_state_changed().
1023 */
1025
1026/*!
1027 * \brief Validator for Dial.
1028 *
1029 * Dialing state has changed.
1030 *
1031 * \param json JSON object to validate.
1032 * \retval True (non-zero) if valid.
1033 * \retval False (zero) if invalid.
1034 */
1035int ast_ari_validate_dial(struct ast_json *json);
1036
1037/*!
1038 * \brief Function pointer to ast_ari_validate_dial().
1039 */
1041
1042/*!
1043 * \brief Validator for EndpointStateChange.
1044 *
1045 * Endpoint state changed.
1046 *
1047 * \param json JSON object to validate.
1048 * \retval True (non-zero) if valid.
1049 * \retval False (zero) if invalid.
1050 */
1052
1053/*!
1054 * \brief Function pointer to ast_ari_validate_endpoint_state_change().
1055 */
1057
1058/*!
1059 * \brief Validator for Event.
1060 *
1061 * Base type for asynchronous events from Asterisk.
1062 *
1063 * \param json JSON object to validate.
1064 * \retval True (non-zero) if valid.
1065 * \retval False (zero) if invalid.
1066 */
1067int ast_ari_validate_event(struct ast_json *json);
1068
1069/*!
1070 * \brief Function pointer to ast_ari_validate_event().
1071 */
1073
1074/*!
1075 * \brief Validator for Message.
1076 *
1077 * Base type for errors and events
1078 *
1079 * \param json JSON object to validate.
1080 * \retval True (non-zero) if valid.
1081 * \retval False (zero) if invalid.
1082 */
1083int ast_ari_validate_message(struct ast_json *json);
1084
1085/*!
1086 * \brief Function pointer to ast_ari_validate_message().
1087 */
1089
1090/*!
1091 * \brief Validator for MissingParams.
1092 *
1093 * Error event sent when required params are missing.
1094 *
1095 * \param json JSON object to validate.
1096 * \retval True (non-zero) if valid.
1097 * \retval False (zero) if invalid.
1098 */
1100
1101/*!
1102 * \brief Function pointer to ast_ari_validate_missing_params().
1103 */
1105
1106/*!
1107 * \brief Validator for Peer.
1108 *
1109 * Detailed information about a remote peer that communicates with Asterisk.
1110 *
1111 * \param json JSON object to validate.
1112 * \retval True (non-zero) if valid.
1113 * \retval False (zero) if invalid.
1114 */
1115int ast_ari_validate_peer(struct ast_json *json);
1116
1117/*!
1118 * \brief Function pointer to ast_ari_validate_peer().
1119 */
1121
1122/*!
1123 * \brief Validator for PeerStatusChange.
1124 *
1125 * The state of a peer associated with an endpoint has changed.
1126 *
1127 * \param json JSON object to validate.
1128 * \retval True (non-zero) if valid.
1129 * \retval False (zero) if invalid.
1130 */
1132
1133/*!
1134 * \brief Function pointer to ast_ari_validate_peer_status_change().
1135 */
1137
1138/*!
1139 * \brief Validator for PlaybackContinuing.
1140 *
1141 * Event showing the continuation of a media playback operation from one media URI to the next in the list.
1142 *
1143 * \param json JSON object to validate.
1144 * \retval True (non-zero) if valid.
1145 * \retval False (zero) if invalid.
1146 */
1148
1149/*!
1150 * \brief Function pointer to ast_ari_validate_playback_continuing().
1151 */
1153
1154/*!
1155 * \brief Validator for PlaybackFinished.
1156 *
1157 * Event showing the completion of a media playback operation.
1158 *
1159 * \param json JSON object to validate.
1160 * \retval True (non-zero) if valid.
1161 * \retval False (zero) if invalid.
1162 */
1164
1165/*!
1166 * \brief Function pointer to ast_ari_validate_playback_finished().
1167 */
1169
1170/*!
1171 * \brief Validator for PlaybackStarted.
1172 *
1173 * Event showing the start of a media playback operation.
1174 *
1175 * \param json JSON object to validate.
1176 * \retval True (non-zero) if valid.
1177 * \retval False (zero) if invalid.
1178 */
1180
1181/*!
1182 * \brief Function pointer to ast_ari_validate_playback_started().
1183 */
1185
1186/*!
1187 * \brief Validator for RecordingFailed.
1188 *
1189 * Event showing failure of a recording operation.
1190 *
1191 * \param json JSON object to validate.
1192 * \retval True (non-zero) if valid.
1193 * \retval False (zero) if invalid.
1194 */
1196
1197/*!
1198 * \brief Function pointer to ast_ari_validate_recording_failed().
1199 */
1201
1202/*!
1203 * \brief Validator for RecordingFinished.
1204 *
1205 * Event showing the completion of a recording operation.
1206 *
1207 * \param json JSON object to validate.
1208 * \retval True (non-zero) if valid.
1209 * \retval False (zero) if invalid.
1210 */
1212
1213/*!
1214 * \brief Function pointer to ast_ari_validate_recording_finished().
1215 */
1217
1218/*!
1219 * \brief Validator for RecordingStarted.
1220 *
1221 * Event showing the start of a recording operation.
1222 *
1223 * \param json JSON object to validate.
1224 * \retval True (non-zero) if valid.
1225 * \retval False (zero) if invalid.
1226 */
1228
1229/*!
1230 * \brief Function pointer to ast_ari_validate_recording_started().
1231 */
1233
1234/*!
1235 * \brief Validator for StasisEnd.
1236 *
1237 * Notification that a channel has left a Stasis application.
1238 *
1239 * \param json JSON object to validate.
1240 * \retval True (non-zero) if valid.
1241 * \retval False (zero) if invalid.
1242 */
1243int ast_ari_validate_stasis_end(struct ast_json *json);
1244
1245/*!
1246 * \brief Function pointer to ast_ari_validate_stasis_end().
1247 */
1249
1250/*!
1251 * \brief Validator for StasisStart.
1252 *
1253 * Notification that a channel has entered a Stasis application.
1254 *
1255 * \param json JSON object to validate.
1256 * \retval True (non-zero) if valid.
1257 * \retval False (zero) if invalid.
1258 */
1259int ast_ari_validate_stasis_start(struct ast_json *json);
1260
1261/*!
1262 * \brief Function pointer to ast_ari_validate_stasis_start().
1263 */
1265
1266/*!
1267 * \brief Validator for TextMessageReceived.
1268 *
1269 * A text message was received from an endpoint.
1270 *
1271 * \param json JSON object to validate.
1272 * \retval True (non-zero) if valid.
1273 * \retval False (zero) if invalid.
1274 */
1276
1277/*!
1278 * \brief Function pointer to ast_ari_validate_text_message_received().
1279 */
1281
1282/*!
1283 * \brief Validator for Application.
1284 *
1285 * Details of a Stasis application
1286 *
1287 * \param json JSON object to validate.
1288 * \retval True (non-zero) if valid.
1289 * \retval False (zero) if invalid.
1290 */
1291int ast_ari_validate_application(struct ast_json *json);
1292
1293/*!
1294 * \brief Function pointer to ast_ari_validate_application().
1295 */
1297
1298/*
1299 * JSON models
1300 *
1301 * AsteriskInfo
1302 * - build: BuildInfo
1303 * - config: ConfigInfo
1304 * - status: StatusInfo
1305 * - system: SystemInfo
1306 * AsteriskPing
1307 * - asterisk_id: string (required)
1308 * - ping: string (required)
1309 * - timestamp: string (required)
1310 * BuildInfo
1311 * - date: string (required)
1312 * - kernel: string (required)
1313 * - machine: string (required)
1314 * - options: string (required)
1315 * - os: string (required)
1316 * - user: string (required)
1317 * ConfigInfo
1318 * - default_language: string (required)
1319 * - max_channels: int
1320 * - max_load: double
1321 * - max_open_files: int
1322 * - name: string (required)
1323 * - setid: SetId (required)
1324 * ConfigTuple
1325 * - attribute: string (required)
1326 * - value: string (required)
1327 * LogChannel
1328 * - channel: string (required)
1329 * - configuration: string (required)
1330 * - status: string (required)
1331 * - type: string (required)
1332 * Module
1333 * - description: string (required)
1334 * - name: string (required)
1335 * - status: string (required)
1336 * - support_level: string (required)
1337 * - use_count: int (required)
1338 * SetId
1339 * - group: string (required)
1340 * - user: string (required)
1341 * StatusInfo
1342 * - last_reload_time: Date (required)
1343 * - startup_time: Date (required)
1344 * SystemInfo
1345 * - entity_id: string (required)
1346 * - version: string (required)
1347 * Variable
1348 * - value: string (required)
1349 * Endpoint
1350 * - channel_ids: List[string] (required)
1351 * - resource: string (required)
1352 * - state: string
1353 * - technology: string (required)
1354 * TextMessage
1355 * - body: string (required)
1356 * - from: string (required)
1357 * - to: string (required)
1358 * - variables: object
1359 * CallerID
1360 * - name: string (required)
1361 * - number: string (required)
1362 * Channel
1363 * - accountcode: string (required)
1364 * - caller: CallerID (required)
1365 * - caller_rdnis: string
1366 * - channelvars: object
1367 * - connected: CallerID (required)
1368 * - creationtime: Date (required)
1369 * - dialplan: DialplanCEP (required)
1370 * - id: string (required)
1371 * - language: string (required)
1372 * - name: string (required)
1373 * - protocol_id: string (required)
1374 * - state: string (required)
1375 * - tenantid: string
1376 * Dialed
1377 * DialplanCEP
1378 * - app_data: string (required)
1379 * - app_name: string (required)
1380 * - context: string (required)
1381 * - exten: string (required)
1382 * - priority: long (required)
1383 * RTPstat
1384 * - channel_uniqueid: string (required)
1385 * - local_maxjitter: double
1386 * - local_maxrxploss: double
1387 * - local_minjitter: double
1388 * - local_minrxploss: double
1389 * - local_normdevjitter: double
1390 * - local_normdevrxploss: double
1391 * - local_ssrc: int (required)
1392 * - local_stdevjitter: double
1393 * - local_stdevrxploss: double
1394 * - maxrtt: double
1395 * - minrtt: double
1396 * - normdevrtt: double
1397 * - remote_maxjitter: double
1398 * - remote_maxrxploss: double
1399 * - remote_minjitter: double
1400 * - remote_minrxploss: double
1401 * - remote_normdevjitter: double
1402 * - remote_normdevrxploss: double
1403 * - remote_ssrc: int (required)
1404 * - remote_stdevjitter: double
1405 * - remote_stdevrxploss: double
1406 * - rtt: double
1407 * - rxcount: int (required)
1408 * - rxjitter: double
1409 * - rxoctetcount: int (required)
1410 * - rxploss: int (required)
1411 * - stdevrtt: double
1412 * - txcount: int (required)
1413 * - txjitter: double
1414 * - txoctetcount: int (required)
1415 * - txploss: int (required)
1416 * Bridge
1417 * - bridge_class: string (required)
1418 * - bridge_type: string (required)
1419 * - channels: List[string] (required)
1420 * - creationtime: Date (required)
1421 * - creator: string (required)
1422 * - id: string (required)
1423 * - name: string (required)
1424 * - technology: string (required)
1425 * - video_mode: string
1426 * - video_source_id: string
1427 * LiveRecording
1428 * - cause: string
1429 * - duration: int
1430 * - format: string (required)
1431 * - name: string (required)
1432 * - silence_duration: int
1433 * - state: string (required)
1434 * - talking_duration: int
1435 * - target_uri: string (required)
1436 * StoredRecording
1437 * - format: string (required)
1438 * - name: string (required)
1439 * FormatLangPair
1440 * - format: string (required)
1441 * - language: string (required)
1442 * Sound
1443 * - formats: List[FormatLangPair] (required)
1444 * - id: string (required)
1445 * - text: string
1446 * Playback
1447 * - id: string (required)
1448 * - language: string
1449 * - media_uri: string (required)
1450 * - next_media_uri: string
1451 * - state: string (required)
1452 * - target_uri: string (required)
1453 * DeviceState
1454 * - name: string (required)
1455 * - state: string (required)
1456 * Mailbox
1457 * - name: string (required)
1458 * - new_messages: int (required)
1459 * - old_messages: int (required)
1460 * ApplicationMoveFailed
1461 * - asterisk_id: string
1462 * - type: string (required)
1463 * - application: string (required)
1464 * - timestamp: Date (required)
1465 * - args: List[string] (required)
1466 * - channel: Channel (required)
1467 * - destination: string (required)
1468 * ApplicationReplaced
1469 * - asterisk_id: string
1470 * - type: string (required)
1471 * - application: string (required)
1472 * - timestamp: Date (required)
1473 * BridgeAttendedTransfer
1474 * - asterisk_id: string
1475 * - type: string (required)
1476 * - application: string (required)
1477 * - timestamp: Date (required)
1478 * - destination_application: string
1479 * - destination_bridge: string
1480 * - destination_link_first_leg: Channel
1481 * - destination_link_second_leg: Channel
1482 * - destination_threeway_bridge: Bridge
1483 * - destination_threeway_channel: Channel
1484 * - destination_type: string (required)
1485 * - is_external: boolean (required)
1486 * - replace_channel: Channel
1487 * - result: string (required)
1488 * - transfer_target: Channel
1489 * - transferee: Channel
1490 * - transferer_first_leg: Channel (required)
1491 * - transferer_first_leg_bridge: Bridge
1492 * - transferer_second_leg: Channel (required)
1493 * - transferer_second_leg_bridge: Bridge
1494 * BridgeBlindTransfer
1495 * - asterisk_id: string
1496 * - type: string (required)
1497 * - application: string (required)
1498 * - timestamp: Date (required)
1499 * - bridge: Bridge
1500 * - channel: Channel (required)
1501 * - context: string (required)
1502 * - exten: string (required)
1503 * - is_external: boolean (required)
1504 * - replace_channel: Channel
1505 * - result: string (required)
1506 * - transferee: Channel
1507 * BridgeCreated
1508 * - asterisk_id: string
1509 * - type: string (required)
1510 * - application: string (required)
1511 * - timestamp: Date (required)
1512 * - bridge: Bridge (required)
1513 * BridgeDestroyed
1514 * - asterisk_id: string
1515 * - type: string (required)
1516 * - application: string (required)
1517 * - timestamp: Date (required)
1518 * - bridge: Bridge (required)
1519 * BridgeMerged
1520 * - asterisk_id: string
1521 * - type: string (required)
1522 * - application: string (required)
1523 * - timestamp: Date (required)
1524 * - bridge: Bridge (required)
1525 * - bridge_from: Bridge (required)
1526 * BridgeVideoSourceChanged
1527 * - asterisk_id: string
1528 * - type: string (required)
1529 * - application: string (required)
1530 * - timestamp: Date (required)
1531 * - bridge: Bridge (required)
1532 * - old_video_source_id: string
1533 * ChannelCallerId
1534 * - asterisk_id: string
1535 * - type: string (required)
1536 * - application: string (required)
1537 * - timestamp: Date (required)
1538 * - caller_presentation: int (required)
1539 * - caller_presentation_txt: string (required)
1540 * - channel: Channel (required)
1541 * ChannelConnectedLine
1542 * - asterisk_id: string
1543 * - type: string (required)
1544 * - application: string (required)
1545 * - timestamp: Date (required)
1546 * - channel: Channel (required)
1547 * ChannelCreated
1548 * - asterisk_id: string
1549 * - type: string (required)
1550 * - application: string (required)
1551 * - timestamp: Date (required)
1552 * - channel: Channel (required)
1553 * ChannelDestroyed
1554 * - asterisk_id: string
1555 * - type: string (required)
1556 * - application: string (required)
1557 * - timestamp: Date (required)
1558 * - cause: int (required)
1559 * - cause_txt: string (required)
1560 * - channel: Channel (required)
1561 * ChannelDialplan
1562 * - asterisk_id: string
1563 * - type: string (required)
1564 * - application: string (required)
1565 * - timestamp: Date (required)
1566 * - channel: Channel (required)
1567 * - dialplan_app: string (required)
1568 * - dialplan_app_data: string (required)
1569 * ChannelDtmfReceived
1570 * - asterisk_id: string
1571 * - type: string (required)
1572 * - application: string (required)
1573 * - timestamp: Date (required)
1574 * - channel: Channel (required)
1575 * - digit: string (required)
1576 * - duration_ms: int (required)
1577 * ChannelEnteredBridge
1578 * - asterisk_id: string
1579 * - type: string (required)
1580 * - application: string (required)
1581 * - timestamp: Date (required)
1582 * - bridge: Bridge (required)
1583 * - channel: Channel
1584 * ChannelHangupRequest
1585 * - asterisk_id: string
1586 * - type: string (required)
1587 * - application: string (required)
1588 * - timestamp: Date (required)
1589 * - cause: int
1590 * - channel: Channel (required)
1591 * - soft: boolean
1592 * ChannelHold
1593 * - asterisk_id: string
1594 * - type: string (required)
1595 * - application: string (required)
1596 * - timestamp: Date (required)
1597 * - channel: Channel (required)
1598 * - musicclass: string
1599 * ChannelLeftBridge
1600 * - asterisk_id: string
1601 * - type: string (required)
1602 * - application: string (required)
1603 * - timestamp: Date (required)
1604 * - bridge: Bridge (required)
1605 * - channel: Channel (required)
1606 * ChannelStateChange
1607 * - asterisk_id: string
1608 * - type: string (required)
1609 * - application: string (required)
1610 * - timestamp: Date (required)
1611 * - channel: Channel (required)
1612 * ChannelTalkingFinished
1613 * - asterisk_id: string
1614 * - type: string (required)
1615 * - application: string (required)
1616 * - timestamp: Date (required)
1617 * - channel: Channel (required)
1618 * - duration: int (required)
1619 * ChannelTalkingStarted
1620 * - asterisk_id: string
1621 * - type: string (required)
1622 * - application: string (required)
1623 * - timestamp: Date (required)
1624 * - channel: Channel (required)
1625 * ChannelToneDetected
1626 * - asterisk_id: string
1627 * - type: string (required)
1628 * - application: string (required)
1629 * - timestamp: Date (required)
1630 * - channel: Channel (required)
1631 * ChannelUnhold
1632 * - asterisk_id: string
1633 * - type: string (required)
1634 * - application: string (required)
1635 * - timestamp: Date (required)
1636 * - channel: Channel (required)
1637 * ChannelUserevent
1638 * - asterisk_id: string
1639 * - type: string (required)
1640 * - application: string (required)
1641 * - timestamp: Date (required)
1642 * - bridge: Bridge
1643 * - channel: Channel
1644 * - endpoint: Endpoint
1645 * - eventname: string (required)
1646 * - userevent: object (required)
1647 * ChannelVarset
1648 * - asterisk_id: string
1649 * - type: string (required)
1650 * - application: string (required)
1651 * - timestamp: Date (required)
1652 * - channel: Channel
1653 * - value: string (required)
1654 * - variable: string (required)
1655 * ContactInfo
1656 * - aor: string (required)
1657 * - contact_status: string (required)
1658 * - roundtrip_usec: string
1659 * - uri: string (required)
1660 * ContactStatusChange
1661 * - asterisk_id: string
1662 * - type: string (required)
1663 * - application: string (required)
1664 * - timestamp: Date (required)
1665 * - contact_info: ContactInfo (required)
1666 * - endpoint: Endpoint (required)
1667 * DeviceStateChanged
1668 * - asterisk_id: string
1669 * - type: string (required)
1670 * - application: string (required)
1671 * - timestamp: Date (required)
1672 * - device_state: DeviceState (required)
1673 * Dial
1674 * - asterisk_id: string
1675 * - type: string (required)
1676 * - application: string (required)
1677 * - timestamp: Date (required)
1678 * - caller: Channel
1679 * - dialstatus: string (required)
1680 * - dialstring: string
1681 * - forward: string
1682 * - forwarded: Channel
1683 * - peer: Channel (required)
1684 * EndpointStateChange
1685 * - asterisk_id: string
1686 * - type: string (required)
1687 * - application: string (required)
1688 * - timestamp: Date (required)
1689 * - endpoint: Endpoint (required)
1690 * Event
1691 * - asterisk_id: string
1692 * - type: string (required)
1693 * - application: string (required)
1694 * - timestamp: Date (required)
1695 * Message
1696 * - asterisk_id: string
1697 * - type: string (required)
1698 * MissingParams
1699 * - asterisk_id: string
1700 * - type: string (required)
1701 * - params: List[string] (required)
1702 * Peer
1703 * - address: string
1704 * - cause: string
1705 * - peer_status: string (required)
1706 * - port: string
1707 * - time: string
1708 * PeerStatusChange
1709 * - asterisk_id: string
1710 * - type: string (required)
1711 * - application: string (required)
1712 * - timestamp: Date (required)
1713 * - endpoint: Endpoint (required)
1714 * - peer: Peer (required)
1715 * PlaybackContinuing
1716 * - asterisk_id: string
1717 * - type: string (required)
1718 * - application: string (required)
1719 * - timestamp: Date (required)
1720 * - playback: Playback (required)
1721 * PlaybackFinished
1722 * - asterisk_id: string
1723 * - type: string (required)
1724 * - application: string (required)
1725 * - timestamp: Date (required)
1726 * - playback: Playback (required)
1727 * PlaybackStarted
1728 * - asterisk_id: string
1729 * - type: string (required)
1730 * - application: string (required)
1731 * - timestamp: Date (required)
1732 * - playback: Playback (required)
1733 * RecordingFailed
1734 * - asterisk_id: string
1735 * - type: string (required)
1736 * - application: string (required)
1737 * - timestamp: Date (required)
1738 * - recording: LiveRecording (required)
1739 * RecordingFinished
1740 * - asterisk_id: string
1741 * - type: string (required)
1742 * - application: string (required)
1743 * - timestamp: Date (required)
1744 * - recording: LiveRecording (required)
1745 * RecordingStarted
1746 * - asterisk_id: string
1747 * - type: string (required)
1748 * - application: string (required)
1749 * - timestamp: Date (required)
1750 * - recording: LiveRecording (required)
1751 * StasisEnd
1752 * - asterisk_id: string
1753 * - type: string (required)
1754 * - application: string (required)
1755 * - timestamp: Date (required)
1756 * - channel: Channel (required)
1757 * StasisStart
1758 * - asterisk_id: string
1759 * - type: string (required)
1760 * - application: string (required)
1761 * - timestamp: Date (required)
1762 * - args: List[string] (required)
1763 * - channel: Channel (required)
1764 * - replace_channel: Channel
1765 * TextMessageReceived
1766 * - asterisk_id: string
1767 * - type: string (required)
1768 * - application: string (required)
1769 * - timestamp: Date (required)
1770 * - endpoint: Endpoint
1771 * - message: TextMessage (required)
1772 * Application
1773 * - bridge_ids: List[string] (required)
1774 * - channel_ids: List[string] (required)
1775 * - device_names: List[string] (required)
1776 * - endpoint_ids: List[string] (required)
1777 * - events_allowed: List[object] (required)
1778 * - events_disallowed: List[object] (required)
1779 * - name: string (required)
1780 */
1781
1782#endif /* _ASTERISK_ARI_MODEL_H */
ari_validator ast_ari_validate_set_id_fn(void)
Function pointer to ast_ari_validate_set_id().
ari_validator ast_ari_validate_config_info_fn(void)
Function pointer to ast_ari_validate_config_info().
ari_validator ast_ari_validate_sound_fn(void)
Function pointer to ast_ari_validate_sound().
int ast_ari_validate_missing_params(struct ast_json *json)
Validator for MissingParams.
int ast_ari_validate_float(struct ast_json *json)
Validator for native Swagger float.
int ast_ari_validate_variable(struct ast_json *json)
Validator for Variable.
ari_validator ast_ari_validate_live_recording_fn(void)
Function pointer to ast_ari_validate_live_recording().
int ast_ari_validate_application_replaced(struct ast_json *json)
Validator for ApplicationReplaced.
int ast_ari_validate_log_channel(struct ast_json *json)
Validator for LogChannel.
ari_validator ast_ari_validate_peer_fn(void)
Function pointer to ast_ari_validate_peer().
ari_validator ast_ari_validate_channel_talking_started_fn(void)
Function pointer to ast_ari_validate_channel_talking_started().
ari_validator ast_ari_validate_asterisk_ping_fn(void)
Function pointer to ast_ari_validate_asterisk_ping().
ari_validator ast_ari_validate_application_fn(void)
Function pointer to ast_ari_validate_application().
ari_validator ast_ari_validate_application_replaced_fn(void)
Function pointer to ast_ari_validate_application_replaced().
int ast_ari_validate_text_message_received(struct ast_json *json)
Validator for TextMessageReceived.
ari_validator ast_ari_validate_channel_dtmf_received_fn(void)
Function pointer to ast_ari_validate_channel_dtmf_received().
ari_validator ast_ari_validate_contact_status_change_fn(void)
Function pointer to ast_ari_validate_contact_status_change().
ari_validator ast_ari_validate_bridge_destroyed_fn(void)
Function pointer to ast_ari_validate_bridge_destroyed().
int ast_ari_validate_object(struct ast_json *json)
Validator for native Swagger object.
Definition: res_ari_model.c:96
int ast_ari_validate_playback_finished(struct ast_json *json)
Validator for PlaybackFinished.
ari_validator ast_ari_validate_build_info_fn(void)
Function pointer to ast_ari_validate_build_info().
ari_validator ast_ari_validate_recording_started_fn(void)
Function pointer to ast_ari_validate_recording_started().
ari_validator ast_ari_validate_contact_info_fn(void)
Function pointer to ast_ari_validate_contact_info().
int ast_ari_validate_text_message(struct ast_json *json)
Validator for TextMessage.
int ast_ari_validate_bridge_blind_transfer(struct ast_json *json)
Validator for BridgeBlindTransfer.
int ast_ari_validate_channel_destroyed(struct ast_json *json)
Validator for ChannelDestroyed.
ari_validator ast_ari_validate_playback_started_fn(void)
Function pointer to ast_ari_validate_playback_started().
int ast_ari_validate_endpoint_state_change(struct ast_json *json)
Validator for EndpointStateChange.
int ast_ari_validate_playback(struct ast_json *json)
Validator for Playback.
ari_validator ast_ari_validate_playback_continuing_fn(void)
Function pointer to ast_ari_validate_playback_continuing().
int ast_ari_validate_channel_tone_detected(struct ast_json *json)
Validator for ChannelToneDetected.
ari_validator ast_ari_validate_stasis_end_fn(void)
Function pointer to ast_ari_validate_stasis_end().
ari_validator ast_ari_validate_variable_fn(void)
Function pointer to ast_ari_validate_variable().
ari_validator ast_ari_validate_channel_left_bridge_fn(void)
Function pointer to ast_ari_validate_channel_left_bridge().
int ast_ari_validate_application(struct ast_json *json)
Validator for Application.
int ast_ari_validate_dialed(struct ast_json *json)
Validator for Dialed.
int ast_ari_validate_live_recording(struct ast_json *json)
Validator for LiveRecording.
ari_validator ast_ari_validate_stored_recording_fn(void)
Function pointer to ast_ari_validate_stored_recording().
ari_validator ast_ari_validate_channel_userevent_fn(void)
Function pointer to ast_ari_validate_channel_userevent().
ari_validator ast_ari_validate_channel_created_fn(void)
Function pointer to ast_ari_validate_channel_created().
int ast_ari_validate_module(struct ast_json *json)
Validator for Module.
int ast_ari_validate_stasis_start(struct ast_json *json)
Validator for StasisStart.
ari_validator ast_ari_validate_channel_talking_finished_fn(void)
Function pointer to ast_ari_validate_channel_talking_finished().
int ast_ari_validate_mailbox(struct ast_json *json)
Validator for Mailbox.
ari_validator ast_ari_validate_playback_finished_fn(void)
Function pointer to ast_ari_validate_playback_finished().
ari_validator ast_ari_validate_channel_tone_detected_fn(void)
Function pointer to ast_ari_validate_channel_tone_detected().
int ast_ari_validate_channel_hangup_request(struct ast_json *json)
Validator for ChannelHangupRequest.
int ast_ari_validate_bridge(struct ast_json *json)
Validator for Bridge.
int ast_ari_validate_message(struct ast_json *json)
Validator for Message.
ari_validator ast_ari_validate_dialed_fn(void)
Function pointer to ast_ari_validate_dialed().
int ast_ari_validate_contact_info(struct ast_json *json)
Validator for ContactInfo.
int ast_ari_validate_int(struct ast_json *json)
Validator for native Swagger int.
int ast_ari_validate_long(struct ast_json *json)
Validator for native Swagger long.
int ast_ari_validate_dialplan_cep(struct ast_json *json)
Validator for DialplanCEP.
int ast_ari_validate_set_id(struct ast_json *json)
Validator for SetId.
ari_validator ast_ari_validate_channel_varset_fn(void)
Function pointer to ast_ari_validate_channel_varset().
ari_validator ast_ari_validate_playback_fn(void)
Function pointer to ast_ari_validate_playback().
ari_validator ast_ari_validate_system_info_fn(void)
Function pointer to ast_ari_validate_system_info().
ari_validator ast_ari_validate_caller_id_fn(void)
Function pointer to ast_ari_validate_caller_id().
int ast_ari_validate_stasis_end(struct ast_json *json)
Validator for StasisEnd.
ari_validator ast_ari_validate_dialplan_cep_fn(void)
Function pointer to ast_ari_validate_dialplan_cep().
int ast_ari_validate_playback_started(struct ast_json *json)
Validator for PlaybackStarted.
ari_validator ast_ari_validate_bridge_blind_transfer_fn(void)
Function pointer to ast_ari_validate_bridge_blind_transfer().
int ast_ari_validate_byte(struct ast_json *json)
Validator for native Swagger byte.
int ast_ari_validate_bridge_attended_transfer(struct ast_json *json)
Validator for BridgeAttendedTransfer.
int ast_ari_validate_channel_dialplan(struct ast_json *json)
Validator for ChannelDialplan.
int ast_ari_validate_channel_state_change(struct ast_json *json)
Validator for ChannelStateChange.
ari_validator ast_ari_validate_bridge_attended_transfer_fn(void)
Function pointer to ast_ari_validate_bridge_attended_transfer().
int ast_ari_validate_channel_talking_finished(struct ast_json *json)
Validator for ChannelTalkingFinished.
ari_validator ast_ari_validate_missing_params_fn(void)
Function pointer to ast_ari_validate_missing_params().
int ast_ari_validate_channel_dtmf_received(struct ast_json *json)
Validator for ChannelDtmfReceived.
ari_validator ast_ari_validate_config_tuple_fn(void)
Function pointer to ast_ari_validate_config_tuple().
int ast_ari_validate_peer_status_change(struct ast_json *json)
Validator for PeerStatusChange.
int ast_ari_validate_string(struct ast_json *json)
Validator for native Swagger string.
int ast_ari_validate_bridge_created(struct ast_json *json)
Validator for BridgeCreated.
ari_validator ast_ari_validate_dial_fn(void)
Function pointer to ast_ari_validate_dial().
ari_validator ast_ari_validate_bridge_fn(void)
Function pointer to ast_ari_validate_bridge().
ari_validator ast_ari_validate_event_fn(void)
Function pointer to ast_ari_validate_event().
int ast_ari_validate_application_move_failed(struct ast_json *json)
Validator for ApplicationMoveFailed.
ari_validator ast_ari_validate_message_fn(void)
Function pointer to ast_ari_validate_message().
int ast_ari_validate_asterisk_info(struct ast_json *json)
Validator for AsteriskInfo.
int ast_ari_validate_channel_varset(struct ast_json *json)
Validator for ChannelVarset.
int ast_ari_validate_asterisk_ping(struct ast_json *json)
Validator for AsteriskPing.
ari_validator ast_ari_validate_recording_finished_fn(void)
Function pointer to ast_ari_validate_recording_finished().
int ast_ari_validate_boolean(struct ast_json *json)
Validator for native Swagger boolean.
int ast_ari_validate_stored_recording(struct ast_json *json)
Validator for StoredRecording.
int ast_ari_validate_bridge_destroyed(struct ast_json *json)
Validator for BridgeDestroyed.
ari_validator ast_ari_validate_mailbox_fn(void)
Function pointer to ast_ari_validate_mailbox().
ari_validator ast_ari_validate_status_info_fn(void)
Function pointer to ast_ari_validate_status_info().
int ast_ari_validate_format_lang_pair(struct ast_json *json)
Validator for FormatLangPair.
int ast_ari_validate_caller_id(struct ast_json *json)
Validator for CallerID.
int ast_ari_validate_endpoint(struct ast_json *json)
Validator for Endpoint.
int ast_ari_validate_status_info(struct ast_json *json)
Validator for StatusInfo.
ari_validator ast_ari_validate_log_channel_fn(void)
Function pointer to ast_ari_validate_log_channel().
ari_validator ast_ari_validate_rtpstat_fn(void)
Function pointer to ast_ari_validate_rtpstat().
int ast_ari_validate_playback_continuing(struct ast_json *json)
Validator for PlaybackContinuing.
int ast_ari_validate_channel_caller_id(struct ast_json *json)
Validator for ChannelCallerId.
ari_validator ast_ari_validate_peer_status_change_fn(void)
Function pointer to ast_ari_validate_peer_status_change().
ari_validator ast_ari_validate_text_message_fn(void)
Function pointer to ast_ari_validate_text_message().
ari_validator ast_ari_validate_stasis_start_fn(void)
Function pointer to ast_ari_validate_stasis_start().
int ast_ari_validate_recording_finished(struct ast_json *json)
Validator for RecordingFinished.
int ast_ari_validate_void(struct ast_json *json)
Validator for native Swagger void.
Definition: res_ari_model.c:91
ari_validator ast_ari_validate_channel_connected_line_fn(void)
Function pointer to ast_ari_validate_channel_connected_line().
ari_validator ast_ari_validate_channel_dialplan_fn(void)
Function pointer to ast_ari_validate_channel_dialplan().
ari_validator ast_ari_validate_text_message_received_fn(void)
Function pointer to ast_ari_validate_text_message_received().
int ast_ari_validate_double(struct ast_json *json)
Validator for native Swagger double.
int ast_ari_validate_date(struct ast_json *json)
Validator for native Swagger date.
int ast_ari_validate_device_state(struct ast_json *json)
Validator for DeviceState.
int ast_ari_validate_channel_left_bridge(struct ast_json *json)
Validator for ChannelLeftBridge.
int ast_ari_validate_device_state_changed(struct ast_json *json)
Validator for DeviceStateChanged.
int ast_ari_validate_channel_entered_bridge(struct ast_json *json)
Validator for ChannelEnteredBridge.
ari_validator ast_ari_validate_recording_failed_fn(void)
Function pointer to ast_ari_validate_recording_failed().
int ast_ari_validate_channel_unhold(struct ast_json *json)
Validator for ChannelUnhold.
ari_validator ast_ari_validate_device_state_fn(void)
Function pointer to ast_ari_validate_device_state().
ari_validator ast_ari_validate_bridge_video_source_changed_fn(void)
Function pointer to ast_ari_validate_bridge_video_source_changed().
int ast_ari_validate_event(struct ast_json *json)
Validator for Event.
int ast_ari_validate_bridge_video_source_changed(struct ast_json *json)
Validator for BridgeVideoSourceChanged.
int ast_ari_validate_system_info(struct ast_json *json)
Validator for SystemInfo.
ari_validator ast_ari_validate_channel_hold_fn(void)
Function pointer to ast_ari_validate_channel_hold().
int ast_ari_validate_recording_started(struct ast_json *json)
Validator for RecordingStarted.
int ast_ari_validate_channel(struct ast_json *json)
Validator for Channel.
ari_validator ast_ari_validate_module_fn(void)
Function pointer to ast_ari_validate_module().
int ast_ari_validate_build_info(struct ast_json *json)
Validator for BuildInfo.
int ast_ari_validate_rtpstat(struct ast_json *json)
Validator for RTPstat.
int ast_ari_validate_recording_failed(struct ast_json *json)
Validator for RecordingFailed.
int ast_ari_validate_contact_status_change(struct ast_json *json)
Validator for ContactStatusChange.
ari_validator ast_ari_validate_channel_caller_id_fn(void)
Function pointer to ast_ari_validate_channel_caller_id().
ari_validator ast_ari_validate_channel_state_change_fn(void)
Function pointer to ast_ari_validate_channel_state_change().
ari_validator ast_ari_validate_format_lang_pair_fn(void)
Function pointer to ast_ari_validate_format_lang_pair().
ari_validator ast_ari_validate_application_move_failed_fn(void)
Function pointer to ast_ari_validate_application_move_failed().
int ast_ari_validate_config_info(struct ast_json *json)
Validator for ConfigInfo.
ari_validator ast_ari_validate_channel_entered_bridge_fn(void)
Function pointer to ast_ari_validate_channel_entered_bridge().
int ast_ari_validate_list(struct ast_json *json, int(*fn)(struct ast_json *))
Validator for a Swagger List[]/JSON array.
ari_validator ast_ari_validate_channel_destroyed_fn(void)
Function pointer to ast_ari_validate_channel_destroyed().
ari_validator ast_ari_validate_endpoint_state_change_fn(void)
Function pointer to ast_ari_validate_endpoint_state_change().
ari_validator ast_ari_validate_channel_hangup_request_fn(void)
Function pointer to ast_ari_validate_channel_hangup_request().
int ast_ari_validate_config_tuple(struct ast_json *json)
Validator for ConfigTuple.
int ast_ari_validate_sound(struct ast_json *json)
Validator for Sound.
int ast_ari_validate_dial(struct ast_json *json)
Validator for Dial.
int ast_ari_validate_channel_created(struct ast_json *json)
Validator for ChannelCreated.
ari_validator ast_ari_validate_device_state_changed_fn(void)
Function pointer to ast_ari_validate_device_state_changed().
int ast_ari_validate_channel_userevent(struct ast_json *json)
Validator for ChannelUserevent.
int ast_ari_validate_bridge_merged(struct ast_json *json)
Validator for BridgeMerged.
int ast_ari_validate_channel_talking_started(struct ast_json *json)
Validator for ChannelTalkingStarted.
ari_validator ast_ari_validate_channel_unhold_fn(void)
Function pointer to ast_ari_validate_channel_unhold().
int ast_ari_validate_peer(struct ast_json *json)
Validator for Peer.
int ast_ari_validate_channel_connected_line(struct ast_json *json)
Validator for ChannelConnectedLine.
ari_validator ast_ari_validate_bridge_merged_fn(void)
Function pointer to ast_ari_validate_bridge_merged().
ari_validator ast_ari_validate_channel_fn(void)
Function pointer to ast_ari_validate_channel().
ari_validator ast_ari_validate_endpoint_fn(void)
Function pointer to ast_ari_validate_endpoint().
int(* ari_validator)(struct ast_json *json)
Function type for validator functions. Allows for.
ari_validator ast_ari_validate_bridge_created_fn(void)
Function pointer to ast_ari_validate_bridge_created().
ari_validator ast_ari_validate_asterisk_info_fn(void)
Function pointer to ast_ari_validate_asterisk_info().
int ast_ari_validate_channel_hold(struct ast_json *json)
Validator for ChannelHold.
Asterisk JSON abstraction layer.
Abstract JSON element (object, array, string, int, ...).