mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Fix phone normalization only when needed in a call
This commit is contained in:
parent
d20aa3382c
commit
4e738651ca
1 changed files with 4 additions and 6 deletions
|
|
@ -483,12 +483,10 @@
|
|||
}
|
||||
|
||||
// since user wants to escape plus, we assume it expects to have phone numbers by default
|
||||
if (addr && cfg && (linphone_proxy_config_get_dial_escape_plus(cfg) || linphone_proxy_config_get_dial_prefix(cfg))) {
|
||||
char *phone = linphone_proxy_config_normalize_phone_number(cfg, value.UTF8String);
|
||||
if (phone) {
|
||||
linphone_address_set_username(addr, phone);
|
||||
ms_free(phone);
|
||||
}
|
||||
if (addr && cfg && (linphone_proxy_config_get_dial_escape_plus(cfg))) {
|
||||
linphone_address_set_username(addr, normvalue);
|
||||
} else {
|
||||
linphone_address_set_username(addr, value.UTF8String);
|
||||
}
|
||||
|
||||
return addr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue