-
Notifications
You must be signed in to change notification settings - Fork 58
Description
The feature
Is your feature request related to a problem? Please describe.
Yes. Recently, a new regulation was introduced in Russia requiring companies to transmit their legal name during calls. However, the technical implementation by some VoIP providers and operators is buggy.
Instead of sending the name in the callerDisplayName field, they transmit a raw SIP header directly in the number field (handle).
Example of a raw incoming call handle:
ИТ"<tel:79602594529
or
ООО Легалтэк"<tel:79602594529
The Issue:
Currently, SpamBlocker seems to normalize/clean the phone number (stripping non-digit characters) before applying Regex rules.
- App receives:
ИТ"<tel:79602594529 - App cleans it to:
79602594529 - My Regex rule
.*ИТ.*fails because the text "ИТ" was stripped during step 2.
Describe the solution you'd like
I would like an option to apply Regex filters to the raw handle string (callDetails.handle.schemeSpecificPart) before it gets normalized.
This would allow users to block calls based on these "leaked" text patterns (like company names) that appear inside the number field.
Additional context
This pattern is becoming very common in Russia (spam from legal entities). The standard Android dialer displays this garbage text, so the app definitely receives it.
If possible, please add a switch in regex settings: "Apply to raw handle".