Filtering AMI Events

Hi.

I’m having trouble configuring AMI Event filters.

https://docs.asterisk.org/Configuration/Interfaces/Asterisk-Manager-Interface-
AMI/AMI-Event-Filtering/ shows me the example:

eventfilter(name(Newchannel)) =

This should send only Newchannel Events.

I’ve put the following configuration into my manager.d/ami.conf file:

[AMIuser]
secret=redacted
permit=127.0.0.1
read = system,call,log,verbose
eventfilter(name(Newchannel)) =

I’ve done a “manager reload”, connected to AMI as AMIuser, and I’m getting ALL
events. The filter appears not to be filtering anything out.

The documentation page says:

  • No filters configured - All events are reported
  • Include filters only - Events matching ANY include filter are reported
  • Exclude filters only - Events matching ANY exclude filter are blocked
  • Both include and exclude - Include filters are applied first, then exclude
    filters are applied to the resulting set

So, since I have specified only an include filter, I expect only to see the
events matching that filter.

Can someone point out what I’m doing wrong?

Thanks,

Antony.

To double check - what version of Asterisk?

On Wednesday 11 March 2026 at 14:07:34, jcolp wrote:

To double check - what version of Asterisk?

This is 18.14.0

Antony.


“The future is already here. It’s just not evenly distributed yet.”

  • William Gibson

The advanced filtering doesn’t exist there. The options would do nothing. You’d need to be on releases from at least a year or so ago.

it is in the later 18 branch

On Wednesday 11 March 2026 at 15:09:16, jcolp wrote:

The advanced filtering doesn’t exist there. The options would do nothing.
You’d need to be on releases from at least a year or so ago.

Ah, thanks - didn’t see that from the documentation.

Antony.


All generalisations are inaccurate.