<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2172/18/9/_/styles/combined.css?spaceKey=AST&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+ManagerAction_Filter">Asterisk 11 ManagerAction_Filter</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://wiki.asterisk.org/wiki/display/~wikibot">Wiki Bot</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <h1><a name="Asterisk11ManagerAction_Filter-Filter"></a>Filter</h1>

<h3><a name="Asterisk11ManagerAction_Filter-Synopsis"></a>Synopsis</h3>

<p>Dynamically add filters for the current manager session.</p>
<h3><a name="Asterisk11ManagerAction_Filter-Description"></a>Description</h3>



<p>The filters added are only used for the current session. Once the connection is closed the filters are removed.</p>

<p>This comand requires the system permission because this command can be used to create filters that may bypass filters defined in manager.conf</p>

<h3><a name="Asterisk11ManagerAction_Filter-Syntax"></a>Syntax</h3>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>Action: Filter
ActionID: &lt;value&gt;
Operation: &lt;value&gt;
Filter: &lt;value&gt;
</pre>
</div></div>
<h5><a name="Asterisk11ManagerAction_Filter-Arguments"></a>Arguments</h5>


<ul>
        <li>ActionID - ActionID for this transaction. Will be returned.</li>
        <li>Operation
        <ul>
                <li>Add - Add a filter.</li>
        </ul>
        </li>
        <li>Filter - Filters can be whitelist or blacklistExample whitelist filter: "Event: Newchannel"Example blacklist filter: "!Channel: DAHDI.*"This filter 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 as defined in manager.conf. 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.</li>
</ul>



<h3><a name="Asterisk11ManagerAction_Filter-ImportVersion"></a>Import Version</h3>

<p>This documentation was imported from Asterisk Version SVN-trunk-r370322</p>
    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;" class="grey">
                        <a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+ManagerAction_Filter">View Online</a>
              |
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+ManagerAction_Filter?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>