diff options
author | Mark Michelson <mmichelson@digium.com> | 2014-12-08 15:49:24 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2014-12-08 15:49:24 +0000 |
commit | 93b1df3bf6c6832053fc7444cd07640c273cb1df (patch) | |
tree | 53276d6b4595f86f337f95420acf1bd94bdb27cd /res/ari/ari_model_validators.h | |
parent | 55c9a46abdec10fec5210622b4508ee5e7791a65 (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
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@429064 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) |