Skip to content

encrypt or desensitize the phone number information in the log output #2963

@hegw

Description

@hegw

Is your feature request related to a problem? Please describe.
In actual working scenarios, there are times when we need to review more detailed logs, such as logs at the info level or debug level.
At this point, the log usually contains the plaintext phone number information.
It conflicts with the company's security audit regulations, which prohibit the output of plaintext customer sensitive information, such as phone numbers.

Describe the solution you'd like
Is it possible to provide a configuration option to support the encryption or desensitization of phone number information in the log output?

Describe alternatives you've considered
Although it is possible to adjust the log level to prevent the output of phone numbers, this obviously does not facilitate problem troubleshooting.

Additional context
the log such as:
Dec 1, 2025 @ 14:29:15.818 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx 2025-12-01 14:28:38.290799 93.07%[INFO sofia_glue.c:1651 sofia/external/{phone number info} sendinginvite call-id:(null)

Package version or git hash
1.10.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions