summaryrefslogtreecommitdiff
path: root/rest-api-templates
diff options
context:
space:
mode:
authorMatt Jordan <mjordan@digium.com>2015-09-03 21:19:21 -0500
committerMatt Jordan <mjordan@digium.com>2015-09-22 15:36:24 -0500
commitb50e372394bf0950ebbc96793d9594de97282749 (patch)
tree03ee026c21af4a125e1f4803e3446b163326fe2c /rest-api-templates
parent3502c0431db52d00eb16dc1cc2462be7a509ba5e (diff)
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
Diffstat (limited to 'rest-api-templates')
-rw-r--r--rest-api-templates/ari_model_validators.c.mustache2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest-api-templates/ari_model_validators.c.mustache b/rest-api-templates/ari_model_validators.c.mustache
index be20515a4..0fabbcf45 100644
--- a/rest-api-templates/ari_model_validators.c.mustache
+++ b/rest-api-templates/ari_model_validators.c.mustache
@@ -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;
}