mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 11:06:31 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user