forked from mirrors/linphone-iphone
Fix calling a sip uri from dialer
This commit is contained in:
parent
b6ffc990b3
commit
9f7bb358ee
1 changed files with 10 additions and 2 deletions
|
|
@ -485,9 +485,17 @@
|
|||
// since user wants to escape plus, we assume it expects to have phone numbers by default
|
||||
if (addr) {
|
||||
if (cfg && (linphone_proxy_config_get_dial_escape_plus(cfg))) {
|
||||
linphone_address_set_username(addr, normvalue);
|
||||
if (linphone_proxy_config_is_phone_number(cfg, normvalue)) {
|
||||
linphone_address_set_username(addr, normvalue);
|
||||
} else {
|
||||
linphone_address_set_display_name(addr, normvalue);
|
||||
}
|
||||
} else {
|
||||
linphone_address_set_username(addr, value.UTF8String);
|
||||
if (linphone_proxy_config_is_phone_number(cfg, value.UTF8String)) {
|
||||
linphone_address_set_username(addr, value.UTF8String);
|
||||
} else {
|
||||
linphone_address_set_display_name(addr, value.UTF8String);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue