Apply event filtering to a user in ari.conf

Is there a way to filter events that are sent to an application using ARI? Something similar to how it’s done in manager.conf

[xxxxxxx]
secret = xxxxxxx
deny = 0.0.0.0/0.0.0.0
permit = 127.0.0.1/255.255.255.255
read = all
eventfilter = ChannelTalkingStop
eventfilter = Event: Agent*
eventfilter = Event: Hangup
eventfilter = Event: Hold
eventfilter = Event: Bridge*
eventfilter = Event: Link

The ARI connection is established as follows
“ws://localhost:8088/ari/events?app=myApp&subscribeAll=true&api_key=xxxx:xxxxx”

It is not configurable in the config file. It is an API request:

In ARI, event filtering isn’t done through ari.conf like in manager.conf. Instead, it’s controlled through the WebSocket connection. If you use subscribeAll=true, you’ll get everything — so to filter events, just skip that and subscribe only to the specific channels, bridges, or endpoints you care about. You can also handle filtering inside your app by ignoring the events you don’t need. It’s more of an API-level control than something set in the config file.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.