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:
Kevin Harwell
2019-02-08 14:21:38 -06:00
committed by George Joseph
parent 4a871c4b79
commit 1c5def4b18
11 changed files with 402 additions and 5 deletions

View File

@@ -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)