| 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 | */ |
| 54 | int 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 | */ |
| 63 | int 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 | */ |
| 72 | int 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 | */ |
| 81 | int 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 | */ |
| 90 | int 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 | */ |
| 99 | int 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 | */ |
| 108 | int 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 | */ |
| 117 | int 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 | */ |
| 126 | int 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 | */ |
| 135 | int 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 | */ |
| 145 | int 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 | */ |
| 152 | typedef 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 | */ |
| 163 | int ast_ari_validate_asterisk_info(struct ast_json *json); |
| 164 | |
| 165 | /*! |
| 166 | * \brief Function pointer to ast_ari_validate_asterisk_info(). |
| 167 | */ |
| 168 | ari_validator ast_ari_validate_asterisk_info_fn(void); |
| 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 | */ |
| 179 | int ast_ari_validate_asterisk_ping(struct ast_json *json); |
| 180 | |
| 181 | /*! |
| 182 | * \brief Function pointer to ast_ari_validate_asterisk_ping(). |
| 183 | */ |
| 184 | ari_validator ast_ari_validate_asterisk_ping_fn(void); |
| 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 | */ |
| 195 | int ast_ari_validate_build_info(struct ast_json *json); |
| 196 | |
| 197 | /*! |
| 198 | * \brief Function pointer to ast_ari_validate_build_info(). |
| 199 | */ |
| 200 | ari_validator ast_ari_validate_build_info_fn(void); |
| 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 | */ |
| 211 | int ast_ari_validate_config_info(struct ast_json *json); |
| 212 | |
| 213 | /*! |
| 214 | * \brief Function pointer to ast_ari_validate_config_info(). |
| 215 | */ |
| 216 | ari_validator ast_ari_validate_config_info_fn(void); |
| 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 | */ |
| 227 | int ast_ari_validate_config_tuple(struct ast_json *json); |
| 228 | |
| 229 | /*! |
| 230 | * \brief Function pointer to ast_ari_validate_config_tuple(). |
| 231 | */ |
| 232 | ari_validator ast_ari_validate_config_tuple_fn(void); |
| 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 | */ |
| 243 | int ast_ari_validate_log_channel(struct ast_json *json); |
| 244 | |
| 245 | /*! |
| 246 | * \brief Function pointer to ast_ari_validate_log_channel(). |
| 247 | */ |
| 248 | ari_validator ast_ari_validate_log_channel_fn(void); |
| 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 | */ |
| 259 | int ast_ari_validate_module(struct ast_json *json); |
| 260 | |
| 261 | /*! |
| 262 | * \brief Function pointer to ast_ari_validate_module(). |
| 263 | */ |
| 264 | ari_validator ast_ari_validate_module_fn(void); |
| 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 | */ |
| 275 | int ast_ari_validate_set_id(struct ast_json *json); |
| 276 | |
| 277 | /*! |
| 278 | * \brief Function pointer to ast_ari_validate_set_id(). |
| 279 | */ |
| 280 | ari_validator ast_ari_validate_set_id_fn(void); |
| 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 | */ |
| 291 | int ast_ari_validate_status_info(struct ast_json *json); |
| 292 | |
| 293 | /*! |
| 294 | * \brief Function pointer to ast_ari_validate_status_info(). |
| 295 | */ |
| 296 | ari_validator ast_ari_validate_status_info_fn(void); |
| 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 | */ |
| 307 | int ast_ari_validate_system_info(struct ast_json *json); |
| 308 | |
| 309 | /*! |
| 310 | * \brief Function pointer to ast_ari_validate_system_info(). |
| 311 | */ |
| 312 | ari_validator ast_ari_validate_system_info_fn(void); |
| 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 | */ |
| 323 | int ast_ari_validate_variable(struct ast_json *json); |
| 324 | |
| 325 | /*! |
| 326 | * \brief Function pointer to ast_ari_validate_variable(). |
| 327 | */ |
| 328 | ari_validator ast_ari_validate_variable_fn(void); |
| 329 | |
| 330 | /*! |
| 331 | * \brief Validator for Variables. |
| 332 | * |
| 333 | * A dictionary of channel variables |
| 334 | * |
| 335 | * \param json JSON object to validate. |
| 336 | * \retval True (non-zero) if valid. |
| 337 | * \retval False (zero) if invalid. |
| 338 | */ |
| 339 | int ast_ari_validate_variables(struct ast_json *json); |
| 340 | |
| 341 | /*! |
| 342 | * \brief Function pointer to ast_ari_validate_variables(). |
| 343 | */ |
| 344 | ari_validator ast_ari_validate_variables_fn(void); |
| 345 | |
| 346 | /*! |
| 347 | * \brief Validator for Endpoint. |
| 348 | * |
| 349 | * An external device that may offer/accept calls to/from Asterisk. |
| 350 | * |
| 351 | * Unlike most resources, which have a single unique identifier, an endpoint is uniquely identified by the technology/resource pair. |
| 352 | * |
| 353 | * \param json JSON object to validate. |
| 354 | * \retval True (non-zero) if valid. |
| 355 | * \retval False (zero) if invalid. |
| 356 | */ |
| 357 | int ast_ari_validate_endpoint(struct ast_json *json); |
| 358 | |
| 359 | /*! |
| 360 | * \brief Function pointer to ast_ari_validate_endpoint(). |
| 361 | */ |
| 362 | ari_validator ast_ari_validate_endpoint_fn(void); |
| 363 | |
| 364 | /*! |
| 365 | * \brief Validator for TextMessage. |
| 366 | * |
| 367 | * A text message. |
| 368 | * |
| 369 | * \param json JSON object to validate. |
| 370 | * \retval True (non-zero) if valid. |
| 371 | * \retval False (zero) if invalid. |
| 372 | */ |
| 373 | int ast_ari_validate_text_message(struct ast_json *json); |
| 374 | |
| 375 | /*! |
| 376 | * \brief Function pointer to ast_ari_validate_text_message(). |
| 377 | */ |
| 378 | ari_validator ast_ari_validate_text_message_fn(void); |
| 379 | |
| 380 | /*! |
| 381 | * \brief Validator for CallerID. |
| 382 | * |
| 383 | * Caller identification |
| 384 | * |
| 385 | * \param json JSON object to validate. |
| 386 | * \retval True (non-zero) if valid. |
| 387 | * \retval False (zero) if invalid. |
| 388 | */ |
| 389 | int ast_ari_validate_caller_id(struct ast_json *json); |
| 390 | |
| 391 | /*! |
| 392 | * \brief Function pointer to ast_ari_validate_caller_id(). |
| 393 | */ |
| 394 | ari_validator ast_ari_validate_caller_id_fn(void); |
| 395 | |
| 396 | /*! |
| 397 | * \brief Validator for Channel. |
| 398 | * |
| 399 | * A specific communication connection between Asterisk and an Endpoint. |
| 400 | * |
| 401 | * \param json JSON object to validate. |
| 402 | * \retval True (non-zero) if valid. |
| 403 | * \retval False (zero) if invalid. |
| 404 | */ |
| 405 | int ast_ari_validate_channel(struct ast_json *json); |
| 406 | |
| 407 | /*! |
| 408 | * \brief Function pointer to ast_ari_validate_channel(). |
| 409 | */ |
| 410 | ari_validator ast_ari_validate_channel_fn(void); |
| 411 | |
| 412 | /*! |
| 413 | * \brief Validator for Dialed. |
| 414 | * |
| 415 | * Dialed channel information. |
| 416 | * |
| 417 | * \param json JSON object to validate. |
| 418 | * \retval True (non-zero) if valid. |
| 419 | * \retval False (zero) if invalid. |
| 420 | */ |
| 421 | int ast_ari_validate_dialed(struct ast_json *json); |
| 422 | |
| 423 | /*! |
| 424 | * \brief Function pointer to ast_ari_validate_dialed(). |
| 425 | */ |
| 426 | ari_validator ast_ari_validate_dialed_fn(void); |
| 427 | |
| 428 | /*! |
| 429 | * \brief Validator for DialplanCEP. |
| 430 | * |
| 431 | * Dialplan location (context/extension/priority) |
| 432 | * |
| 433 | * \param json JSON object to validate. |
| 434 | * \retval True (non-zero) if valid. |
| 435 | * \retval False (zero) if invalid. |
| 436 | */ |
| 437 | int ast_ari_validate_dialplan_cep(struct ast_json *json); |
| 438 | |
| 439 | /*! |
| 440 | * \brief Function pointer to ast_ari_validate_dialplan_cep(). |
| 441 | */ |
| 442 | ari_validator ast_ari_validate_dialplan_cep_fn(void); |
| 443 | |
| 444 | /*! |
| 445 | * \brief Validator for RTPstat. |
| 446 | * |
| 447 | * A statistics of a RTP. |
| 448 | * |
| 449 | * \param json JSON object to validate. |
| 450 | * \retval True (non-zero) if valid. |
| 451 | * \retval False (zero) if invalid. |
| 452 | */ |
| 453 | int ast_ari_validate_rtpstat(struct ast_json *json); |
| 454 | |
| 455 | /*! |
| 456 | * \brief Function pointer to ast_ari_validate_rtpstat(). |
| 457 | */ |
| 458 | ari_validator ast_ari_validate_rtpstat_fn(void); |
| 459 | |
| 460 | /*! |
| 461 | * \brief Validator for Bridge. |
| 462 | * |
| 463 | * The merging of media from one or more channels. |
| 464 | * |
| 465 | * Everyone on the bridge receives the same audio. |
| 466 | * |
| 467 | * \param json JSON object to validate. |
| 468 | * \retval True (non-zero) if valid. |
| 469 | * \retval False (zero) if invalid. |
| 470 | */ |
| 471 | int ast_ari_validate_bridge(struct ast_json *json); |
| 472 | |
| 473 | /*! |
| 474 | * \brief Function pointer to ast_ari_validate_bridge(). |
| 475 | */ |
| 476 | ari_validator ast_ari_validate_bridge_fn(void); |
| 477 | |
| 478 | /*! |
| 479 | * \brief Validator for LiveRecording. |
| 480 | * |
| 481 | * A recording that is in progress |
| 482 | * |
| 483 | * \param json JSON object to validate. |
| 484 | * \retval True (non-zero) if valid. |
| 485 | * \retval False (zero) if invalid. |
| 486 | */ |
| 487 | int ast_ari_validate_live_recording(struct ast_json *json); |
| 488 | |
| 489 | /*! |
| 490 | * \brief Function pointer to ast_ari_validate_live_recording(). |
| 491 | */ |
| 492 | ari_validator ast_ari_validate_live_recording_fn(void); |
| 493 | |
| 494 | /*! |
| 495 | * \brief Validator for StoredRecording. |
| 496 | * |
| 497 | * A past recording that may be played back. |
| 498 | * |
| 499 | * \param json JSON object to validate. |
| 500 | * \retval True (non-zero) if valid. |
| 501 | * \retval False (zero) if invalid. |
| 502 | */ |
| 503 | int ast_ari_validate_stored_recording(struct ast_json *json); |
| 504 | |
| 505 | /*! |
| 506 | * \brief Function pointer to ast_ari_validate_stored_recording(). |
| 507 | */ |
| 508 | ari_validator ast_ari_validate_stored_recording_fn(void); |
| 509 | |
| 510 | /*! |
| 511 | * \brief Validator for FormatLangPair. |
| 512 | * |
| 513 | * Identifies the format and language of a sound file |
| 514 | * |
| 515 | * \param json JSON object to validate. |
| 516 | * \retval True (non-zero) if valid. |
| 517 | * \retval False (zero) if invalid. |
| 518 | */ |
| 519 | int ast_ari_validate_format_lang_pair(struct ast_json *json); |
| 520 | |
| 521 | /*! |
| 522 | * \brief Function pointer to ast_ari_validate_format_lang_pair(). |
| 523 | */ |
| 524 | ari_validator ast_ari_validate_format_lang_pair_fn(void); |
| 525 | |
| 526 | /*! |
| 527 | * \brief Validator for Sound. |
| 528 | * |
| 529 | * A media file that may be played back. |
| 530 | * |
| 531 | * \param json JSON object to validate. |
| 532 | * \retval True (non-zero) if valid. |
| 533 | * \retval False (zero) if invalid. |
| 534 | */ |
| 535 | int ast_ari_validate_sound(struct ast_json *json); |
| 536 | |
| 537 | /*! |
| 538 | * \brief Function pointer to ast_ari_validate_sound(). |
| 539 | */ |
| 540 | ari_validator ast_ari_validate_sound_fn(void); |
| 541 | |
| 542 | /*! |
| 543 | * \brief Validator for Playback. |
| 544 | * |
| 545 | * Object representing the playback of media to a channel |
| 546 | * |
| 547 | * \param json JSON object to validate. |
| 548 | * \retval True (non-zero) if valid. |
| 549 | * \retval False (zero) if invalid. |
| 550 | */ |
| 551 | int ast_ari_validate_playback(struct ast_json *json); |
| 552 | |
| 553 | /*! |
| 554 | * \brief Function pointer to ast_ari_validate_playback(). |
| 555 | */ |
| 556 | ari_validator ast_ari_validate_playback_fn(void); |
| 557 | |
| 558 | /*! |
| 559 | * \brief Validator for DeviceState. |
| 560 | * |
| 561 | * Represents the state of a device. |
| 562 | * |
| 563 | * \param json JSON object to validate. |
| 564 | * \retval True (non-zero) if valid. |
| 565 | * \retval False (zero) if invalid. |
| 566 | */ |
| 567 | int ast_ari_validate_device_state(struct ast_json *json); |
| 568 | |
| 569 | /*! |
| 570 | * \brief Function pointer to ast_ari_validate_device_state(). |
| 571 | */ |
| 572 | ari_validator ast_ari_validate_device_state_fn(void); |
| 573 | |
| 574 | /*! |
| 575 | * \brief Validator for Mailbox. |
| 576 | * |
| 577 | * Represents the state of a mailbox. |
| 578 | * |
| 579 | * \param json JSON object to validate. |
| 580 | * \retval True (non-zero) if valid. |
| 581 | * \retval False (zero) if invalid. |
| 582 | */ |
| 583 | int ast_ari_validate_mailbox(struct ast_json *json); |
| 584 | |
| 585 | /*! |
| 586 | * \brief Function pointer to ast_ari_validate_mailbox(). |
| 587 | */ |
| 588 | ari_validator ast_ari_validate_mailbox_fn(void); |
| 589 | |
| 590 | /*! |
| 591 | * \brief Validator for AdditionalParam. |
| 592 | * |
| 593 | * Protocol specific additional parameter |
| 594 | * |
| 595 | * \param json JSON object to validate. |
| 596 | * \retval True (non-zero) if valid. |
| 597 | * \retval False (zero) if invalid. |
| 598 | */ |
| 599 | int ast_ari_validate_additional_param(struct ast_json *json); |
| 600 | |
| 601 | /*! |
| 602 | * \brief Function pointer to ast_ari_validate_additional_param(). |
| 603 | */ |
| 604 | ari_validator ast_ari_validate_additional_param_fn(void); |
| 605 | |
| 606 | /*! |
| 607 | * \brief Validator for ApplicationMoveFailed. |
| 608 | * |
| 609 | * Notification that trying to move a channel to another Stasis application failed. |
| 610 | * |
| 611 | * \param json JSON object to validate. |
| 612 | * \retval True (non-zero) if valid. |
| 613 | * \retval False (zero) if invalid. |
| 614 | */ |
| 615 | int ast_ari_validate_application_move_failed(struct ast_json *json); |
| 616 | |
| 617 | /*! |
| 618 | * \brief Function pointer to ast_ari_validate_application_move_failed(). |
| 619 | */ |
| 620 | ari_validator ast_ari_validate_application_move_failed_fn(void); |
| 621 | |
| 622 | /*! |
| 623 | * \brief Validator for ApplicationRegistered. |
| 624 | * |
| 625 | * Notification that a Stasis app has been registered. |
| 626 | * |
| 627 | * \param json JSON object to validate. |
| 628 | * \retval True (non-zero) if valid. |
| 629 | * \retval False (zero) if invalid. |
| 630 | */ |
| 631 | int ast_ari_validate_application_registered(struct ast_json *json); |
| 632 | |
| 633 | /*! |
| 634 | * \brief Function pointer to ast_ari_validate_application_registered(). |
| 635 | */ |
| 636 | ari_validator ast_ari_validate_application_registered_fn(void); |
| 637 | |
| 638 | /*! |
| 639 | * \brief Validator for ApplicationReplaced. |
| 640 | * |
| 641 | * Notification that another WebSocket has taken over for an application. |
| 642 | * |
| 643 | * 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. |
| 644 | * |
| 645 | * \param json JSON object to validate. |
| 646 | * \retval True (non-zero) if valid. |
| 647 | * \retval False (zero) if invalid. |
| 648 | */ |
| 649 | int ast_ari_validate_application_replaced(struct ast_json *json); |
| 650 | |
| 651 | /*! |
| 652 | * \brief Function pointer to ast_ari_validate_application_replaced(). |
| 653 | */ |
| 654 | ari_validator ast_ari_validate_application_replaced_fn(void); |
| 655 | |
| 656 | /*! |
| 657 | * \brief Validator for ApplicationUnregistered. |
| 658 | * |
| 659 | * Notification that a Stasis app has been unregistered. |
| 660 | * |
| 661 | * \param json JSON object to validate. |
| 662 | * \retval True (non-zero) if valid. |
| 663 | * \retval False (zero) if invalid. |
| 664 | */ |
| 665 | int ast_ari_validate_application_unregistered(struct ast_json *json); |
| 666 | |
| 667 | /*! |
| 668 | * \brief Function pointer to ast_ari_validate_application_unregistered(). |
| 669 | */ |
| 670 | ari_validator ast_ari_validate_application_unregistered_fn(void); |
| 671 | |
| 672 | /*! |
| 673 | * \brief Validator for BridgeAttendedTransfer. |
| 674 | * |
| 675 | * Notification that an attended transfer has occurred. |
| 676 | * |
| 677 | * \param json JSON object to validate. |
| 678 | * \retval True (non-zero) if valid. |
| 679 | * \retval False (zero) if invalid. |
| 680 | */ |
| 681 | int ast_ari_validate_bridge_attended_transfer(struct ast_json *json); |
| 682 | |
| 683 | /*! |
| 684 | * \brief Function pointer to ast_ari_validate_bridge_attended_transfer(). |
| 685 | */ |
| 686 | ari_validator ast_ari_validate_bridge_attended_transfer_fn(void); |
| 687 | |
| 688 | /*! |
| 689 | * \brief Validator for BridgeBlindTransfer. |
| 690 | * |
| 691 | * Notification that a blind transfer has occurred. |
| 692 | * |
| 693 | * \param json JSON object to validate. |
| 694 | * \retval True (non-zero) if valid. |
| 695 | * \retval False (zero) if invalid. |
| 696 | */ |
| 697 | int ast_ari_validate_bridge_blind_transfer(struct ast_json *json); |
| 698 | |
| 699 | /*! |
| 700 | * \brief Function pointer to ast_ari_validate_bridge_blind_transfer(). |
| 701 | */ |
| 702 | ari_validator ast_ari_validate_bridge_blind_transfer_fn(void); |
| 703 | |
| 704 | /*! |
| 705 | * \brief Validator for BridgeCreated. |
| 706 | * |
| 707 | * Notification that a bridge has been created. |
| 708 | * |
| 709 | * \param json JSON object to validate. |
| 710 | * \retval True (non-zero) if valid. |
| 711 | * \retval False (zero) if invalid. |
| 712 | */ |
| 713 | int ast_ari_validate_bridge_created(struct ast_json *json); |
| 714 | |
| 715 | /*! |
| 716 | * \brief Function pointer to ast_ari_validate_bridge_created(). |
| 717 | */ |
| 718 | ari_validator ast_ari_validate_bridge_created_fn(void); |
| 719 | |
| 720 | /*! |
| 721 | * \brief Validator for BridgeDestroyed. |
| 722 | * |
| 723 | * Notification that a bridge has been destroyed. |
| 724 | * |
| 725 | * \param json JSON object to validate. |
| 726 | * \retval True (non-zero) if valid. |
| 727 | * \retval False (zero) if invalid. |
| 728 | */ |
| 729 | int ast_ari_validate_bridge_destroyed(struct ast_json *json); |
| 730 | |
| 731 | /*! |
| 732 | * \brief Function pointer to ast_ari_validate_bridge_destroyed(). |
| 733 | */ |
| 734 | ari_validator ast_ari_validate_bridge_destroyed_fn(void); |
| 735 | |
| 736 | /*! |
| 737 | * \brief Validator for BridgeMerged. |
| 738 | * |
| 739 | * Notification that one bridge has merged into another. |
| 740 | * |
| 741 | * \param json JSON object to validate. |
| 742 | * \retval True (non-zero) if valid. |
| 743 | * \retval False (zero) if invalid. |
| 744 | */ |
| 745 | int ast_ari_validate_bridge_merged(struct ast_json *json); |
| 746 | |
| 747 | /*! |
| 748 | * \brief Function pointer to ast_ari_validate_bridge_merged(). |
| 749 | */ |
| 750 | ari_validator ast_ari_validate_bridge_merged_fn(void); |
| 751 | |
| 752 | /*! |
| 753 | * \brief Validator for BridgeVideoSourceChanged. |
| 754 | * |
| 755 | * Notification that the source of video in a bridge has changed. |
| 756 | * |
| 757 | * \param json JSON object to validate. |
| 758 | * \retval True (non-zero) if valid. |
| 759 | * \retval False (zero) if invalid. |
| 760 | */ |
| 761 | int ast_ari_validate_bridge_video_source_changed(struct ast_json *json); |
| 762 | |
| 763 | /*! |
| 764 | * \brief Function pointer to ast_ari_validate_bridge_video_source_changed(). |
| 765 | */ |
| 766 | ari_validator ast_ari_validate_bridge_video_source_changed_fn(void); |
| 767 | |
| 768 | /*! |
| 769 | * \brief Validator for CallBroadcast. |
| 770 | * |
| 771 | * Notification that a channel is being broadcast to ARI applications for claiming. |
| 772 | * |
| 773 | * \param json JSON object to validate. |
| 774 | * \retval True (non-zero) if valid. |
| 775 | * \retval False (zero) if invalid. |
| 776 | */ |
| 777 | int ast_ari_validate_call_broadcast(struct ast_json *json); |
| 778 | |
| 779 | /*! |
| 780 | * \brief Function pointer to ast_ari_validate_call_broadcast(). |
| 781 | */ |
| 782 | ari_validator ast_ari_validate_call_broadcast_fn(void); |
| 783 | |
| 784 | /*! |
| 785 | * \brief Validator for CallClaimed. |
| 786 | * |
| 787 | * Notification that a broadcast channel has been successfully claimed by an ARI application. |
| 788 | * |
| 789 | * \param json JSON object to validate. |
| 790 | * \retval True (non-zero) if valid. |
| 791 | * \retval False (zero) if invalid. |
| 792 | */ |
| 793 | int ast_ari_validate_call_claimed(struct ast_json *json); |
| 794 | |
| 795 | /*! |
| 796 | * \brief Function pointer to ast_ari_validate_call_claimed(). |
| 797 | */ |
| 798 | ari_validator ast_ari_validate_call_claimed_fn(void); |
| 799 | |
| 800 | /*! |
| 801 | * \brief Validator for ChannelCallerId. |
| 802 | * |
| 803 | * Channel changed Caller ID. |
| 804 | * |
| 805 | * \param json JSON object to validate. |
| 806 | * \retval True (non-zero) if valid. |
| 807 | * \retval False (zero) if invalid. |
| 808 | */ |
| 809 | int ast_ari_validate_channel_caller_id(struct ast_json *json); |
| 810 | |
| 811 | /*! |
| 812 | * \brief Function pointer to ast_ari_validate_channel_caller_id(). |
| 813 | */ |
| 814 | ari_validator ast_ari_validate_channel_caller_id_fn(void); |
| 815 | |
| 816 | /*! |
| 817 | * \brief Validator for ChannelConnectedLine. |
| 818 | * |
| 819 | * Channel changed Connected Line. |
| 820 | * |
| 821 | * \param json JSON object to validate. |
| 822 | * \retval True (non-zero) if valid. |
| 823 | * \retval False (zero) if invalid. |
| 824 | */ |
| 825 | int ast_ari_validate_channel_connected_line(struct ast_json *json); |
| 826 | |
| 827 | /*! |
| 828 | * \brief Function pointer to ast_ari_validate_channel_connected_line(). |
| 829 | */ |
| 830 | ari_validator ast_ari_validate_channel_connected_line_fn(void); |
| 831 | |
| 832 | /*! |
| 833 | * \brief Validator for ChannelCreated. |
| 834 | * |
| 835 | * Notification that a channel has been created. |
| 836 | * |
| 837 | * \param json JSON object to validate. |
| 838 | * \retval True (non-zero) if valid. |
| 839 | * \retval False (zero) if invalid. |
| 840 | */ |
| 841 | int ast_ari_validate_channel_created(struct ast_json *json); |
| 842 | |
| 843 | /*! |
| 844 | * \brief Function pointer to ast_ari_validate_channel_created(). |
| 845 | */ |
| 846 | ari_validator ast_ari_validate_channel_created_fn(void); |
| 847 | |
| 848 | /*! |
| 849 | * \brief Validator for ChannelDestroyed. |
| 850 | * |
| 851 | * Notification that a channel has been destroyed. |
| 852 | * |
| 853 | * \param json JSON object to validate. |
| 854 | * \retval True (non-zero) if valid. |
| 855 | * \retval False (zero) if invalid. |
| 856 | */ |
| 857 | int ast_ari_validate_channel_destroyed(struct ast_json *json); |
| 858 | |
| 859 | /*! |
| 860 | * \brief Function pointer to ast_ari_validate_channel_destroyed(). |
| 861 | */ |
| 862 | ari_validator ast_ari_validate_channel_destroyed_fn(void); |
| 863 | |
| 864 | /*! |
| 865 | * \brief Validator for ChannelDialplan. |
| 866 | * |
| 867 | * Channel changed location in the dialplan. |
| 868 | * |
| 869 | * \param json JSON object to validate. |
| 870 | * \retval True (non-zero) if valid. |
| 871 | * \retval False (zero) if invalid. |
| 872 | */ |
| 873 | int ast_ari_validate_channel_dialplan(struct ast_json *json); |
| 874 | |
| 875 | /*! |
| 876 | * \brief Function pointer to ast_ari_validate_channel_dialplan(). |
| 877 | */ |
| 878 | ari_validator ast_ari_validate_channel_dialplan_fn(void); |
| 879 | |
| 880 | /*! |
| 881 | * \brief Validator for ChannelDtmfReceived. |
| 882 | * |
| 883 | * DTMF received on a channel. |
| 884 | * |
| 885 | * This event is sent when the DTMF ends. There is no notification about the start of DTMF |
| 886 | * |
| 887 | * \param json JSON object to validate. |
| 888 | * \retval True (non-zero) if valid. |
| 889 | * \retval False (zero) if invalid. |
| 890 | */ |
| 891 | int ast_ari_validate_channel_dtmf_received(struct ast_json *json); |
| 892 | |
| 893 | /*! |
| 894 | * \brief Function pointer to ast_ari_validate_channel_dtmf_received(). |
| 895 | */ |
| 896 | ari_validator ast_ari_validate_channel_dtmf_received_fn(void); |
| 897 | |
| 898 | /*! |
| 899 | * \brief Validator for ChannelEnteredBridge. |
| 900 | * |
| 901 | * Notification that a channel has entered a bridge. |
| 902 | * |
| 903 | * \param json JSON object to validate. |
| 904 | * \retval True (non-zero) if valid. |
| 905 | * \retval False (zero) if invalid. |
| 906 | */ |
| 907 | int ast_ari_validate_channel_entered_bridge(struct ast_json *json); |
| 908 | |
| 909 | /*! |
| 910 | * \brief Function pointer to ast_ari_validate_channel_entered_bridge(). |
| 911 | */ |
| 912 | ari_validator ast_ari_validate_channel_entered_bridge_fn(void); |
| 913 | |
| 914 | /*! |
| 915 | * \brief Validator for ChannelHangupRequest. |
| 916 | * |
| 917 | * A hangup was requested 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 | */ |
| 923 | int ast_ari_validate_channel_hangup_request(struct ast_json *json); |
| 924 | |
| 925 | /*! |
| 926 | * \brief Function pointer to ast_ari_validate_channel_hangup_request(). |
| 927 | */ |
| 928 | ari_validator ast_ari_validate_channel_hangup_request_fn(void); |
| 929 | |
| 930 | /*! |
| 931 | * \brief Validator for ChannelHold. |
| 932 | * |
| 933 | * A channel initiated a media hold. |
| 934 | * |
| 935 | * \param json JSON object to validate. |
| 936 | * \retval True (non-zero) if valid. |
| 937 | * \retval False (zero) if invalid. |
| 938 | */ |
| 939 | int ast_ari_validate_channel_hold(struct ast_json *json); |
| 940 | |
| 941 | /*! |
| 942 | * \brief Function pointer to ast_ari_validate_channel_hold(). |
| 943 | */ |
| 944 | ari_validator ast_ari_validate_channel_hold_fn(void); |
| 945 | |
| 946 | /*! |
| 947 | * \brief Validator for ChannelLeftBridge. |
| 948 | * |
| 949 | * Notification that a channel has left a bridge. |
| 950 | * |
| 951 | * \param json JSON object to validate. |
| 952 | * \retval True (non-zero) if valid. |
| 953 | * \retval False (zero) if invalid. |
| 954 | */ |
| 955 | int ast_ari_validate_channel_left_bridge(struct ast_json *json); |
| 956 | |
| 957 | /*! |
| 958 | * \brief Function pointer to ast_ari_validate_channel_left_bridge(). |
| 959 | */ |
| 960 | ari_validator ast_ari_validate_channel_left_bridge_fn(void); |
| 961 | |
| 962 | /*! |
| 963 | * \brief Validator for ChannelStateChange. |
| 964 | * |
| 965 | * Notification of a channel's state change. |
| 966 | * |
| 967 | * \param json JSON object to validate. |
| 968 | * \retval True (non-zero) if valid. |
| 969 | * \retval False (zero) if invalid. |
| 970 | */ |
| 971 | int ast_ari_validate_channel_state_change(struct ast_json *json); |
| 972 | |
| 973 | /*! |
| 974 | * \brief Function pointer to ast_ari_validate_channel_state_change(). |
| 975 | */ |
| 976 | ari_validator ast_ari_validate_channel_state_change_fn(void); |
| 977 | |
| 978 | /*! |
| 979 | * \brief Validator for ChannelTalkingFinished. |
| 980 | * |
| 981 | * Talking is no longer detected on the channel. |
| 982 | * |
| 983 | * \param json JSON object to validate. |
| 984 | * \retval True (non-zero) if valid. |
| 985 | * \retval False (zero) if invalid. |
| 986 | */ |
| 987 | int ast_ari_validate_channel_talking_finished(struct ast_json *json); |
| 988 | |
| 989 | /*! |
| 990 | * \brief Function pointer to ast_ari_validate_channel_talking_finished(). |
| 991 | */ |
| 992 | ari_validator ast_ari_validate_channel_talking_finished_fn(void); |
| 993 | |
| 994 | /*! |
| 995 | * \brief Validator for ChannelTalkingStarted. |
| 996 | * |
| 997 | * Talking was detected on the channel. |
| 998 | * |
| 999 | * \param json JSON object to validate. |
| 1000 | * \retval True (non-zero) if valid. |
| 1001 | * \retval False (zero) if invalid. |
| 1002 | */ |
| 1003 | int ast_ari_validate_channel_talking_started(struct ast_json *json); |
| 1004 | |
| 1005 | /*! |
| 1006 | * \brief Function pointer to ast_ari_validate_channel_talking_started(). |
| 1007 | */ |
| 1008 | ari_validator ast_ari_validate_channel_talking_started_fn(void); |
| 1009 | |
| 1010 | /*! |
| 1011 | * \brief Validator for ChannelToneDetected. |
| 1012 | * |
| 1013 | * Tone was detected on the channel. |
| 1014 | * |
| 1015 | * \param json JSON object to validate. |
| 1016 | * \retval True (non-zero) if valid. |
| 1017 | * \retval False (zero) if invalid. |
| 1018 | */ |
| 1019 | int ast_ari_validate_channel_tone_detected(struct ast_json *json); |
| 1020 | |
| 1021 | /*! |
| 1022 | * \brief Function pointer to ast_ari_validate_channel_tone_detected(). |
| 1023 | */ |
| 1024 | ari_validator ast_ari_validate_channel_tone_detected_fn(void); |
| 1025 | |
| 1026 | /*! |
| 1027 | * \brief Validator for ChannelTransfer. |
| 1028 | * |
| 1029 | * transfer on a channel. |
| 1030 | * |
| 1031 | * \param json JSON object to validate. |
| 1032 | * \retval True (non-zero) if valid. |
| 1033 | * \retval False (zero) if invalid. |
| 1034 | */ |
| 1035 | int ast_ari_validate_channel_transfer(struct ast_json *json); |
| 1036 | |
| 1037 | /*! |
| 1038 | * \brief Function pointer to ast_ari_validate_channel_transfer(). |
| 1039 | */ |
| 1040 | ari_validator ast_ari_validate_channel_transfer_fn(void); |
| 1041 | |
| 1042 | /*! |
| 1043 | * \brief Validator for ChannelUnhold. |
| 1044 | * |
| 1045 | * A channel initiated a media unhold. |
| 1046 | * |
| 1047 | * \param json JSON object to validate. |
| 1048 | * \retval True (non-zero) if valid. |
| 1049 | * \retval False (zero) if invalid. |
| 1050 | */ |
| 1051 | int ast_ari_validate_channel_unhold(struct ast_json *json); |
| 1052 | |
| 1053 | /*! |
| 1054 | * \brief Function pointer to ast_ari_validate_channel_unhold(). |
| 1055 | */ |
| 1056 | ari_validator ast_ari_validate_channel_unhold_fn(void); |
| 1057 | |
| 1058 | /*! |
| 1059 | * \brief Validator for ChannelUserevent. |
| 1060 | * |
| 1061 | * User-generated event with additional user-defined fields in the object. |
| 1062 | * |
| 1063 | * \param json JSON object to validate. |
| 1064 | * \retval True (non-zero) if valid. |
| 1065 | * \retval False (zero) if invalid. |
| 1066 | */ |
| 1067 | int ast_ari_validate_channel_userevent(struct ast_json *json); |
| 1068 | |
| 1069 | /*! |
| 1070 | * \brief Function pointer to ast_ari_validate_channel_userevent(). |
| 1071 | */ |
| 1072 | ari_validator ast_ari_validate_channel_userevent_fn(void); |
| 1073 | |
| 1074 | /*! |
| 1075 | * \brief Validator for ChannelVarset. |
| 1076 | * |
| 1077 | * Channel variable changed. |
| 1078 | * |
| 1079 | * \param json JSON object to validate. |
| 1080 | * \retval True (non-zero) if valid. |
| 1081 | * \retval False (zero) if invalid. |
| 1082 | */ |
| 1083 | int ast_ari_validate_channel_varset(struct ast_json *json); |
| 1084 | |
| 1085 | /*! |
| 1086 | * \brief Function pointer to ast_ari_validate_channel_varset(). |
| 1087 | */ |
| 1088 | ari_validator ast_ari_validate_channel_varset_fn(void); |
| 1089 | |
| 1090 | /*! |
| 1091 | * \brief Validator for ContactInfo. |
| 1092 | * |
| 1093 | * Detailed information about a contact on an endpoint. |
| 1094 | * |
| 1095 | * \param json JSON object to validate. |
| 1096 | * \retval True (non-zero) if valid. |
| 1097 | * \retval False (zero) if invalid. |
| 1098 | */ |
| 1099 | int ast_ari_validate_contact_info(struct ast_json *json); |
| 1100 | |
| 1101 | /*! |
| 1102 | * \brief Function pointer to ast_ari_validate_contact_info(). |
| 1103 | */ |
| 1104 | ari_validator ast_ari_validate_contact_info_fn(void); |
| 1105 | |
| 1106 | /*! |
| 1107 | * \brief Validator for ContactStatusChange. |
| 1108 | * |
| 1109 | * The state of a contact on an endpoint has changed. |
| 1110 | * |
| 1111 | * \param json JSON object to validate. |
| 1112 | * \retval True (non-zero) if valid. |
| 1113 | * \retval False (zero) if invalid. |
| 1114 | */ |
| 1115 | int ast_ari_validate_contact_status_change(struct ast_json *json); |
| 1116 | |
| 1117 | /*! |
| 1118 | * \brief Function pointer to ast_ari_validate_contact_status_change(). |
| 1119 | */ |
| 1120 | ari_validator ast_ari_validate_contact_status_change_fn(void); |
| 1121 | |
| 1122 | /*! |
| 1123 | * \brief Validator for DeviceStateChanged. |
| 1124 | * |
| 1125 | * Notification that a device state has changed. |
| 1126 | * |
| 1127 | * \param json JSON object to validate. |
| 1128 | * \retval True (non-zero) if valid. |
| 1129 | * \retval False (zero) if invalid. |
| 1130 | */ |
| 1131 | int ast_ari_validate_device_state_changed(struct ast_json *json); |
| 1132 | |
| 1133 | /*! |
| 1134 | * \brief Function pointer to ast_ari_validate_device_state_changed(). |
| 1135 | */ |
| 1136 | ari_validator ast_ari_validate_device_state_changed_fn(void); |
| 1137 | |
| 1138 | /*! |
| 1139 | * \brief Validator for Dial. |
| 1140 | * |
| 1141 | * Dialing state has changed. |
| 1142 | * |
| 1143 | * \param json JSON object to validate. |
| 1144 | * \retval True (non-zero) if valid. |
| 1145 | * \retval False (zero) if invalid. |
| 1146 | */ |
| 1147 | int ast_ari_validate_dial(struct ast_json *json); |
| 1148 | |
| 1149 | /*! |
| 1150 | * \brief Function pointer to ast_ari_validate_dial(). |
| 1151 | */ |
| 1152 | ari_validator ast_ari_validate_dial_fn(void); |
| 1153 | |
| 1154 | /*! |
| 1155 | * \brief Validator for EndpointStateChange. |
| 1156 | * |
| 1157 | * Endpoint state changed. |
| 1158 | * |
| 1159 | * \param json JSON object to validate. |
| 1160 | * \retval True (non-zero) if valid. |
| 1161 | * \retval False (zero) if invalid. |
| 1162 | */ |
| 1163 | int ast_ari_validate_endpoint_state_change(struct ast_json *json); |
| 1164 | |
| 1165 | /*! |
| 1166 | * \brief Function pointer to ast_ari_validate_endpoint_state_change(). |
| 1167 | */ |
| 1168 | ari_validator ast_ari_validate_endpoint_state_change_fn(void); |
| 1169 | |
| 1170 | /*! |
| 1171 | * \brief Validator for Event. |
| 1172 | * |
| 1173 | * Base type for asynchronous events from Asterisk. |
| 1174 | * |
| 1175 | * \param json JSON object to validate. |
| 1176 | * \retval True (non-zero) if valid. |
| 1177 | * \retval False (zero) if invalid. |
| 1178 | */ |
| 1179 | int ast_ari_validate_event(struct ast_json *json); |
| 1180 | |
| 1181 | /*! |
| 1182 | * \brief Function pointer to ast_ari_validate_event(). |
| 1183 | */ |
| 1184 | ari_validator ast_ari_validate_event_fn(void); |
| 1185 | |
| 1186 | /*! |
| 1187 | * \brief Validator for Message. |
| 1188 | * |
| 1189 | * Base type for errors and events |
| 1190 | * |
| 1191 | * \param json JSON object to validate. |
| 1192 | * \retval True (non-zero) if valid. |
| 1193 | * \retval False (zero) if invalid. |
| 1194 | */ |
| 1195 | int ast_ari_validate_message(struct ast_json *json); |
| 1196 | |
| 1197 | /*! |
| 1198 | * \brief Function pointer to ast_ari_validate_message(). |
| 1199 | */ |
| 1200 | ari_validator ast_ari_validate_message_fn(void); |
| 1201 | |
| 1202 | /*! |
| 1203 | * \brief Validator for MissingParams. |
| 1204 | * |
| 1205 | * Error event sent when required params are missing. |
| 1206 | * |
| 1207 | * \param json JSON object to validate. |
| 1208 | * \retval True (non-zero) if valid. |
| 1209 | * \retval False (zero) if invalid. |
| 1210 | */ |
| 1211 | int ast_ari_validate_missing_params(struct ast_json *json); |
| 1212 | |
| 1213 | /*! |
| 1214 | * \brief Function pointer to ast_ari_validate_missing_params(). |
| 1215 | */ |
| 1216 | ari_validator ast_ari_validate_missing_params_fn(void); |
| 1217 | |
| 1218 | /*! |
| 1219 | * \brief Validator for Peer. |
| 1220 | * |
| 1221 | * Detailed information about a remote peer that communicates with Asterisk. |
| 1222 | * |
| 1223 | * \param json JSON object to validate. |
| 1224 | * \retval True (non-zero) if valid. |
| 1225 | * \retval False (zero) if invalid. |
| 1226 | */ |
| 1227 | int ast_ari_validate_peer(struct ast_json *json); |
| 1228 | |
| 1229 | /*! |
| 1230 | * \brief Function pointer to ast_ari_validate_peer(). |
| 1231 | */ |
| 1232 | ari_validator ast_ari_validate_peer_fn(void); |
| 1233 | |
| 1234 | /*! |
| 1235 | * \brief Validator for PeerStatusChange. |
| 1236 | * |
| 1237 | * The state of a peer associated with an endpoint has changed. |
| 1238 | * |
| 1239 | * \param json JSON object to validate. |
| 1240 | * \retval True (non-zero) if valid. |
| 1241 | * \retval False (zero) if invalid. |
| 1242 | */ |
| 1243 | int ast_ari_validate_peer_status_change(struct ast_json *json); |
| 1244 | |
| 1245 | /*! |
| 1246 | * \brief Function pointer to ast_ari_validate_peer_status_change(). |
| 1247 | */ |
| 1248 | ari_validator ast_ari_validate_peer_status_change_fn(void); |
| 1249 | |
| 1250 | /*! |
| 1251 | * \brief Validator for PlaybackContinuing. |
| 1252 | * |
| 1253 | * Event showing the continuation of a media playback operation from one media URI to the next in the list. |
| 1254 | * |
| 1255 | * \param json JSON object to validate. |
| 1256 | * \retval True (non-zero) if valid. |
| 1257 | * \retval False (zero) if invalid. |
| 1258 | */ |
| 1259 | int ast_ari_validate_playback_continuing(struct ast_json *json); |
| 1260 | |
| 1261 | /*! |
| 1262 | * \brief Function pointer to ast_ari_validate_playback_continuing(). |
| 1263 | */ |
| 1264 | ari_validator ast_ari_validate_playback_continuing_fn(void); |
| 1265 | |
| 1266 | /*! |
| 1267 | * \brief Validator for PlaybackFinished. |
| 1268 | * |
| 1269 | * Event showing the completion of a media playback operation. |
| 1270 | * |
| 1271 | * \param json JSON object to validate. |
| 1272 | * \retval True (non-zero) if valid. |
| 1273 | * \retval False (zero) if invalid. |
| 1274 | */ |
| 1275 | int ast_ari_validate_playback_finished(struct ast_json *json); |
| 1276 | |
| 1277 | /*! |
| 1278 | * \brief Function pointer to ast_ari_validate_playback_finished(). |
| 1279 | */ |
| 1280 | ari_validator ast_ari_validate_playback_finished_fn(void); |
| 1281 | |
| 1282 | /*! |
| 1283 | * \brief Validator for PlaybackStarted. |
| 1284 | * |
| 1285 | * Event showing the start of a media playback operation. |
| 1286 | * |
| 1287 | * \param json JSON object to validate. |
| 1288 | * \retval True (non-zero) if valid. |
| 1289 | * \retval False (zero) if invalid. |
| 1290 | */ |
| 1291 | int ast_ari_validate_playback_started(struct ast_json *json); |
| 1292 | |
| 1293 | /*! |
| 1294 | * \brief Function pointer to ast_ari_validate_playback_started(). |
| 1295 | */ |
| 1296 | ari_validator ast_ari_validate_playback_started_fn(void); |
| 1297 | |
| 1298 | /*! |
| 1299 | * \brief Validator for RESTHeader. |
| 1300 | * |
| 1301 | * REST over Websocket header |
| 1302 | * |
| 1303 | * \param json JSON object to validate. |
| 1304 | * \retval True (non-zero) if valid. |
| 1305 | * \retval False (zero) if invalid. |
| 1306 | */ |
| 1307 | int ast_ari_validate_restheader(struct ast_json *json); |
| 1308 | |
| 1309 | /*! |
| 1310 | * \brief Function pointer to ast_ari_validate_restheader(). |
| 1311 | */ |
| 1312 | ari_validator ast_ari_validate_restheader_fn(void); |
| 1313 | |
| 1314 | /*! |
| 1315 | * \brief Validator for RESTQueryStringParameter. |
| 1316 | * |
| 1317 | * REST over Websocket Query String Parameter |
| 1318 | * |
| 1319 | * \param json JSON object to validate. |
| 1320 | * \retval True (non-zero) if valid. |
| 1321 | * \retval False (zero) if invalid. |
| 1322 | */ |
| 1323 | int ast_ari_validate_restquery_string_parameter(struct ast_json *json); |
| 1324 | |
| 1325 | /*! |
| 1326 | * \brief Function pointer to ast_ari_validate_restquery_string_parameter(). |
| 1327 | */ |
| 1328 | ari_validator ast_ari_validate_restquery_string_parameter_fn(void); |
| 1329 | |
| 1330 | /*! |
| 1331 | * \brief Validator for RESTRequest. |
| 1332 | * |
| 1333 | * REST over Websocket Request. |
| 1334 | * |
| 1335 | * \param json JSON object to validate. |
| 1336 | * \retval True (non-zero) if valid. |
| 1337 | * \retval False (zero) if invalid. |
| 1338 | */ |
| 1339 | int ast_ari_validate_restrequest(struct ast_json *json); |
| 1340 | |
| 1341 | /*! |
| 1342 | * \brief Function pointer to ast_ari_validate_restrequest(). |
| 1343 | */ |
| 1344 | ari_validator ast_ari_validate_restrequest_fn(void); |
| 1345 | |
| 1346 | /*! |
| 1347 | * \brief Validator for RESTResponse. |
| 1348 | * |
| 1349 | * REST over Websocket Response. |
| 1350 | * |
| 1351 | * \param json JSON object to validate. |
| 1352 | * \retval True (non-zero) if valid. |
| 1353 | * \retval False (zero) if invalid. |
| 1354 | */ |
| 1355 | int ast_ari_validate_restresponse(struct ast_json *json); |
| 1356 | |
| 1357 | /*! |
| 1358 | * \brief Function pointer to ast_ari_validate_restresponse(). |
| 1359 | */ |
| 1360 | ari_validator ast_ari_validate_restresponse_fn(void); |
| 1361 | |
| 1362 | /*! |
| 1363 | * \brief Validator for RecordingFailed. |
| 1364 | * |
| 1365 | * Event showing failure of a recording operation. |
| 1366 | * |
| 1367 | * \param json JSON object to validate. |
| 1368 | * \retval True (non-zero) if valid. |
| 1369 | * \retval False (zero) if invalid. |
| 1370 | */ |
| 1371 | int ast_ari_validate_recording_failed(struct ast_json *json); |
| 1372 | |
| 1373 | /*! |
| 1374 | * \brief Function pointer to ast_ari_validate_recording_failed(). |
| 1375 | */ |
| 1376 | ari_validator ast_ari_validate_recording_failed_fn(void); |
| 1377 | |
| 1378 | /*! |
| 1379 | * \brief Validator for RecordingFinished. |
| 1380 | * |
| 1381 | * Event showing the completion of a recording operation. |
| 1382 | * |
| 1383 | * \param json JSON object to validate. |
| 1384 | * \retval True (non-zero) if valid. |
| 1385 | * \retval False (zero) if invalid. |
| 1386 | */ |
| 1387 | int ast_ari_validate_recording_finished(struct ast_json *json); |
| 1388 | |
| 1389 | /*! |
| 1390 | * \brief Function pointer to ast_ari_validate_recording_finished(). |
| 1391 | */ |
| 1392 | ari_validator ast_ari_validate_recording_finished_fn(void); |
| 1393 | |
| 1394 | /*! |
| 1395 | * \brief Validator for RecordingStarted. |
| 1396 | * |
| 1397 | * Event showing the start of a recording operation. |
| 1398 | * |
| 1399 | * \param json JSON object to validate. |
| 1400 | * \retval True (non-zero) if valid. |
| 1401 | * \retval False (zero) if invalid. |
| 1402 | */ |
| 1403 | int ast_ari_validate_recording_started(struct ast_json *json); |
| 1404 | |
| 1405 | /*! |
| 1406 | * \brief Function pointer to ast_ari_validate_recording_started(). |
| 1407 | */ |
| 1408 | ari_validator ast_ari_validate_recording_started_fn(void); |
| 1409 | |
| 1410 | /*! |
| 1411 | * \brief Validator for ReferTo. |
| 1412 | * |
| 1413 | * transfer destination requested by transferee |
| 1414 | * |
| 1415 | * \param json JSON object to validate. |
| 1416 | * \retval True (non-zero) if valid. |
| 1417 | * \retval False (zero) if invalid. |
| 1418 | */ |
| 1419 | int ast_ari_validate_refer_to(struct ast_json *json); |
| 1420 | |
| 1421 | /*! |
| 1422 | * \brief Function pointer to ast_ari_validate_refer_to(). |
| 1423 | */ |
| 1424 | ari_validator ast_ari_validate_refer_to_fn(void); |
| 1425 | |
| 1426 | /*! |
| 1427 | * \brief Validator for ReferredBy. |
| 1428 | * |
| 1429 | * transfer destination requested by transferee |
| 1430 | * |
| 1431 | * \param json JSON object to validate. |
| 1432 | * \retval True (non-zero) if valid. |
| 1433 | * \retval False (zero) if invalid. |
| 1434 | */ |
| 1435 | int ast_ari_validate_referred_by(struct ast_json *json); |
| 1436 | |
| 1437 | /*! |
| 1438 | * \brief Function pointer to ast_ari_validate_referred_by(). |
| 1439 | */ |
| 1440 | ari_validator ast_ari_validate_referred_by_fn(void); |
| 1441 | |
| 1442 | /*! |
| 1443 | * \brief Validator for RequiredDestination. |
| 1444 | * |
| 1445 | * Information about the requested destination |
| 1446 | * |
| 1447 | * \param json JSON object to validate. |
| 1448 | * \retval True (non-zero) if valid. |
| 1449 | * \retval False (zero) if invalid. |
| 1450 | */ |
| 1451 | int ast_ari_validate_required_destination(struct ast_json *json); |
| 1452 | |
| 1453 | /*! |
| 1454 | * \brief Function pointer to ast_ari_validate_required_destination(). |
| 1455 | */ |
| 1456 | ari_validator ast_ari_validate_required_destination_fn(void); |
| 1457 | |
| 1458 | /*! |
| 1459 | * \brief Validator for StasisEnd. |
| 1460 | * |
| 1461 | * Notification that a channel has left a Stasis application. |
| 1462 | * |
| 1463 | * \param json JSON object to validate. |
| 1464 | * \retval True (non-zero) if valid. |
| 1465 | * \retval False (zero) if invalid. |
| 1466 | */ |
| 1467 | int ast_ari_validate_stasis_end(struct ast_json *json); |
| 1468 | |
| 1469 | /*! |
| 1470 | * \brief Function pointer to ast_ari_validate_stasis_end(). |
| 1471 | */ |
| 1472 | ari_validator ast_ari_validate_stasis_end_fn(void); |
| 1473 | |
| 1474 | /*! |
| 1475 | * \brief Validator for StasisStart. |
| 1476 | * |
| 1477 | * Notification that a channel has entered a Stasis application. |
| 1478 | * |
| 1479 | * \param json JSON object to validate. |
| 1480 | * \retval True (non-zero) if valid. |
| 1481 | * \retval False (zero) if invalid. |
| 1482 | */ |
| 1483 | int ast_ari_validate_stasis_start(struct ast_json *json); |
| 1484 | |
| 1485 | /*! |
| 1486 | * \brief Function pointer to ast_ari_validate_stasis_start(). |
| 1487 | */ |
| 1488 | ari_validator ast_ari_validate_stasis_start_fn(void); |
| 1489 | |
| 1490 | /*! |
| 1491 | * \brief Validator for TextMessageReceived. |
| 1492 | * |
| 1493 | * A text message was received from an endpoint. |
| 1494 | * |
| 1495 | * \param json JSON object to validate. |
| 1496 | * \retval True (non-zero) if valid. |
| 1497 | * \retval False (zero) if invalid. |
| 1498 | */ |
| 1499 | int ast_ari_validate_text_message_received(struct ast_json *json); |
| 1500 | |
| 1501 | /*! |
| 1502 | * \brief Function pointer to ast_ari_validate_text_message_received(). |
| 1503 | */ |
| 1504 | ari_validator ast_ari_validate_text_message_received_fn(void); |
| 1505 | |
| 1506 | /*! |
| 1507 | * \brief Validator for Application. |
| 1508 | * |
| 1509 | * Details of a Stasis application |
| 1510 | * |
| 1511 | * \param json JSON object to validate. |
| 1512 | * \retval True (non-zero) if valid. |
| 1513 | * \retval False (zero) if invalid. |
| 1514 | */ |
| 1515 | int ast_ari_validate_application(struct ast_json *json); |
| 1516 | |
| 1517 | /*! |
| 1518 | * \brief Function pointer to ast_ari_validate_application(). |
| 1519 | */ |
| 1520 | ari_validator ast_ari_validate_application_fn(void); |
| 1521 | |
| 1522 | /* |
| 1523 | * JSON models |
| 1524 | * |
| 1525 | * AsteriskInfo |
| 1526 | * - build: BuildInfo |
| 1527 | * - config: ConfigInfo |
| 1528 | * - status: StatusInfo |
| 1529 | * - system: SystemInfo |
| 1530 | * AsteriskPing |
| 1531 | * - asterisk_id: string (required) |
| 1532 | * - ping: string (required) |
| 1533 | * - timestamp: string (required) |
| 1534 | * BuildInfo |
| 1535 | * - date: string (required) |
| 1536 | * - kernel: string (required) |
| 1537 | * - machine: string (required) |
| 1538 | * - options: string (required) |
| 1539 | * - os: string (required) |
| 1540 | * - user: string (required) |
| 1541 | * ConfigInfo |
| 1542 | * - default_language: string (required) |
| 1543 | * - max_channels: int |
| 1544 | * - max_load: double |
| 1545 | * - max_open_files: int |
| 1546 | * - name: string (required) |
| 1547 | * - setid: SetId (required) |
| 1548 | * ConfigTuple |
| 1549 | * - attribute: string (required) |
| 1550 | * - value: string (required) |
| 1551 | * LogChannel |
| 1552 | * - channel: string (required) |
| 1553 | * - configuration: string (required) |
| 1554 | * - status: string (required) |
| 1555 | * - type: string (required) |
| 1556 | * Module |
| 1557 | * - description: string (required) |
| 1558 | * - name: string (required) |
| 1559 | * - status: string (required) |
| 1560 | * - support_level: string (required) |
| 1561 | * - use_count: int (required) |
| 1562 | * SetId |
| 1563 | * - group: string (required) |
| 1564 | * - user: string (required) |
| 1565 | * StatusInfo |
| 1566 | * - last_reload_time: Date (required) |
| 1567 | * - startup_time: Date (required) |
| 1568 | * SystemInfo |
| 1569 | * - entity_id: string (required) |
| 1570 | * - version: string (required) |
| 1571 | * Variable |
| 1572 | * - value: string (required) |
| 1573 | * Variables |
| 1574 | * - variables: object (required) |
| 1575 | * Endpoint |
| 1576 | * - channel_ids: List[string] (required) |
| 1577 | * - resource: string (required) |
| 1578 | * - state: string |
| 1579 | * - technology: string (required) |
| 1580 | * TextMessage |
| 1581 | * - body: string (required) |
| 1582 | * - from: string (required) |
| 1583 | * - to: string (required) |
| 1584 | * - variables: object |
| 1585 | * CallerID |
| 1586 | * - name: string (required) |
| 1587 | * - number: string (required) |
| 1588 | * Channel |
| 1589 | * - accountcode: string (required) |
| 1590 | * - caller: CallerID (required) |
| 1591 | * - caller_rdnis: string |
| 1592 | * - channelvars: object |
| 1593 | * - connected: CallerID (required) |
| 1594 | * - creationtime: Date (required) |
| 1595 | * - dialplan: DialplanCEP (required) |
| 1596 | * - id: string (required) |
| 1597 | * - language: string (required) |
| 1598 | * - name: string (required) |
| 1599 | * - protocol_id: string (required) |
| 1600 | * - state: string (required) |
| 1601 | * - tenantid: string |
| 1602 | * Dialed |
| 1603 | * DialplanCEP |
| 1604 | * - app_data: string (required) |
| 1605 | * - app_name: string (required) |
| 1606 | * - context: string (required) |
| 1607 | * - exten: string (required) |
| 1608 | * - priority: long (required) |
| 1609 | * RTPstat |
| 1610 | * - channel_uniqueid: string (required) |
| 1611 | * - local_maxjitter: double |
| 1612 | * - local_maxrxploss: double |
| 1613 | * - local_minjitter: double |
| 1614 | * - local_minrxploss: double |
| 1615 | * - local_normdevjitter: double |
| 1616 | * - local_normdevrxploss: double |
| 1617 | * - local_ssrc: int (required) |
| 1618 | * - local_stdevjitter: double |
| 1619 | * - local_stdevrxploss: double |
| 1620 | * - maxrtt: double |
| 1621 | * - minrtt: double |
| 1622 | * - normdevrtt: double |
| 1623 | * - remote_maxjitter: double |
| 1624 | * - remote_maxrxploss: double |
| 1625 | * - remote_minjitter: double |
| 1626 | * - remote_minrxploss: double |
| 1627 | * - remote_normdevjitter: double |
| 1628 | * - remote_normdevrxploss: double |
| 1629 | * - remote_ssrc: int (required) |
| 1630 | * - remote_stdevjitter: double |
| 1631 | * - remote_stdevrxploss: double |
| 1632 | * - rtt: double |
| 1633 | * - rxcount: int (required) |
| 1634 | * - rxjitter: double |
| 1635 | * - rxoctetcount: int (required) |
| 1636 | * - rxploss: int (required) |
| 1637 | * - stdevrtt: double |
| 1638 | * - txcount: int (required) |
| 1639 | * - txjitter: double |
| 1640 | * - txoctetcount: int (required) |
| 1641 | * - txploss: int (required) |
| 1642 | * Bridge |
| 1643 | * - bridge_class: string (required) |
| 1644 | * - bridge_type: string (required) |
| 1645 | * - bridgevars: object |
| 1646 | * - channels: List[string] (required) |
| 1647 | * - creationtime: Date (required) |
| 1648 | * - creator: string (required) |
| 1649 | * - id: string (required) |
| 1650 | * - name: string (required) |
| 1651 | * - technology: string (required) |
| 1652 | * - video_mode: string |
| 1653 | * - video_source_id: string |
| 1654 | * LiveRecording |
| 1655 | * - cause: string |
| 1656 | * - duration: int |
| 1657 | * - format: string (required) |
| 1658 | * - name: string (required) |
| 1659 | * - silence_duration: int |
| 1660 | * - state: string (required) |
| 1661 | * - talking_duration: int |
| 1662 | * - target_uri: string (required) |
| 1663 | * StoredRecording |
| 1664 | * - format: string (required) |
| 1665 | * - name: string (required) |
| 1666 | * FormatLangPair |
| 1667 | * - format: string (required) |
| 1668 | * - language: string (required) |
| 1669 | * Sound |
| 1670 | * - formats: List[FormatLangPair] (required) |
| 1671 | * - id: string (required) |
| 1672 | * - text: string |
| 1673 | * Playback |
| 1674 | * - id: string (required) |
| 1675 | * - language: string |
| 1676 | * - media_uri: string (required) |
| 1677 | * - next_media_uri: string |
| 1678 | * - state: string (required) |
| 1679 | * - target_uri: string (required) |
| 1680 | * DeviceState |
| 1681 | * - name: string (required) |
| 1682 | * - state: string (required) |
| 1683 | * Mailbox |
| 1684 | * - name: string (required) |
| 1685 | * - new_messages: int (required) |
| 1686 | * - old_messages: int (required) |
| 1687 | * AdditionalParam |
| 1688 | * - parameter_name: string (required) |
| 1689 | * - parameter_value: string (required) |
| 1690 | * ApplicationMoveFailed |
| 1691 | * - asterisk_id: string |
| 1692 | * - type: string (required) |
| 1693 | * - application: string (required) |
| 1694 | * - timestamp: Date (required) |
| 1695 | * - args: List[string] (required) |
| 1696 | * - channel: Channel (required) |
| 1697 | * - destination: string (required) |
| 1698 | * ApplicationRegistered |
| 1699 | * - asterisk_id: string |
| 1700 | * - type: string (required) |
| 1701 | * - application: string (required) |
| 1702 | * - timestamp: Date (required) |
| 1703 | * ApplicationReplaced |
| 1704 | * - asterisk_id: string |
| 1705 | * - type: string (required) |
| 1706 | * - application: string (required) |
| 1707 | * - timestamp: Date (required) |
| 1708 | * ApplicationUnregistered |
| 1709 | * - asterisk_id: string |
| 1710 | * - type: string (required) |
| 1711 | * - application: string (required) |
| 1712 | * - timestamp: Date (required) |
| 1713 | * BridgeAttendedTransfer |
| 1714 | * - asterisk_id: string |
| 1715 | * - type: string (required) |
| 1716 | * - application: string (required) |
| 1717 | * - timestamp: Date (required) |
| 1718 | * - destination_application: string |
| 1719 | * - destination_bridge: string |
| 1720 | * - destination_link_first_leg: Channel |
| 1721 | * - destination_link_second_leg: Channel |
| 1722 | * - destination_threeway_bridge: Bridge |
| 1723 | * - destination_threeway_channel: Channel |
| 1724 | * - destination_type: string (required) |
| 1725 | * - is_external: boolean (required) |
| 1726 | * - replace_channel: Channel |
| 1727 | * - result: string (required) |
| 1728 | * - transfer_target: Channel |
| 1729 | * - transferee: Channel |
| 1730 | * - transferer_first_leg: Channel (required) |
| 1731 | * - transferer_first_leg_bridge: Bridge |
| 1732 | * - transferer_second_leg: Channel (required) |
| 1733 | * - transferer_second_leg_bridge: Bridge |
| 1734 | * BridgeBlindTransfer |
| 1735 | * - asterisk_id: string |
| 1736 | * - type: string (required) |
| 1737 | * - application: string (required) |
| 1738 | * - timestamp: Date (required) |
| 1739 | * - bridge: Bridge |
| 1740 | * - channel: Channel (required) |
| 1741 | * - context: string (required) |
| 1742 | * - exten: string (required) |
| 1743 | * - is_external: boolean (required) |
| 1744 | * - replace_channel: Channel |
| 1745 | * - result: string (required) |
| 1746 | * - transferee: Channel |
| 1747 | * BridgeCreated |
| 1748 | * - asterisk_id: string |
| 1749 | * - type: string (required) |
| 1750 | * - application: string (required) |
| 1751 | * - timestamp: Date (required) |
| 1752 | * - bridge: Bridge (required) |
| 1753 | * BridgeDestroyed |
| 1754 | * - asterisk_id: string |
| 1755 | * - type: string (required) |
| 1756 | * - application: string (required) |
| 1757 | * - timestamp: Date (required) |
| 1758 | * - bridge: Bridge (required) |
| 1759 | * BridgeMerged |
| 1760 | * - asterisk_id: string |
| 1761 | * - type: string (required) |
| 1762 | * - application: string (required) |
| 1763 | * - timestamp: Date (required) |
| 1764 | * - bridge: Bridge (required) |
| 1765 | * - bridge_from: Bridge (required) |
| 1766 | * BridgeVideoSourceChanged |
| 1767 | * - asterisk_id: string |
| 1768 | * - type: string (required) |
| 1769 | * - application: string (required) |
| 1770 | * - timestamp: Date (required) |
| 1771 | * - bridge: Bridge (required) |
| 1772 | * - old_video_source_id: string |
| 1773 | * CallBroadcast |
| 1774 | * - asterisk_id: string |
| 1775 | * - type: string (required) |
| 1776 | * - application: string (required) |
| 1777 | * - timestamp: Date (required) |
| 1778 | * - called: string |
| 1779 | * - caller: string |
| 1780 | * - channel: Channel (required) |
| 1781 | * CallClaimed |
| 1782 | * - asterisk_id: string |
| 1783 | * - type: string (required) |
| 1784 | * - application: string (required) |
| 1785 | * - timestamp: Date (required) |
| 1786 | * - channel: Channel (required) |
| 1787 | * - winner_app: string (required) |
| 1788 | * ChannelCallerId |
| 1789 | * - asterisk_id: string |
| 1790 | * - type: string (required) |
| 1791 | * - application: string (required) |
| 1792 | * - timestamp: Date (required) |
| 1793 | * - caller_presentation: int (required) |
| 1794 | * - caller_presentation_txt: string (required) |
| 1795 | * - channel: Channel (required) |
| 1796 | * ChannelConnectedLine |
| 1797 | * - asterisk_id: string |
| 1798 | * - type: string (required) |
| 1799 | * - application: string (required) |
| 1800 | * - timestamp: Date (required) |
| 1801 | * - channel: Channel (required) |
| 1802 | * ChannelCreated |
| 1803 | * - asterisk_id: string |
| 1804 | * - type: string (required) |
| 1805 | * - application: string (required) |
| 1806 | * - timestamp: Date (required) |
| 1807 | * - channel: Channel (required) |
| 1808 | * ChannelDestroyed |
| 1809 | * - asterisk_id: string |
| 1810 | * - type: string (required) |
| 1811 | * - application: string (required) |
| 1812 | * - timestamp: Date (required) |
| 1813 | * - cause: int (required) |
| 1814 | * - cause_txt: string (required) |
| 1815 | * - channel: Channel (required) |
| 1816 | * - tech_cause: int |
| 1817 | * ChannelDialplan |
| 1818 | * - asterisk_id: string |
| 1819 | * - type: string (required) |
| 1820 | * - application: string (required) |
| 1821 | * - timestamp: Date (required) |
| 1822 | * - channel: Channel (required) |
| 1823 | * - dialplan_app: string (required) |
| 1824 | * - dialplan_app_data: string (required) |
| 1825 | * ChannelDtmfReceived |
| 1826 | * - asterisk_id: string |
| 1827 | * - type: string (required) |
| 1828 | * - application: string (required) |
| 1829 | * - timestamp: Date (required) |
| 1830 | * - channel: Channel (required) |
| 1831 | * - digit: string (required) |
| 1832 | * - duration_ms: int (required) |
| 1833 | * ChannelEnteredBridge |
| 1834 | * - asterisk_id: string |
| 1835 | * - type: string (required) |
| 1836 | * - application: string (required) |
| 1837 | * - timestamp: Date (required) |
| 1838 | * - bridge: Bridge (required) |
| 1839 | * - channel: Channel |
| 1840 | * ChannelHangupRequest |
| 1841 | * - asterisk_id: string |
| 1842 | * - type: string (required) |
| 1843 | * - application: string (required) |
| 1844 | * - timestamp: Date (required) |
| 1845 | * - cause: int |
| 1846 | * - channel: Channel (required) |
| 1847 | * - soft: boolean |
| 1848 | * - tech_cause: int |
| 1849 | * ChannelHold |
| 1850 | * - asterisk_id: string |
| 1851 | * - type: string (required) |
| 1852 | * - application: string (required) |
| 1853 | * - timestamp: Date (required) |
| 1854 | * - channel: Channel (required) |
| 1855 | * - musicclass: string |
| 1856 | * ChannelLeftBridge |
| 1857 | * - asterisk_id: string |
| 1858 | * - type: string (required) |
| 1859 | * - application: string (required) |
| 1860 | * - timestamp: Date (required) |
| 1861 | * - bridge: Bridge (required) |
| 1862 | * - channel: Channel (required) |
| 1863 | * ChannelStateChange |
| 1864 | * - asterisk_id: string |
| 1865 | * - type: string (required) |
| 1866 | * - application: string (required) |
| 1867 | * - timestamp: Date (required) |
| 1868 | * - channel: Channel (required) |
| 1869 | * ChannelTalkingFinished |
| 1870 | * - asterisk_id: string |
| 1871 | * - type: string (required) |
| 1872 | * - application: string (required) |
| 1873 | * - timestamp: Date (required) |
| 1874 | * - channel: Channel (required) |
| 1875 | * - duration: int (required) |
| 1876 | * ChannelTalkingStarted |
| 1877 | * - asterisk_id: string |
| 1878 | * - type: string (required) |
| 1879 | * - application: string (required) |
| 1880 | * - timestamp: Date (required) |
| 1881 | * - channel: Channel (required) |
| 1882 | * ChannelToneDetected |
| 1883 | * - asterisk_id: string |
| 1884 | * - type: string (required) |
| 1885 | * - application: string (required) |
| 1886 | * - timestamp: Date (required) |
| 1887 | * - channel: Channel (required) |
| 1888 | * ChannelTransfer |
| 1889 | * - asterisk_id: string |
| 1890 | * - type: string (required) |
| 1891 | * - application: string (required) |
| 1892 | * - timestamp: Date (required) |
| 1893 | * - refer_to: ReferTo (required) |
| 1894 | * - referred_by: ReferredBy (required) |
| 1895 | * - state: string |
| 1896 | * ChannelUnhold |
| 1897 | * - asterisk_id: string |
| 1898 | * - type: string (required) |
| 1899 | * - application: string (required) |
| 1900 | * - timestamp: Date (required) |
| 1901 | * - channel: Channel (required) |
| 1902 | * ChannelUserevent |
| 1903 | * - asterisk_id: string |
| 1904 | * - type: string (required) |
| 1905 | * - application: string (required) |
| 1906 | * - timestamp: Date (required) |
| 1907 | * - bridge: Bridge |
| 1908 | * - channel: Channel |
| 1909 | * - endpoint: Endpoint |
| 1910 | * - eventname: string (required) |
| 1911 | * - userevent: object (required) |
| 1912 | * ChannelVarset |
| 1913 | * - asterisk_id: string |
| 1914 | * - type: string (required) |
| 1915 | * - application: string (required) |
| 1916 | * - timestamp: Date (required) |
| 1917 | * - channel: Channel |
| 1918 | * - value: string (required) |
| 1919 | * - variable: string (required) |
| 1920 | * ContactInfo |
| 1921 | * - aor: string (required) |
| 1922 | * - contact_status: string (required) |
| 1923 | * - roundtrip_usec: string |
| 1924 | * - uri: string (required) |
| 1925 | * ContactStatusChange |
| 1926 | * - asterisk_id: string |
| 1927 | * - type: string (required) |
| 1928 | * - application: string (required) |
| 1929 | * - timestamp: Date (required) |
| 1930 | * - contact_info: ContactInfo (required) |
| 1931 | * - endpoint: Endpoint (required) |
| 1932 | * DeviceStateChanged |
| 1933 | * - asterisk_id: string |
| 1934 | * - type: string (required) |
| 1935 | * - application: string (required) |
| 1936 | * - timestamp: Date (required) |
| 1937 | * - device_state: DeviceState (required) |
| 1938 | * Dial |
| 1939 | * - asterisk_id: string |
| 1940 | * - type: string (required) |
| 1941 | * - application: string (required) |
| 1942 | * - timestamp: Date (required) |
| 1943 | * - caller: Channel |
| 1944 | * - dialstatus: string (required) |
| 1945 | * - dialstring: string |
| 1946 | * - forward: string |
| 1947 | * - forwarded: Channel |
| 1948 | * - peer: Channel (required) |
| 1949 | * EndpointStateChange |
| 1950 | * - asterisk_id: string |
| 1951 | * - type: string (required) |
| 1952 | * - application: string (required) |
| 1953 | * - timestamp: Date (required) |
| 1954 | * - endpoint: Endpoint (required) |
| 1955 | * Event |
| 1956 | * - asterisk_id: string |
| 1957 | * - type: string (required) |
| 1958 | * - application: string (required) |
| 1959 | * - timestamp: Date (required) |
| 1960 | * Message |
| 1961 | * - asterisk_id: string |
| 1962 | * - type: string (required) |
| 1963 | * MissingParams |
| 1964 | * - asterisk_id: string |
| 1965 | * - type: string (required) |
| 1966 | * - params: List[string] (required) |
| 1967 | * Peer |
| 1968 | * - address: string |
| 1969 | * - cause: string |
| 1970 | * - peer_status: string (required) |
| 1971 | * - port: string |
| 1972 | * - time: string |
| 1973 | * PeerStatusChange |
| 1974 | * - asterisk_id: string |
| 1975 | * - type: string (required) |
| 1976 | * - application: string (required) |
| 1977 | * - timestamp: Date (required) |
| 1978 | * - endpoint: Endpoint (required) |
| 1979 | * - peer: Peer (required) |
| 1980 | * PlaybackContinuing |
| 1981 | * - asterisk_id: string |
| 1982 | * - type: string (required) |
| 1983 | * - application: string (required) |
| 1984 | * - timestamp: Date (required) |
| 1985 | * - playback: Playback (required) |
| 1986 | * PlaybackFinished |
| 1987 | * - asterisk_id: string |
| 1988 | * - type: string (required) |
| 1989 | * - application: string (required) |
| 1990 | * - timestamp: Date (required) |
| 1991 | * - playback: Playback (required) |
| 1992 | * PlaybackStarted |
| 1993 | * - asterisk_id: string |
| 1994 | * - type: string (required) |
| 1995 | * - application: string (required) |
| 1996 | * - timestamp: Date (required) |
| 1997 | * - playback: Playback (required) |
| 1998 | * RESTHeader |
| 1999 | * - name: string (required) |
| 2000 | * - value: string (required) |
| 2001 | * RESTQueryStringParameter |
| 2002 | * - name: string (required) |
| 2003 | * - value: string (required) |
| 2004 | * RESTRequest |
| 2005 | * - content_type: string |
| 2006 | * - message_body: string |
| 2007 | * - method: string (required) |
| 2008 | * - query_strings: List[RESTQueryStringParameter] |
| 2009 | * - request_id: string (required) |
| 2010 | * - transaction_id: string (required) |
| 2011 | * - type: string (required) |
| 2012 | * - uri: string (required) |
| 2013 | * RESTResponse |
| 2014 | * - asterisk_id: string |
| 2015 | * - type: string (required) |
| 2016 | * - application: string (required) |
| 2017 | * - timestamp: Date (required) |
| 2018 | * - content_type: string |
| 2019 | * - message_body: string |
| 2020 | * - reason_phrase: string (required) |
| 2021 | * - request_id: string (required) |
| 2022 | * - status_code: int (required) |
| 2023 | * - transaction_id: string (required) |
| 2024 | * - uri: string (required) |
| 2025 | * RecordingFailed |
| 2026 | * - asterisk_id: string |
| 2027 | * - type: string (required) |
| 2028 | * - application: string (required) |
| 2029 | * - timestamp: Date (required) |
| 2030 | * - recording: LiveRecording (required) |
| 2031 | * RecordingFinished |
| 2032 | * - asterisk_id: string |
| 2033 | * - type: string (required) |
| 2034 | * - application: string (required) |
| 2035 | * - timestamp: Date (required) |
| 2036 | * - recording: LiveRecording (required) |
| 2037 | * RecordingStarted |
| 2038 | * - asterisk_id: string |
| 2039 | * - type: string (required) |
| 2040 | * - application: string (required) |
| 2041 | * - timestamp: Date (required) |
| 2042 | * - recording: LiveRecording (required) |
| 2043 | * ReferTo |
| 2044 | * - bridge: Bridge |
| 2045 | * - connected_channel: Channel |
| 2046 | * - destination_channel: Channel |
| 2047 | * - requested_destination: RequiredDestination (required) |
| 2048 | * ReferredBy |
| 2049 | * - bridge: Bridge |
| 2050 | * - connected_channel: Channel |
| 2051 | * - source_channel: Channel (required) |
| 2052 | * RequiredDestination |
| 2053 | * - additional_protocol_params: List[AdditionalParam] |
| 2054 | * - destination: string |
| 2055 | * - protocol_id: string |
| 2056 | * StasisEnd |
| 2057 | * - asterisk_id: string |
| 2058 | * - type: string (required) |
| 2059 | * - application: string (required) |
| 2060 | * - timestamp: Date (required) |
| 2061 | * - channel: Channel (required) |
| 2062 | * StasisStart |
| 2063 | * - asterisk_id: string |
| 2064 | * - type: string (required) |
| 2065 | * - application: string (required) |
| 2066 | * - timestamp: Date (required) |
| 2067 | * - args: List[string] (required) |
| 2068 | * - channel: Channel (required) |
| 2069 | * - replace_channel: Channel |
| 2070 | * TextMessageReceived |
| 2071 | * - asterisk_id: string |
| 2072 | * - type: string (required) |
| 2073 | * - application: string (required) |
| 2074 | * - timestamp: Date (required) |
| 2075 | * - endpoint: Endpoint |
| 2076 | * - message: TextMessage (required) |
| 2077 | * Application |
| 2078 | * - bridge_ids: List[string] (required) |
| 2079 | * - channel_ids: List[string] (required) |
| 2080 | * - device_names: List[string] (required) |
| 2081 | * - endpoint_ids: List[string] (required) |
| 2082 | * - events_allowed: List[object] (required) |
| 2083 | * - events_disallowed: List[object] (required) |
| 2084 | * - name: string (required) |
| 2085 | */ |
| 2086 | |
| 2087 | #endif /* _ASTERISK_ARI_MODEL_H */ |