ARI: Add events for Contact and Peer Status changes

This patch adds support for receiving events regarding Peer status changes
and Contact status changes. This is particularly useful in scenarios where
we are subscribed to all endpoints and channels, where we often want to know
more about the state of channel technology specific items than a single
endpoint's state.

ASTERISK-24870

Change-Id: I6137459cdc25ce27efc134ad58abf065653da4e9
This commit is contained in:
Matt Jordan
2015-09-03 21:19:21 -05:00
parent 5541c6de6e
commit 5206aa9d30
6 changed files with 641 additions and 12 deletions

View File

@@ -50,7 +50,7 @@ int ast_ari_validate_{{c_id}}(struct ast_json *json)
discriminator = ast_json_string_get(ast_json_object_get(json, "{{discriminator.name}}"));
if (!discriminator) {
ast_log(LOG_ERROR, "ARI {{id}} missing required field {{discriminator.name}}");
ast_log(LOG_ERROR, "ARI {{id}} missing required field {{discriminator.name}}\n");
return 0;
}