namespace AsterNET.Manager.Action { /// /// Dynamically add filters for the current manager session /// The filters added are only used for the current session. Once the connection is closed the filters are removed. /// This comand requires the system permission because this command can be used to create filters that may bypass filters defined in manager.conf /// public class FilterAction : ManagerAction { #region Action /// /// Get the name of this action, i.e. "Filter". /// public override string Action { get { return "Filter"; } } #endregion #region Operation /// /// Add - Add a filter /// public string Operation { get; set; } #endregion #region Filter /// /// Filters can be whitelist or blacklist /// Example whitelist filter: "Event: Newchannel" /// Example blacklist filter: "!Channel: DAHDI.*" /// public string Filter { get; set; } #endregion #region FilterAction(string filter) /// /// Add - Add a filter /// /// Add a filter /// Filters can be whitelist or blacklist public FilterAction(string filter, string operation = "Add") { Filter = filter; Operation = operation; } #endregion } }