diff options
author | Mark Michelson <mmichelson@digium.com> | 2014-12-08 16:24:36 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2014-12-08 16:24:36 +0000 |
commit | fe7671fee69b0ce1a6120a9ccb6664c5f31d37d3 (patch) | |
tree | 108d125bf0ea17e17cfb63bf5d7d89756eb30f7e /res/ari/ari_model_validators.h | |
parent | 4bb556a8478741dc81361327d3a50a8809be09f6 (diff) |
Add new AMI and ARI events for connected line changes on a channel.
The AMI event is called NewConnectedLine and the ARI event is called
ChannelConnectedLine.
ASTERISK-24554 #close
Reported by Matt Jordan
Review: https://reviewboard.asterisk.org/r/4231
........
Merged revisions 429064 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@429084 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/ari/ari_model_validators.h')
-rw-r--r-- | res/ari/ari_model_validators.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/res/ari/ari_model_validators.h b/res/ari/ari_model_validators.h index 3a0bdb94a..de8547cb1 100644 --- a/res/ari/ari_model_validators.h +++ b/res/ari/ari_model_validators.h @@ -681,6 +681,24 @@ int ast_ari_validate_channel_caller_id(struct ast_json *json); ari_validator ast_ari_validate_channel_caller_id_fn(void); /*! + * \brief Validator for ChannelConnectedLine. + * + * Channel changed Connected Line. + * + * \param json JSON object to validate. + * \returns True (non-zero) if valid. + * \returns False (zero) if invalid. + */ +int ast_ari_validate_channel_connected_line(struct ast_json *json); + +/*! + * \brief Function pointer to ast_ari_validate_channel_connected_line(). + * + * See \ref ast_ari_model_validators.h for more details. + */ +ari_validator ast_ari_validate_channel_connected_line_fn(void); + +/*! * \brief Validator for ChannelCreated. * * Notification that a channel has been created. @@ -1330,6 +1348,11 @@ ari_validator ast_ari_validate_application_fn(void); * - caller_presentation: int (required) * - caller_presentation_txt: string (required) * - channel: Channel (required) + * ChannelConnectedLine + * - type: string (required) + * - application: string (required) + * - timestamp: Date + * - channel: Channel (required) * ChannelCreated * - type: string (required) * - application: string (required) |