From dcc832436eff5cd296662c08941a639f66af58da Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Thu, 28 Jul 2022 15:36:28 +0200 Subject: [PATCH] Allow the removal of account international prefix when it has been set --- Classes/LinphoneCoreSettingsStore.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Classes/LinphoneCoreSettingsStore.m b/Classes/LinphoneCoreSettingsStore.m index 7f1996b46..8d9d15279 100644 --- a/Classes/LinphoneCoreSettingsStore.m +++ b/Classes/LinphoneCoreSettingsStore.m @@ -670,9 +670,7 @@ linphone_nat_policy_set_stun_server(policy, stun_preference.UTF8String); linphone_account_params_set_nat_policy(newAccountParams, policy); - if ([prefix length] > 0) { - linphone_account_params_set_international_prefix(newAccountParams, [prefix UTF8String]); - } + linphone_account_params_set_international_prefix(newAccountParams, [prefix UTF8String]); if ([self objectForKey:@"account_substitute_+_by_00_preference"]) { bool substitute_plus_by_00 = [self boolForKey:@"account_substitute_+_by_00_preference"];