mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
fix create invailid proxy config
This commit is contained in:
parent
0161430180
commit
c9e189e0ae
1 changed files with 3 additions and 3 deletions
|
|
@ -241,11 +241,11 @@
|
|||
Contact* mContact = contact;
|
||||
if (!_addressBookMap)
|
||||
return;
|
||||
|
||||
LinphoneProxyConfig *cfg = linphone_core_create_proxy_config(LC);
|
||||
|
||||
LinphoneProxyConfig *cfg = linphone_core_get_default_proxy_config(LC);
|
||||
|
||||
for (NSString *phone in mContact.phones) {
|
||||
char *normalizedPhone = cfg? linphone_proxy_config_normalize_phone_number(linphone_core_get_default_proxy_config(LC), phone.UTF8String) : nil;
|
||||
char *normalizedPhone = cfg? linphone_proxy_config_normalize_phone_number(cfg, phone.UTF8String) : nil;
|
||||
NSString *name = [FastAddressBook normalizeSipURI:normalizedPhone ? [NSString stringWithUTF8String:normalizedPhone] : phone];
|
||||
if (phone != NULL)
|
||||
[_addressBookMap setObject:mContact forKey:(name ?: [FastAddressBook localizedLabel:phone])];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue