From 8efce6e44607841c1f95e3998dd33240fb79c6b1 Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Tue, 30 Aug 2022 15:06:09 +0200 Subject: [PATCH] Do not apply international prefix when parsing uri that will not be used for a chat/call --- Classes/LinphoneCoreSettingsStore.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/LinphoneCoreSettingsStore.m b/Classes/LinphoneCoreSettingsStore.m index 8d62e8759..1964c60f1 100644 --- a/Classes/LinphoneCoreSettingsStore.m +++ b/Classes/LinphoneCoreSettingsStore.m @@ -187,7 +187,7 @@ const LinphoneAddress *identity_addr = linphone_account_params_get_identity_address(accountParams); const char *server_addr = linphone_account_params_get_server_addr(accountParams); - LinphoneAddress *proxy_addr = linphone_core_interpret_url_2(LC, server_addr, [CallManager.instance applyInternationalPrefix]); + LinphoneAddress *proxy_addr = linphone_core_interpret_url_2(LC, server_addr, false); if (identity_addr && proxy_addr) { int port = linphone_address_get_port(proxy_addr); @@ -626,7 +626,7 @@ proxyAddress = [NSString stringWithFormat:@"sip:%@", proxyAddress]; } - LinphoneAddress *proxy_addr = linphone_core_interpret_url_2(LC, proxyAddress.UTF8String, use_prefix); + LinphoneAddress *proxy_addr = linphone_core_interpret_url_2(LC, proxyAddress.UTF8String, false); if (proxy_addr) { LinphoneTransportType type = LinphoneTransportUdp; @@ -725,7 +725,7 @@ } char *identity = linphone_address_as_string(linphoneAddress); - LinphoneAddress *from = linphone_core_interpret_url_2(LC, identity, [CallManager.instance applyInternationalPrefix]); + LinphoneAddress *from = linphone_core_interpret_url_2(LC, identity, false); ms_free(identity); if (from) { const char *userid_str = (userID != nil) ? [userID UTF8String] : NULL;