diff options
author | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-22 16:29:18 +0000 |
---|---|---|
committer | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-22 16:29:18 +0000 |
commit | 84fa6553ce90f27f467b4d45dfcef9ab54e79f62 (patch) | |
tree | 1218b0ffd88470f35b8f2358c696d113f37f91b2 /configs | |
parent | 26084b02584a37a8914ee2a30ace0c01f88a68d3 (diff) |
Add regular expression filtering for manager events.
This patch as documented in the sample config allows one to optionally apply
white, black, or both types of filtering to manager events. The new
'eventfilter' option is set per user.
(closes issue #14861)
Reported by: fnordian
Patches:
eventfilter3.patch uploaded by fnordian (license 110),
modified by me
Review: https://reviewboard.asterisk.org/r/673/
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@271868 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configs')
-rw-r--r-- | configs/manager.conf.sample | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configs/manager.conf.sample b/configs/manager.conf.sample index c6536bc82..bfa13430c 100644 --- a/configs/manager.conf.sample +++ b/configs/manager.conf.sample @@ -74,6 +74,22 @@ bindaddr = 0.0.0.0 ;deny=0.0.0.0/0.0.0.0 ;permit=209.16.236.73/255.255.255.0 ; +;eventfilter=Event: Newchannel +;eventfilter=!Channel: DAHDI* +; The eventfilter option is used to whitelist or blacklist events per user to be +; reported with regular expressions and are allowed if both the regex matches +; and the user has read access set below. Filters are assumed to be for whitelisting +; unless preceeded by an exclamation point, which marks it as being black. +; Evaluation of the filters is as follows: +; - If no filters are configured all events are reported as normal. +; - If there are white filters only: implied black all filter processed first, +; then white filters. +; - If there are black filters only: implied white all filter processed first, +; then black filters. +; - If there are both white and black filters: implied black all filter processed +; first, then white filters, and lastly black filters. + +; ; If the device connected via this user accepts input slowly, ; the timeout for writes to it can be increased to keep it ; from being disconnected (value is in milliseconds) |