Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does the "Priority" work #166

Closed
aj3423 opened this issue Oct 26, 2024 · 0 comments
Closed

How does the "Priority" work #166

aj3423 opened this issue Oct 26, 2024 · 0 comments

Comments

@aj3423
Copy link
Owner

aj3423 commented Oct 26, 2024

Each filter has its priority value, as the term implies, it dictates the order in which the call is checked.

By default,

  • Whitelist rules have priority 10.
    E.g.: Contacts/STIR (Inclusive), RepeatedCall, Dialed, RecentApps, OffTime
  • Blacklist rules have priority 0.
    E.g.: Contacts/STIR (Exclusive), Database

So, when they are both enabled, the whitelist rules will override the blacklist rules because 10 > 0.

For the regex rules, the priroty can be any number between -2147483648 and 2147483647, different rules can have the same priority as long as they are the same type. However, never assign the same priority to both whitelist and blacklist rules, it can cause random behavior.

Some use cases of custimizing the priority:

  • If you want to always block a particular number regardless of how many times it repeats, or within OffTime, etc, set a rule with priority > 10.

  • If you want to test a particular regex, just set its priority to 999, so it will override all other rules and you don't have to temporarily disalbe them one by one.

@aj3423 aj3423 closed this as completed Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant