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
0eb27e1970
commit
8681fc9db7
@@ -114,7 +114,7 @@ static void stasis_app_message_handler(
|
||||
"Queued '%s' message for Stasis app '%s'; websocket is not ready\n",
|
||||
msg_type,
|
||||
msg_application);
|
||||
} else {
|
||||
} else if (stasis_app_event_allowed(app_name, message)) {
|
||||
if (stasis_app_get_debug_by_name(app_name)) {
|
||||
char *str = ast_json_dump_string_format(message, ast_ari_json_format());
|
||||
|
||||
|
Reference in New Issue
Block a user