[asterisk-dev] [Code Review] Add regular expression blacklist filtering for manager events

Jeff Peeler jpeeler at digium.com
Thu Jun 3 17:37:30 CDT 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/673/
-----------------------------------------------------------

(Updated 2010-06-03 17:37:30.816281)


Review request for Asterisk Developers.


Changes
-------

This converts the linked lists to ao2 containers. I just wanted to get a look at this first before I add blacklisting in addition to whitelisting. I plan on making whitelisting rules be processed first and then blacklisting to avoid any conflicts.


Summary
-------

>From the submitter:
to allow better filtering of ami-events than configuring categories, I created an option "eventfilter" for manager-users. Events to be sent are matched against regexes specified in these options and are discarded if the regex matches (blacklisting).


This addresses bug 14861.
    https://issues.asterisk.org/view.php?id=14861


Diffs (updated)
-----

  /trunk/CHANGES 267758 
  /trunk/configs/manager.conf.sample 267758 
  /trunk/main/manager.c 267758 

Diff: https://reviewboard.asterisk.org/r/673/diff


Testing
-------

I ensured manager events are reported the same without filtering and works as expected with.


Thanks,

Jeff




More information about the asterisk-dev mailing list