Allow the removal of account international prefix when it has been set

This commit is contained in:
QuentinArguillere 2022-07-28 15:36:28 +02:00
parent 1559bf46c7
commit dcc832436e

View file

@ -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"];