Phosh Anti-Spam is a program that monitors Gnome calls and automatically hangs up depending on the user's preferences.
By default, if the number calling you is not in your contact list, or you have the contact listed as "Spam", Phosh Anti-Spam will automatically tell GNOME Calls to hang up on the call. There are additionally these user configuration options:
- Whether to only block certain calls vs only allowing certain calls.
- Whether ot not to allow blocked numbers (also called "Anonymous Number" in GNOME Calls)
- If the caller calls back within a user defined time (min) of the first (blocked) call, whether to allow the call through (in case it is a human trying to call back). Note this does not apply to contacts named "Spam", they will always be hung up on.
- If you would like to match a certain type (or types) of number (for example, an area code or a number prefix) to let them through. For example, if you want to allow the area code `201` and the number prefix `312-555`, you could allow both combinations (and add others as well).
- NOTE: GNOME Calls has all of the numbers to compare in the E.164 format.
- The patterm match for numbers is located in a csv in `$XDG_CONFIG_DIR/phoshantispam/whitelist.csv` (`$HOME/.config/phoshantispam/whitelist.csv` in most cases). On start up, `phosh-antispam` loads all of the patterm values from this file (and saves to it if the list changes in the program). If one does not exist, `phosh-antispam` will create a file there on first run.