mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
ARI event type filtering
Event type filtering is now enabled, and configurable per application. An app is now able to specify which events are sent to the application by configuring an allowed and/or disallowed list(s). This can be done by issuing the following: PUT /applications/{applicationName}/eventFilter And then enumerating the allowed/disallowed event types as a body parameter. ASTERISK-28106 Change-Id: I9671ba1fcdb3b6c830b553d4c5365aed5d588d5b
This commit is contained in:
committed by
George Joseph
parent
4a871c4b79
commit
1c5def4b18
@@ -1689,13 +1689,14 @@ static struct ast_json *app_event_sources_to_json(
|
||||
return json;
|
||||
}
|
||||
|
||||
static struct ast_json *stasis_app_object_to_json(struct stasis_app *app)
|
||||
struct ast_json *stasis_app_object_to_json(struct stasis_app *app)
|
||||
{
|
||||
if (!app) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return app_event_sources_to_json(app, app_to_json(app));
|
||||
return stasis_app_event_filter_to_json(
|
||||
app, app_event_sources_to_json(app, app_to_json(app)));
|
||||
}
|
||||
|
||||
struct ast_json *stasis_app_to_json(const char *app_name)
|
||||
|
Reference in New Issue
Block a user