ari_model_validators.h 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562
  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. /*! \file
  17. *
  18. * \brief Generated file - Build validators for ARI model objects.
  19. *
  20. * In addition to the normal validation functions one would normally expect,
  21. * each validator has a ast_ari_validate_{id}_fn() companion function that returns
  22. * the validator's function pointer.
  23. *
  24. * The reason for this seamingly useless indirection is the way function
  25. * pointers interfere with module loading. Asterisk attempts to dlopen() each
  26. * module using \c RTLD_LAZY in order to read some metadata from the module.
  27. * Unfortunately, if you take the address of a function, the function has to be
  28. * resolvable at load time, even if \c RTLD_LAZY is specified. By moving the
  29. * function-address-taking into this module, we can once again be lazy.
  30. */
  31. /*
  32. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  33. * !!!!! DO NOT EDIT !!!!!
  34. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  35. * This file is generated by a mustache template. Please see the original
  36. * template in rest-api-templates/ari_model_validators.h.mustache
  37. */
  38. #ifndef _ASTERISK_ARI_MODEL_H
  39. #define _ASTERISK_ARI_MODEL_H
  40. #include "asterisk/json.h"
  41. /*! @{ */
  42. /*!
  43. * \brief Validator for native Swagger void.
  44. *
  45. * \param json JSON object to validate.
  46. * \returns True (non-zero) if valid.
  47. * \returns False (zero) if invalid.
  48. */
  49. int ast_ari_validate_void(struct ast_json *json);
  50. /*!
  51. * \brief Validator for native Swagger object.
  52. *
  53. * \param json JSON object to validate.
  54. * \returns True (non-zero) if valid.
  55. * \returns False (zero) if invalid.
  56. */
  57. int ast_ari_validate_object(struct ast_json *json);
  58. /*!
  59. * \brief Validator for native Swagger byte.
  60. *
  61. * \param json JSON object to validate.
  62. * \returns True (non-zero) if valid.
  63. * \returns False (zero) if invalid.
  64. */
  65. int ast_ari_validate_byte(struct ast_json *json);
  66. /*!
  67. * \brief Validator for native Swagger boolean.
  68. *
  69. * \param json JSON object to validate.
  70. * \returns True (non-zero) if valid.
  71. * \returns False (zero) if invalid.
  72. */
  73. int ast_ari_validate_boolean(struct ast_json *json);
  74. /*!
  75. * \brief Validator for native Swagger int.
  76. *
  77. * \param json JSON object to validate.
  78. * \returns True (non-zero) if valid.
  79. * \returns False (zero) if invalid.
  80. */
  81. int ast_ari_validate_int(struct ast_json *json);
  82. /*!
  83. * \brief Validator for native Swagger long.
  84. *
  85. * \param json JSON object to validate.
  86. * \returns True (non-zero) if valid.
  87. * \returns False (zero) if invalid.
  88. */
  89. int ast_ari_validate_long(struct ast_json *json);
  90. /*!
  91. * \brief Validator for native Swagger float.
  92. *
  93. * \param json JSON object to validate.
  94. * \returns True (non-zero) if valid.
  95. * \returns False (zero) if invalid.
  96. */
  97. int ast_ari_validate_float(struct ast_json *json);
  98. /*!
  99. * \brief Validator for native Swagger double.
  100. *
  101. * \param json JSON object to validate.
  102. * \returns True (non-zero) if valid.
  103. * \returns False (zero) if invalid.
  104. */
  105. int ast_ari_validate_double(struct ast_json *json);
  106. /*!
  107. * \brief Validator for native Swagger string.
  108. *
  109. * \param json JSON object to validate.
  110. * \returns True (non-zero) if valid.
  111. * \returns False (zero) if invalid.
  112. */
  113. int ast_ari_validate_string(struct ast_json *json);
  114. /*!
  115. * \brief Validator for native Swagger date.
  116. *
  117. * \param json JSON object to validate.
  118. * \returns True (non-zero) if valid.
  119. * \returns False (zero) if invalid.
  120. */
  121. int ast_ari_validate_date(struct ast_json *json);
  122. /*!
  123. * \brief Validator for a Swagger List[]/JSON array.
  124. *
  125. * \param json JSON object to validate.
  126. * \param fn Validator to call on every element in the array.
  127. * \returns True (non-zero) if valid.
  128. * \returns False (zero) if invalid.
  129. */
  130. int ast_ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
  131. /*! @} */
  132. /*!
  133. * \brief Function type for validator functions. Allows for
  134. */
  135. typedef int (*ari_validator)(struct ast_json *json);
  136. /*!
  137. * \brief Validator for AsteriskInfo.
  138. *
  139. * Asterisk system information
  140. *
  141. * \param json JSON object to validate.
  142. * \returns True (non-zero) if valid.
  143. * \returns False (zero) if invalid.
  144. */
  145. int ast_ari_validate_asterisk_info(struct ast_json *json);
  146. /*!
  147. * \brief Function pointer to ast_ari_validate_asterisk_info().
  148. *
  149. * See \ref ast_ari_model_validators.h for more details.
  150. */
  151. ari_validator ast_ari_validate_asterisk_info_fn(void);
  152. /*!
  153. * \brief Validator for BuildInfo.
  154. *
  155. * Info about how Asterisk was built
  156. *
  157. * \param json JSON object to validate.
  158. * \returns True (non-zero) if valid.
  159. * \returns False (zero) if invalid.
  160. */
  161. int ast_ari_validate_build_info(struct ast_json *json);
  162. /*!
  163. * \brief Function pointer to ast_ari_validate_build_info().
  164. *
  165. * See \ref ast_ari_model_validators.h for more details.
  166. */
  167. ari_validator ast_ari_validate_build_info_fn(void);
  168. /*!
  169. * \brief Validator for ConfigInfo.
  170. *
  171. * Info about Asterisk configuration
  172. *
  173. * \param json JSON object to validate.
  174. * \returns True (non-zero) if valid.
  175. * \returns False (zero) if invalid.
  176. */
  177. int ast_ari_validate_config_info(struct ast_json *json);
  178. /*!
  179. * \brief Function pointer to ast_ari_validate_config_info().
  180. *
  181. * See \ref ast_ari_model_validators.h for more details.
  182. */
  183. ari_validator ast_ari_validate_config_info_fn(void);
  184. /*!
  185. * \brief Validator for SetId.
  186. *
  187. * Effective user/group id
  188. *
  189. * \param json JSON object to validate.
  190. * \returns True (non-zero) if valid.
  191. * \returns False (zero) if invalid.
  192. */
  193. int ast_ari_validate_set_id(struct ast_json *json);
  194. /*!
  195. * \brief Function pointer to ast_ari_validate_set_id().
  196. *
  197. * See \ref ast_ari_model_validators.h for more details.
  198. */
  199. ari_validator ast_ari_validate_set_id_fn(void);
  200. /*!
  201. * \brief Validator for StatusInfo.
  202. *
  203. * Info about Asterisk status
  204. *
  205. * \param json JSON object to validate.
  206. * \returns True (non-zero) if valid.
  207. * \returns False (zero) if invalid.
  208. */
  209. int ast_ari_validate_status_info(struct ast_json *json);
  210. /*!
  211. * \brief Function pointer to ast_ari_validate_status_info().
  212. *
  213. * See \ref ast_ari_model_validators.h for more details.
  214. */
  215. ari_validator ast_ari_validate_status_info_fn(void);
  216. /*!
  217. * \brief Validator for SystemInfo.
  218. *
  219. * Info about Asterisk
  220. *
  221. * \param json JSON object to validate.
  222. * \returns True (non-zero) if valid.
  223. * \returns False (zero) if invalid.
  224. */
  225. int ast_ari_validate_system_info(struct ast_json *json);
  226. /*!
  227. * \brief Function pointer to ast_ari_validate_system_info().
  228. *
  229. * See \ref ast_ari_model_validators.h for more details.
  230. */
  231. ari_validator ast_ari_validate_system_info_fn(void);
  232. /*!
  233. * \brief Validator for Variable.
  234. *
  235. * The value of a channel variable
  236. *
  237. * \param json JSON object to validate.
  238. * \returns True (non-zero) if valid.
  239. * \returns False (zero) if invalid.
  240. */
  241. int ast_ari_validate_variable(struct ast_json *json);
  242. /*!
  243. * \brief Function pointer to ast_ari_validate_variable().
  244. *
  245. * See \ref ast_ari_model_validators.h for more details.
  246. */
  247. ari_validator ast_ari_validate_variable_fn(void);
  248. /*!
  249. * \brief Validator for Endpoint.
  250. *
  251. * An external device that may offer/accept calls to/from Asterisk.
  252. *
  253. * Unlike most resources, which have a single unique identifier, an endpoint is uniquely identified by the technology/resource pair.
  254. *
  255. * \param json JSON object to validate.
  256. * \returns True (non-zero) if valid.
  257. * \returns False (zero) if invalid.
  258. */
  259. int ast_ari_validate_endpoint(struct ast_json *json);
  260. /*!
  261. * \brief Function pointer to ast_ari_validate_endpoint().
  262. *
  263. * See \ref ast_ari_model_validators.h for more details.
  264. */
  265. ari_validator ast_ari_validate_endpoint_fn(void);
  266. /*!
  267. * \brief Validator for TextMessage.
  268. *
  269. * A text message.
  270. *
  271. * \param json JSON object to validate.
  272. * \returns True (non-zero) if valid.
  273. * \returns False (zero) if invalid.
  274. */
  275. int ast_ari_validate_text_message(struct ast_json *json);
  276. /*!
  277. * \brief Function pointer to ast_ari_validate_text_message().
  278. *
  279. * See \ref ast_ari_model_validators.h for more details.
  280. */
  281. ari_validator ast_ari_validate_text_message_fn(void);
  282. /*!
  283. * \brief Validator for TextMessageVariable.
  284. *
  285. * A key/value pair variable in a text message.
  286. *
  287. * \param json JSON object to validate.
  288. * \returns True (non-zero) if valid.
  289. * \returns False (zero) if invalid.
  290. */
  291. int ast_ari_validate_text_message_variable(struct ast_json *json);
  292. /*!
  293. * \brief Function pointer to ast_ari_validate_text_message_variable().
  294. *
  295. * See \ref ast_ari_model_validators.h for more details.
  296. */
  297. ari_validator ast_ari_validate_text_message_variable_fn(void);
  298. /*!
  299. * \brief Validator for CallerID.
  300. *
  301. * Caller identification
  302. *
  303. * \param json JSON object to validate.
  304. * \returns True (non-zero) if valid.
  305. * \returns False (zero) if invalid.
  306. */
  307. int ast_ari_validate_caller_id(struct ast_json *json);
  308. /*!
  309. * \brief Function pointer to ast_ari_validate_caller_id().
  310. *
  311. * See \ref ast_ari_model_validators.h for more details.
  312. */
  313. ari_validator ast_ari_validate_caller_id_fn(void);
  314. /*!
  315. * \brief Validator for Channel.
  316. *
  317. * A specific communication connection between Asterisk and an Endpoint.
  318. *
  319. * \param json JSON object to validate.
  320. * \returns True (non-zero) if valid.
  321. * \returns False (zero) if invalid.
  322. */
  323. int ast_ari_validate_channel(struct ast_json *json);
  324. /*!
  325. * \brief Function pointer to ast_ari_validate_channel().
  326. *
  327. * See \ref ast_ari_model_validators.h for more details.
  328. */
  329. ari_validator ast_ari_validate_channel_fn(void);
  330. /*!
  331. * \brief Validator for Dialed.
  332. *
  333. * Dialed channel information.
  334. *
  335. * \param json JSON object to validate.
  336. * \returns True (non-zero) if valid.
  337. * \returns False (zero) if invalid.
  338. */
  339. int ast_ari_validate_dialed(struct ast_json *json);
  340. /*!
  341. * \brief Function pointer to ast_ari_validate_dialed().
  342. *
  343. * See \ref ast_ari_model_validators.h for more details.
  344. */
  345. ari_validator ast_ari_validate_dialed_fn(void);
  346. /*!
  347. * \brief Validator for DialplanCEP.
  348. *
  349. * Dialplan location (context/extension/priority)
  350. *
  351. * \param json JSON object to validate.
  352. * \returns True (non-zero) if valid.
  353. * \returns False (zero) if invalid.
  354. */
  355. int ast_ari_validate_dialplan_cep(struct ast_json *json);
  356. /*!
  357. * \brief Function pointer to ast_ari_validate_dialplan_cep().
  358. *
  359. * See \ref ast_ari_model_validators.h for more details.
  360. */
  361. ari_validator ast_ari_validate_dialplan_cep_fn(void);
  362. /*!
  363. * \brief Validator for Bridge.
  364. *
  365. * The merging of media from one or more channels.
  366. *
  367. * Everyone on the bridge receives the same audio.
  368. *
  369. * \param json JSON object to validate.
  370. * \returns True (non-zero) if valid.
  371. * \returns False (zero) if invalid.
  372. */
  373. int ast_ari_validate_bridge(struct ast_json *json);
  374. /*!
  375. * \brief Function pointer to ast_ari_validate_bridge().
  376. *
  377. * See \ref ast_ari_model_validators.h for more details.
  378. */
  379. ari_validator ast_ari_validate_bridge_fn(void);
  380. /*!
  381. * \brief Validator for LiveRecording.
  382. *
  383. * A recording that is in progress
  384. *
  385. * \param json JSON object to validate.
  386. * \returns True (non-zero) if valid.
  387. * \returns False (zero) if invalid.
  388. */
  389. int ast_ari_validate_live_recording(struct ast_json *json);
  390. /*!
  391. * \brief Function pointer to ast_ari_validate_live_recording().
  392. *
  393. * See \ref ast_ari_model_validators.h for more details.
  394. */
  395. ari_validator ast_ari_validate_live_recording_fn(void);
  396. /*!
  397. * \brief Validator for StoredRecording.
  398. *
  399. * A past recording that may be played back.
  400. *
  401. * \param json JSON object to validate.
  402. * \returns True (non-zero) if valid.
  403. * \returns False (zero) if invalid.
  404. */
  405. int ast_ari_validate_stored_recording(struct ast_json *json);
  406. /*!
  407. * \brief Function pointer to ast_ari_validate_stored_recording().
  408. *
  409. * See \ref ast_ari_model_validators.h for more details.
  410. */
  411. ari_validator ast_ari_validate_stored_recording_fn(void);
  412. /*!
  413. * \brief Validator for FormatLangPair.
  414. *
  415. * Identifies the format and language of a sound file
  416. *
  417. * \param json JSON object to validate.
  418. * \returns True (non-zero) if valid.
  419. * \returns False (zero) if invalid.
  420. */
  421. int ast_ari_validate_format_lang_pair(struct ast_json *json);
  422. /*!
  423. * \brief Function pointer to ast_ari_validate_format_lang_pair().
  424. *
  425. * See \ref ast_ari_model_validators.h for more details.
  426. */
  427. ari_validator ast_ari_validate_format_lang_pair_fn(void);
  428. /*!
  429. * \brief Validator for Sound.
  430. *
  431. * A media file that may be played back.
  432. *
  433. * \param json JSON object to validate.
  434. * \returns True (non-zero) if valid.
  435. * \returns False (zero) if invalid.
  436. */
  437. int ast_ari_validate_sound(struct ast_json *json);
  438. /*!
  439. * \brief Function pointer to ast_ari_validate_sound().
  440. *
  441. * See \ref ast_ari_model_validators.h for more details.
  442. */
  443. ari_validator ast_ari_validate_sound_fn(void);
  444. /*!
  445. * \brief Validator for Playback.
  446. *
  447. * Object representing the playback of media to a channel
  448. *
  449. * \param json JSON object to validate.
  450. * \returns True (non-zero) if valid.
  451. * \returns False (zero) if invalid.
  452. */
  453. int ast_ari_validate_playback(struct ast_json *json);
  454. /*!
  455. * \brief Function pointer to ast_ari_validate_playback().
  456. *
  457. * See \ref ast_ari_model_validators.h for more details.
  458. */
  459. ari_validator ast_ari_validate_playback_fn(void);
  460. /*!
  461. * \brief Validator for DeviceState.
  462. *
  463. * Represents the state of a device.
  464. *
  465. * \param json JSON object to validate.
  466. * \returns True (non-zero) if valid.
  467. * \returns False (zero) if invalid.
  468. */
  469. int ast_ari_validate_device_state(struct ast_json *json);
  470. /*!
  471. * \brief Function pointer to ast_ari_validate_device_state().
  472. *
  473. * See \ref ast_ari_model_validators.h for more details.
  474. */
  475. ari_validator ast_ari_validate_device_state_fn(void);
  476. /*!
  477. * \brief Validator for Mailbox.
  478. *
  479. * Represents the state of a mailbox.
  480. *
  481. * \param json JSON object to validate.
  482. * \returns True (non-zero) if valid.
  483. * \returns False (zero) if invalid.
  484. */
  485. int ast_ari_validate_mailbox(struct ast_json *json);
  486. /*!
  487. * \brief Function pointer to ast_ari_validate_mailbox().
  488. *
  489. * See \ref ast_ari_model_validators.h for more details.
  490. */
  491. ari_validator ast_ari_validate_mailbox_fn(void);
  492. /*!
  493. * \brief Validator for ApplicationReplaced.
  494. *
  495. * Notification that another WebSocket has taken over for an application.
  496. *
  497. * 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.
  498. *
  499. * \param json JSON object to validate.
  500. * \returns True (non-zero) if valid.
  501. * \returns False (zero) if invalid.
  502. */
  503. int ast_ari_validate_application_replaced(struct ast_json *json);
  504. /*!
  505. * \brief Function pointer to ast_ari_validate_application_replaced().
  506. *
  507. * See \ref ast_ari_model_validators.h for more details.
  508. */
  509. ari_validator ast_ari_validate_application_replaced_fn(void);
  510. /*!
  511. * \brief Validator for BridgeAttendedTransfer.
  512. *
  513. * Notification that an attended transfer has occurred.
  514. *
  515. * \param json JSON object to validate.
  516. * \returns True (non-zero) if valid.
  517. * \returns False (zero) if invalid.
  518. */
  519. int ast_ari_validate_bridge_attended_transfer(struct ast_json *json);
  520. /*!
  521. * \brief Function pointer to ast_ari_validate_bridge_attended_transfer().
  522. *
  523. * See \ref ast_ari_model_validators.h for more details.
  524. */
  525. ari_validator ast_ari_validate_bridge_attended_transfer_fn(void);
  526. /*!
  527. * \brief Validator for BridgeBlindTransfer.
  528. *
  529. * Notification that a blind transfer has occurred.
  530. *
  531. * \param json JSON object to validate.
  532. * \returns True (non-zero) if valid.
  533. * \returns False (zero) if invalid.
  534. */
  535. int ast_ari_validate_bridge_blind_transfer(struct ast_json *json);
  536. /*!
  537. * \brief Function pointer to ast_ari_validate_bridge_blind_transfer().
  538. *
  539. * See \ref ast_ari_model_validators.h for more details.
  540. */
  541. ari_validator ast_ari_validate_bridge_blind_transfer_fn(void);
  542. /*!
  543. * \brief Validator for BridgeCreated.
  544. *
  545. * Notification that a bridge has been created.
  546. *
  547. * \param json JSON object to validate.
  548. * \returns True (non-zero) if valid.
  549. * \returns False (zero) if invalid.
  550. */
  551. int ast_ari_validate_bridge_created(struct ast_json *json);
  552. /*!
  553. * \brief Function pointer to ast_ari_validate_bridge_created().
  554. *
  555. * See \ref ast_ari_model_validators.h for more details.
  556. */
  557. ari_validator ast_ari_validate_bridge_created_fn(void);
  558. /*!
  559. * \brief Validator for BridgeDestroyed.
  560. *
  561. * Notification that a bridge has been destroyed.
  562. *
  563. * \param json JSON object to validate.
  564. * \returns True (non-zero) if valid.
  565. * \returns False (zero) if invalid.
  566. */
  567. int ast_ari_validate_bridge_destroyed(struct ast_json *json);
  568. /*!
  569. * \brief Function pointer to ast_ari_validate_bridge_destroyed().
  570. *
  571. * See \ref ast_ari_model_validators.h for more details.
  572. */
  573. ari_validator ast_ari_validate_bridge_destroyed_fn(void);
  574. /*!
  575. * \brief Validator for BridgeMerged.
  576. *
  577. * Notification that one bridge has merged into another.
  578. *
  579. * \param json JSON object to validate.
  580. * \returns True (non-zero) if valid.
  581. * \returns False (zero) if invalid.
  582. */
  583. int ast_ari_validate_bridge_merged(struct ast_json *json);
  584. /*!
  585. * \brief Function pointer to ast_ari_validate_bridge_merged().
  586. *
  587. * See \ref ast_ari_model_validators.h for more details.
  588. */
  589. ari_validator ast_ari_validate_bridge_merged_fn(void);
  590. /*!
  591. * \brief Validator for ChannelCallerId.
  592. *
  593. * Channel changed Caller ID.
  594. *
  595. * \param json JSON object to validate.
  596. * \returns True (non-zero) if valid.
  597. * \returns False (zero) if invalid.
  598. */
  599. int ast_ari_validate_channel_caller_id(struct ast_json *json);
  600. /*!
  601. * \brief Function pointer to ast_ari_validate_channel_caller_id().
  602. *
  603. * See \ref ast_ari_model_validators.h for more details.
  604. */
  605. ari_validator ast_ari_validate_channel_caller_id_fn(void);
  606. /*!
  607. * \brief Validator for ChannelConnectedLine.
  608. *
  609. * Channel changed Connected Line.
  610. *
  611. * \param json JSON object to validate.
  612. * \returns True (non-zero) if valid.
  613. * \returns False (zero) if invalid.
  614. */
  615. int ast_ari_validate_channel_connected_line(struct ast_json *json);
  616. /*!
  617. * \brief Function pointer to ast_ari_validate_channel_connected_line().
  618. *
  619. * See \ref ast_ari_model_validators.h for more details.
  620. */
  621. ari_validator ast_ari_validate_channel_connected_line_fn(void);
  622. /*!
  623. * \brief Validator for ChannelCreated.
  624. *
  625. * Notification that a channel has been created.
  626. *
  627. * \param json JSON object to validate.
  628. * \returns True (non-zero) if valid.
  629. * \returns False (zero) if invalid.
  630. */
  631. int ast_ari_validate_channel_created(struct ast_json *json);
  632. /*!
  633. * \brief Function pointer to ast_ari_validate_channel_created().
  634. *
  635. * See \ref ast_ari_model_validators.h for more details.
  636. */
  637. ari_validator ast_ari_validate_channel_created_fn(void);
  638. /*!
  639. * \brief Validator for ChannelDestroyed.
  640. *
  641. * Notification that a channel has been destroyed.
  642. *
  643. * \param json JSON object to validate.
  644. * \returns True (non-zero) if valid.
  645. * \returns False (zero) if invalid.
  646. */
  647. int ast_ari_validate_channel_destroyed(struct ast_json *json);
  648. /*!
  649. * \brief Function pointer to ast_ari_validate_channel_destroyed().
  650. *
  651. * See \ref ast_ari_model_validators.h for more details.
  652. */
  653. ari_validator ast_ari_validate_channel_destroyed_fn(void);
  654. /*!
  655. * \brief Validator for ChannelDialplan.
  656. *
  657. * Channel changed location in the dialplan.
  658. *
  659. * \param json JSON object to validate.
  660. * \returns True (non-zero) if valid.
  661. * \returns False (zero) if invalid.
  662. */
  663. int ast_ari_validate_channel_dialplan(struct ast_json *json);
  664. /*!
  665. * \brief Function pointer to ast_ari_validate_channel_dialplan().
  666. *
  667. * See \ref ast_ari_model_validators.h for more details.
  668. */
  669. ari_validator ast_ari_validate_channel_dialplan_fn(void);
  670. /*!
  671. * \brief Validator for ChannelDtmfReceived.
  672. *
  673. * DTMF received on a channel.
  674. *
  675. * This event is sent when the DTMF ends. There is no notification about the start of DTMF
  676. *
  677. * \param json JSON object to validate.
  678. * \returns True (non-zero) if valid.
  679. * \returns False (zero) if invalid.
  680. */
  681. int ast_ari_validate_channel_dtmf_received(struct ast_json *json);
  682. /*!
  683. * \brief Function pointer to ast_ari_validate_channel_dtmf_received().
  684. *
  685. * See \ref ast_ari_model_validators.h for more details.
  686. */
  687. ari_validator ast_ari_validate_channel_dtmf_received_fn(void);
  688. /*!
  689. * \brief Validator for ChannelEnteredBridge.
  690. *
  691. * Notification that a channel has entered a bridge.
  692. *
  693. * \param json JSON object to validate.
  694. * \returns True (non-zero) if valid.
  695. * \returns False (zero) if invalid.
  696. */
  697. int ast_ari_validate_channel_entered_bridge(struct ast_json *json);
  698. /*!
  699. * \brief Function pointer to ast_ari_validate_channel_entered_bridge().
  700. *
  701. * See \ref ast_ari_model_validators.h for more details.
  702. */
  703. ari_validator ast_ari_validate_channel_entered_bridge_fn(void);
  704. /*!
  705. * \brief Validator for ChannelHangupRequest.
  706. *
  707. * A hangup was requested on the channel.
  708. *
  709. * \param json JSON object to validate.
  710. * \returns True (non-zero) if valid.
  711. * \returns False (zero) if invalid.
  712. */
  713. int ast_ari_validate_channel_hangup_request(struct ast_json *json);
  714. /*!
  715. * \brief Function pointer to ast_ari_validate_channel_hangup_request().
  716. *
  717. * See \ref ast_ari_model_validators.h for more details.
  718. */
  719. ari_validator ast_ari_validate_channel_hangup_request_fn(void);
  720. /*!
  721. * \brief Validator for ChannelHold.
  722. *
  723. * A channel initiated a media hold.
  724. *
  725. * \param json JSON object to validate.
  726. * \returns True (non-zero) if valid.
  727. * \returns False (zero) if invalid.
  728. */
  729. int ast_ari_validate_channel_hold(struct ast_json *json);
  730. /*!
  731. * \brief Function pointer to ast_ari_validate_channel_hold().
  732. *
  733. * See \ref ast_ari_model_validators.h for more details.
  734. */
  735. ari_validator ast_ari_validate_channel_hold_fn(void);
  736. /*!
  737. * \brief Validator for ChannelLeftBridge.
  738. *
  739. * Notification that a channel has left a bridge.
  740. *
  741. * \param json JSON object to validate.
  742. * \returns True (non-zero) if valid.
  743. * \returns False (zero) if invalid.
  744. */
  745. int ast_ari_validate_channel_left_bridge(struct ast_json *json);
  746. /*!
  747. * \brief Function pointer to ast_ari_validate_channel_left_bridge().
  748. *
  749. * See \ref ast_ari_model_validators.h for more details.
  750. */
  751. ari_validator ast_ari_validate_channel_left_bridge_fn(void);
  752. /*!
  753. * \brief Validator for ChannelStateChange.
  754. *
  755. * Notification of a channel's state change.
  756. *
  757. * \param json JSON object to validate.
  758. * \returns True (non-zero) if valid.
  759. * \returns False (zero) if invalid.
  760. */
  761. int ast_ari_validate_channel_state_change(struct ast_json *json);
  762. /*!
  763. * \brief Function pointer to ast_ari_validate_channel_state_change().
  764. *
  765. * See \ref ast_ari_model_validators.h for more details.
  766. */
  767. ari_validator ast_ari_validate_channel_state_change_fn(void);
  768. /*!
  769. * \brief Validator for ChannelTalkingFinished.
  770. *
  771. * Talking is no longer detected on the channel.
  772. *
  773. * \param json JSON object to validate.
  774. * \returns True (non-zero) if valid.
  775. * \returns False (zero) if invalid.
  776. */
  777. int ast_ari_validate_channel_talking_finished(struct ast_json *json);
  778. /*!
  779. * \brief Function pointer to ast_ari_validate_channel_talking_finished().
  780. *
  781. * See \ref ast_ari_model_validators.h for more details.
  782. */
  783. ari_validator ast_ari_validate_channel_talking_finished_fn(void);
  784. /*!
  785. * \brief Validator for ChannelTalkingStarted.
  786. *
  787. * Talking was detected on the channel.
  788. *
  789. * \param json JSON object to validate.
  790. * \returns True (non-zero) if valid.
  791. * \returns False (zero) if invalid.
  792. */
  793. int ast_ari_validate_channel_talking_started(struct ast_json *json);
  794. /*!
  795. * \brief Function pointer to ast_ari_validate_channel_talking_started().
  796. *
  797. * See \ref ast_ari_model_validators.h for more details.
  798. */
  799. ari_validator ast_ari_validate_channel_talking_started_fn(void);
  800. /*!
  801. * \brief Validator for ChannelUnhold.
  802. *
  803. * A channel initiated a media unhold.
  804. *
  805. * \param json JSON object to validate.
  806. * \returns True (non-zero) if valid.
  807. * \returns False (zero) if invalid.
  808. */
  809. int ast_ari_validate_channel_unhold(struct ast_json *json);
  810. /*!
  811. * \brief Function pointer to ast_ari_validate_channel_unhold().
  812. *
  813. * See \ref ast_ari_model_validators.h for more details.
  814. */
  815. ari_validator ast_ari_validate_channel_unhold_fn(void);
  816. /*!
  817. * \brief Validator for ChannelUserevent.
  818. *
  819. * User-generated event with additional user-defined fields in the object.
  820. *
  821. * \param json JSON object to validate.
  822. * \returns True (non-zero) if valid.
  823. * \returns False (zero) if invalid.
  824. */
  825. int ast_ari_validate_channel_userevent(struct ast_json *json);
  826. /*!
  827. * \brief Function pointer to ast_ari_validate_channel_userevent().
  828. *
  829. * See \ref ast_ari_model_validators.h for more details.
  830. */
  831. ari_validator ast_ari_validate_channel_userevent_fn(void);
  832. /*!
  833. * \brief Validator for ChannelVarset.
  834. *
  835. * Channel variable changed.
  836. *
  837. * \param json JSON object to validate.
  838. * \returns True (non-zero) if valid.
  839. * \returns False (zero) if invalid.
  840. */
  841. int ast_ari_validate_channel_varset(struct ast_json *json);
  842. /*!
  843. * \brief Function pointer to ast_ari_validate_channel_varset().
  844. *
  845. * See \ref ast_ari_model_validators.h for more details.
  846. */
  847. ari_validator ast_ari_validate_channel_varset_fn(void);
  848. /*!
  849. * \brief Validator for DeviceStateChanged.
  850. *
  851. * Notification that a device state has changed.
  852. *
  853. * \param json JSON object to validate.
  854. * \returns True (non-zero) if valid.
  855. * \returns False (zero) if invalid.
  856. */
  857. int ast_ari_validate_device_state_changed(struct ast_json *json);
  858. /*!
  859. * \brief Function pointer to ast_ari_validate_device_state_changed().
  860. *
  861. * See \ref ast_ari_model_validators.h for more details.
  862. */
  863. ari_validator ast_ari_validate_device_state_changed_fn(void);
  864. /*!
  865. * \brief Validator for Dial.
  866. *
  867. * Dialing state has changed.
  868. *
  869. * \param json JSON object to validate.
  870. * \returns True (non-zero) if valid.
  871. * \returns False (zero) if invalid.
  872. */
  873. int ast_ari_validate_dial(struct ast_json *json);
  874. /*!
  875. * \brief Function pointer to ast_ari_validate_dial().
  876. *
  877. * See \ref ast_ari_model_validators.h for more details.
  878. */
  879. ari_validator ast_ari_validate_dial_fn(void);
  880. /*!
  881. * \brief Validator for EndpointStateChange.
  882. *
  883. * Endpoint state changed.
  884. *
  885. * \param json JSON object to validate.
  886. * \returns True (non-zero) if valid.
  887. * \returns False (zero) if invalid.
  888. */
  889. int ast_ari_validate_endpoint_state_change(struct ast_json *json);
  890. /*!
  891. * \brief Function pointer to ast_ari_validate_endpoint_state_change().
  892. *
  893. * See \ref ast_ari_model_validators.h for more details.
  894. */
  895. ari_validator ast_ari_validate_endpoint_state_change_fn(void);
  896. /*!
  897. * \brief Validator for Event.
  898. *
  899. * Base type for asynchronous events from Asterisk.
  900. *
  901. * \param json JSON object to validate.
  902. * \returns True (non-zero) if valid.
  903. * \returns False (zero) if invalid.
  904. */
  905. int ast_ari_validate_event(struct ast_json *json);
  906. /*!
  907. * \brief Function pointer to ast_ari_validate_event().
  908. *
  909. * See \ref ast_ari_model_validators.h for more details.
  910. */
  911. ari_validator ast_ari_validate_event_fn(void);
  912. /*!
  913. * \brief Validator for Message.
  914. *
  915. * Base type for errors and events
  916. *
  917. * \param json JSON object to validate.
  918. * \returns True (non-zero) if valid.
  919. * \returns False (zero) if invalid.
  920. */
  921. int ast_ari_validate_message(struct ast_json *json);
  922. /*!
  923. * \brief Function pointer to ast_ari_validate_message().
  924. *
  925. * See \ref ast_ari_model_validators.h for more details.
  926. */
  927. ari_validator ast_ari_validate_message_fn(void);
  928. /*!
  929. * \brief Validator for MissingParams.
  930. *
  931. * Error event sent when required params are missing.
  932. *
  933. * \param json JSON object to validate.
  934. * \returns True (non-zero) if valid.
  935. * \returns False (zero) if invalid.
  936. */
  937. int ast_ari_validate_missing_params(struct ast_json *json);
  938. /*!
  939. * \brief Function pointer to ast_ari_validate_missing_params().
  940. *
  941. * See \ref ast_ari_model_validators.h for more details.
  942. */
  943. ari_validator ast_ari_validate_missing_params_fn(void);
  944. /*!
  945. * \brief Validator for PlaybackFinished.
  946. *
  947. * Event showing the completion of a media playback operation.
  948. *
  949. * \param json JSON object to validate.
  950. * \returns True (non-zero) if valid.
  951. * \returns False (zero) if invalid.
  952. */
  953. int ast_ari_validate_playback_finished(struct ast_json *json);
  954. /*!
  955. * \brief Function pointer to ast_ari_validate_playback_finished().
  956. *
  957. * See \ref ast_ari_model_validators.h for more details.
  958. */
  959. ari_validator ast_ari_validate_playback_finished_fn(void);
  960. /*!
  961. * \brief Validator for PlaybackStarted.
  962. *
  963. * Event showing the start of a media playback operation.
  964. *
  965. * \param json JSON object to validate.
  966. * \returns True (non-zero) if valid.
  967. * \returns False (zero) if invalid.
  968. */
  969. int ast_ari_validate_playback_started(struct ast_json *json);
  970. /*!
  971. * \brief Function pointer to ast_ari_validate_playback_started().
  972. *
  973. * See \ref ast_ari_model_validators.h for more details.
  974. */
  975. ari_validator ast_ari_validate_playback_started_fn(void);
  976. /*!
  977. * \brief Validator for RecordingFailed.
  978. *
  979. * Event showing failure of a recording operation.
  980. *
  981. * \param json JSON object to validate.
  982. * \returns True (non-zero) if valid.
  983. * \returns False (zero) if invalid.
  984. */
  985. int ast_ari_validate_recording_failed(struct ast_json *json);
  986. /*!
  987. * \brief Function pointer to ast_ari_validate_recording_failed().
  988. *
  989. * See \ref ast_ari_model_validators.h for more details.
  990. */
  991. ari_validator ast_ari_validate_recording_failed_fn(void);
  992. /*!
  993. * \brief Validator for RecordingFinished.
  994. *
  995. * Event showing the completion of a recording operation.
  996. *
  997. * \param json JSON object to validate.
  998. * \returns True (non-zero) if valid.
  999. * \returns False (zero) if invalid.
  1000. */
  1001. int ast_ari_validate_recording_finished(struct ast_json *json);
  1002. /*!
  1003. * \brief Function pointer to ast_ari_validate_recording_finished().
  1004. *
  1005. * See \ref ast_ari_model_validators.h for more details.
  1006. */
  1007. ari_validator ast_ari_validate_recording_finished_fn(void);
  1008. /*!
  1009. * \brief Validator for RecordingStarted.
  1010. *
  1011. * Event showing the start of a recording operation.
  1012. *
  1013. * \param json JSON object to validate.
  1014. * \returns True (non-zero) if valid.
  1015. * \returns False (zero) if invalid.
  1016. */
  1017. int ast_ari_validate_recording_started(struct ast_json *json);
  1018. /*!
  1019. * \brief Function pointer to ast_ari_validate_recording_started().
  1020. *
  1021. * See \ref ast_ari_model_validators.h for more details.
  1022. */
  1023. ari_validator ast_ari_validate_recording_started_fn(void);
  1024. /*!
  1025. * \brief Validator for StasisEnd.
  1026. *
  1027. * Notification that a channel has left a Stasis application.
  1028. *
  1029. * \param json JSON object to validate.
  1030. * \returns True (non-zero) if valid.
  1031. * \returns False (zero) if invalid.
  1032. */
  1033. int ast_ari_validate_stasis_end(struct ast_json *json);
  1034. /*!
  1035. * \brief Function pointer to ast_ari_validate_stasis_end().
  1036. *
  1037. * See \ref ast_ari_model_validators.h for more details.
  1038. */
  1039. ari_validator ast_ari_validate_stasis_end_fn(void);
  1040. /*!
  1041. * \brief Validator for StasisStart.
  1042. *
  1043. * Notification that a channel has entered a Stasis application.
  1044. *
  1045. * \param json JSON object to validate.
  1046. * \returns True (non-zero) if valid.
  1047. * \returns False (zero) if invalid.
  1048. */
  1049. int ast_ari_validate_stasis_start(struct ast_json *json);
  1050. /*!
  1051. * \brief Function pointer to ast_ari_validate_stasis_start().
  1052. *
  1053. * See \ref ast_ari_model_validators.h for more details.
  1054. */
  1055. ari_validator ast_ari_validate_stasis_start_fn(void);
  1056. /*!
  1057. * \brief Validator for TextMessageReceived.
  1058. *
  1059. * A text message was received from an endpoint.
  1060. *
  1061. * \param json JSON object to validate.
  1062. * \returns True (non-zero) if valid.
  1063. * \returns False (zero) if invalid.
  1064. */
  1065. int ast_ari_validate_text_message_received(struct ast_json *json);
  1066. /*!
  1067. * \brief Function pointer to ast_ari_validate_text_message_received().
  1068. *
  1069. * See \ref ast_ari_model_validators.h for more details.
  1070. */
  1071. ari_validator ast_ari_validate_text_message_received_fn(void);
  1072. /*!
  1073. * \brief Validator for Application.
  1074. *
  1075. * Details of a Stasis application
  1076. *
  1077. * \param json JSON object to validate.
  1078. * \returns True (non-zero) if valid.
  1079. * \returns False (zero) if invalid.
  1080. */
  1081. int ast_ari_validate_application(struct ast_json *json);
  1082. /*!
  1083. * \brief Function pointer to ast_ari_validate_application().
  1084. *
  1085. * See \ref ast_ari_model_validators.h for more details.
  1086. */
  1087. ari_validator ast_ari_validate_application_fn(void);
  1088. /*
  1089. * JSON models
  1090. *
  1091. * AsteriskInfo
  1092. * - build: BuildInfo
  1093. * - config: ConfigInfo
  1094. * - status: StatusInfo
  1095. * - system: SystemInfo
  1096. * BuildInfo
  1097. * - date: string (required)
  1098. * - kernel: string (required)
  1099. * - machine: string (required)
  1100. * - options: string (required)
  1101. * - os: string (required)
  1102. * - user: string (required)
  1103. * ConfigInfo
  1104. * - default_language: string (required)
  1105. * - max_channels: int
  1106. * - max_load: double
  1107. * - max_open_files: int
  1108. * - name: string (required)
  1109. * - setid: SetId (required)
  1110. * SetId
  1111. * - group: string (required)
  1112. * - user: string (required)
  1113. * StatusInfo
  1114. * - last_reload_time: Date (required)
  1115. * - startup_time: Date (required)
  1116. * SystemInfo
  1117. * - entity_id: string (required)
  1118. * - version: string (required)
  1119. * Variable
  1120. * - value: string (required)
  1121. * Endpoint
  1122. * - channel_ids: List[string] (required)
  1123. * - resource: string (required)
  1124. * - state: string
  1125. * - technology: string (required)
  1126. * TextMessage
  1127. * - body: string (required)
  1128. * - from: string (required)
  1129. * - to: string (required)
  1130. * - variables: List[TextMessageVariable]
  1131. * TextMessageVariable
  1132. * - key: string (required)
  1133. * - value: string (required)
  1134. * CallerID
  1135. * - name: string (required)
  1136. * - number: string (required)
  1137. * Channel
  1138. * - accountcode: string (required)
  1139. * - caller: CallerID (required)
  1140. * - connected: CallerID (required)
  1141. * - creationtime: Date (required)
  1142. * - dialplan: DialplanCEP (required)
  1143. * - id: string (required)
  1144. * - language: string (required)
  1145. * - name: string (required)
  1146. * - state: string (required)
  1147. * Dialed
  1148. * DialplanCEP
  1149. * - context: string (required)
  1150. * - exten: string (required)
  1151. * - priority: long (required)
  1152. * Bridge
  1153. * - bridge_class: string (required)
  1154. * - bridge_type: string (required)
  1155. * - channels: List[string] (required)
  1156. * - creator: string (required)
  1157. * - id: string (required)
  1158. * - name: string (required)
  1159. * - technology: string (required)
  1160. * LiveRecording
  1161. * - cause: string
  1162. * - duration: int
  1163. * - format: string (required)
  1164. * - name: string (required)
  1165. * - silence_duration: int
  1166. * - state: string (required)
  1167. * - talking_duration: int
  1168. * - target_uri: string (required)
  1169. * StoredRecording
  1170. * - format: string (required)
  1171. * - name: string (required)
  1172. * FormatLangPair
  1173. * - format: string (required)
  1174. * - language: string (required)
  1175. * Sound
  1176. * - formats: List[FormatLangPair] (required)
  1177. * - id: string (required)
  1178. * - text: string
  1179. * Playback
  1180. * - id: string (required)
  1181. * - language: string
  1182. * - media_uri: string (required)
  1183. * - state: string (required)
  1184. * - target_uri: string (required)
  1185. * DeviceState
  1186. * - name: string (required)
  1187. * - state: string (required)
  1188. * Mailbox
  1189. * - name: string (required)
  1190. * - new_messages: int (required)
  1191. * - old_messages: int (required)
  1192. * ApplicationReplaced
  1193. * - type: string (required)
  1194. * - application: string (required)
  1195. * - timestamp: Date
  1196. * BridgeAttendedTransfer
  1197. * - type: string (required)
  1198. * - application: string (required)
  1199. * - timestamp: Date
  1200. * - destination_application: string
  1201. * - destination_bridge: string
  1202. * - destination_link_first_leg: Channel
  1203. * - destination_link_second_leg: Channel
  1204. * - destination_threeway_bridge: Bridge
  1205. * - destination_threeway_channel: Channel
  1206. * - destination_type: string (required)
  1207. * - is_external: boolean (required)
  1208. * - replace_channel: Channel
  1209. * - result: string (required)
  1210. * - transfer_target: Channel
  1211. * - transferee: Channel
  1212. * - transferer_first_leg: Channel (required)
  1213. * - transferer_first_leg_bridge: Bridge
  1214. * - transferer_second_leg: Channel (required)
  1215. * - transferer_second_leg_bridge: Bridge
  1216. * BridgeBlindTransfer
  1217. * - type: string (required)
  1218. * - application: string (required)
  1219. * - timestamp: Date
  1220. * - bridge: Bridge
  1221. * - channel: Channel (required)
  1222. * - context: string (required)
  1223. * - exten: string (required)
  1224. * - is_external: boolean (required)
  1225. * - replace_channel: Channel
  1226. * - result: string (required)
  1227. * - transferee: Channel
  1228. * BridgeCreated
  1229. * - type: string (required)
  1230. * - application: string (required)
  1231. * - timestamp: Date
  1232. * - bridge: Bridge (required)
  1233. * BridgeDestroyed
  1234. * - type: string (required)
  1235. * - application: string (required)
  1236. * - timestamp: Date
  1237. * - bridge: Bridge (required)
  1238. * BridgeMerged
  1239. * - type: string (required)
  1240. * - application: string (required)
  1241. * - timestamp: Date
  1242. * - bridge: Bridge (required)
  1243. * - bridge_from: Bridge (required)
  1244. * ChannelCallerId
  1245. * - type: string (required)
  1246. * - application: string (required)
  1247. * - timestamp: Date
  1248. * - caller_presentation: int (required)
  1249. * - caller_presentation_txt: string (required)
  1250. * - channel: Channel (required)
  1251. * ChannelConnectedLine
  1252. * - type: string (required)
  1253. * - application: string (required)
  1254. * - timestamp: Date
  1255. * - channel: Channel (required)
  1256. * ChannelCreated
  1257. * - type: string (required)
  1258. * - application: string (required)
  1259. * - timestamp: Date
  1260. * - channel: Channel (required)
  1261. * ChannelDestroyed
  1262. * - type: string (required)
  1263. * - application: string (required)
  1264. * - timestamp: Date
  1265. * - cause: int (required)
  1266. * - cause_txt: string (required)
  1267. * - channel: Channel (required)
  1268. * ChannelDialplan
  1269. * - type: string (required)
  1270. * - application: string (required)
  1271. * - timestamp: Date
  1272. * - channel: Channel (required)
  1273. * - dialplan_app: string (required)
  1274. * - dialplan_app_data: string (required)
  1275. * ChannelDtmfReceived
  1276. * - type: string (required)
  1277. * - application: string (required)
  1278. * - timestamp: Date
  1279. * - channel: Channel (required)
  1280. * - digit: string (required)
  1281. * - duration_ms: int (required)
  1282. * ChannelEnteredBridge
  1283. * - type: string (required)
  1284. * - application: string (required)
  1285. * - timestamp: Date
  1286. * - bridge: Bridge (required)
  1287. * - channel: Channel
  1288. * ChannelHangupRequest
  1289. * - type: string (required)
  1290. * - application: string (required)
  1291. * - timestamp: Date
  1292. * - cause: int
  1293. * - channel: Channel (required)
  1294. * - soft: boolean
  1295. * ChannelHold
  1296. * - type: string (required)
  1297. * - application: string (required)
  1298. * - timestamp: Date
  1299. * - channel: Channel (required)
  1300. * - musicclass: string
  1301. * ChannelLeftBridge
  1302. * - type: string (required)
  1303. * - application: string (required)
  1304. * - timestamp: Date
  1305. * - bridge: Bridge (required)
  1306. * - channel: Channel (required)
  1307. * ChannelStateChange
  1308. * - type: string (required)
  1309. * - application: string (required)
  1310. * - timestamp: Date
  1311. * - channel: Channel (required)
  1312. * ChannelTalkingFinished
  1313. * - type: string (required)
  1314. * - application: string (required)
  1315. * - timestamp: Date
  1316. * - channel: Channel (required)
  1317. * - duration: int (required)
  1318. * ChannelTalkingStarted
  1319. * - type: string (required)
  1320. * - application: string (required)
  1321. * - timestamp: Date
  1322. * - channel: Channel (required)
  1323. * ChannelUnhold
  1324. * - type: string (required)
  1325. * - application: string (required)
  1326. * - timestamp: Date
  1327. * - channel: Channel (required)
  1328. * ChannelUserevent
  1329. * - type: string (required)
  1330. * - application: string (required)
  1331. * - timestamp: Date
  1332. * - bridge: Bridge
  1333. * - channel: Channel
  1334. * - endpoint: Endpoint
  1335. * - eventname: string (required)
  1336. * - userevent: object (required)
  1337. * ChannelVarset
  1338. * - type: string (required)
  1339. * - application: string (required)
  1340. * - timestamp: Date
  1341. * - channel: Channel
  1342. * - value: string (required)
  1343. * - variable: string (required)
  1344. * DeviceStateChanged
  1345. * - type: string (required)
  1346. * - application: string (required)
  1347. * - timestamp: Date
  1348. * - device_state: DeviceState (required)
  1349. * Dial
  1350. * - type: string (required)
  1351. * - application: string (required)
  1352. * - timestamp: Date
  1353. * - caller: Channel
  1354. * - dialstatus: string (required)
  1355. * - dialstring: string
  1356. * - forward: string
  1357. * - forwarded: Channel
  1358. * - peer: Channel (required)
  1359. * EndpointStateChange
  1360. * - type: string (required)
  1361. * - application: string (required)
  1362. * - timestamp: Date
  1363. * - endpoint: Endpoint (required)
  1364. * Event
  1365. * - type: string (required)
  1366. * - application: string (required)
  1367. * - timestamp: Date
  1368. * Message
  1369. * - type: string (required)
  1370. * MissingParams
  1371. * - type: string (required)
  1372. * - params: List[string] (required)
  1373. * PlaybackFinished
  1374. * - type: string (required)
  1375. * - application: string (required)
  1376. * - timestamp: Date
  1377. * - playback: Playback (required)
  1378. * PlaybackStarted
  1379. * - type: string (required)
  1380. * - application: string (required)
  1381. * - timestamp: Date
  1382. * - playback: Playback (required)
  1383. * RecordingFailed
  1384. * - type: string (required)
  1385. * - application: string (required)
  1386. * - timestamp: Date
  1387. * - recording: LiveRecording (required)
  1388. * RecordingFinished
  1389. * - type: string (required)
  1390. * - application: string (required)
  1391. * - timestamp: Date
  1392. * - recording: LiveRecording (required)
  1393. * RecordingStarted
  1394. * - type: string (required)
  1395. * - application: string (required)
  1396. * - timestamp: Date
  1397. * - recording: LiveRecording (required)
  1398. * StasisEnd
  1399. * - type: string (required)
  1400. * - application: string (required)
  1401. * - timestamp: Date
  1402. * - channel: Channel (required)
  1403. * StasisStart
  1404. * - type: string (required)
  1405. * - application: string (required)
  1406. * - timestamp: Date
  1407. * - args: List[string] (required)
  1408. * - channel: Channel (required)
  1409. * - replace_channel: Channel
  1410. * TextMessageReceived
  1411. * - type: string (required)
  1412. * - application: string (required)
  1413. * - timestamp: Date
  1414. * - endpoint: Endpoint
  1415. * - message: TextMessage (required)
  1416. * Application
  1417. * - bridge_ids: List[string] (required)
  1418. * - channel_ids: List[string] (required)
  1419. * - device_names: List[string] (required)
  1420. * - endpoint_ids: List[string] (required)
  1421. * - name: string (required)
  1422. */
  1423. #endif /* _ASTERISK_ARI_MODEL_H */