Skip to content

Filter by raw uncleaned handle (Support for malformed SIP headers in Russia) #472

@MLNekit

Description

@MLNekit

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.

  1. App receives: ИТ"<tel:79602594529
  2. App cleans it to: 79602594529
  3. 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".

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions