I often copy-paste telephone numbers from other applications to the Linphone phone number field.
Linphone already does a good job at filtering out undialable characters. When I copy e.g. " +49 (241) 12 34 56 - 78 ", all spaces, hyphens, and parentheses are filtered out.
However, when I copy the same number with a trailing line break, filtering is disabled and all special characters become part of the number to dial:
The trailing line break is annoying in multiple ways: While it disables all filtering, it's also difficult to remove, because the phone number field is a single-line edit field. Hence, the trailing line break is invisible. You can only guess that by looking at the added %0a.
General information
Device:
OS: Windows 11
Version of the App: 5.2.0
Verson of the SDK: 5.3.1
Expected behaviour
Only numbers and special characters that can be dialed (like + and #) are considered for the phone number to dial.
All other characters are filtered out, especially line breaks.
To Reproduce
Copy a phone number with a line break like the following one to the Linphone phone number field:
+49 (241) 12 34 56 - 78
Notice how none of the special characters are filtered out and an extra %0a is added at the end.
Context
I often copy-paste telephone numbers from other applications to the Linphone phone number field. Linphone already does a good job at filtering out undialable characters. When I copy e.g. " +49 (241) 12 34 56 - 78 ", all spaces, hyphens, and parentheses are filtered out.
However, when I copy the same number with a trailing line break, filtering is disabled and all special characters become part of the number to dial:
The trailing line break is annoying in multiple ways: While it disables all filtering, it's also difficult to remove, because the phone number field is a single-line edit field. Hence, the trailing line break is invisible. You can only guess that by looking at the added
%0a
.General information
Expected behaviour
Only numbers and special characters that can be dialed (like
+
and#
) are considered for the phone number to dial. All other characters are filtered out, especially line breaks.To Reproduce
%0a
is added at the end.Additional context
No response
SDK logs URL
No response