From 7caecad1fb9dcf3f71a4e08502f073f0006cf671 Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Fri, 3 Jun 2022 15:27:27 +0200 Subject: [PATCH] =?UTF-8?q?Use=20the=20account=E2=80=99s=20identity=20rath?= =?UTF-8?q?er=20than=20a=20generic=20hard=20coded=20string=20as=20basis=20?= =?UTF-8?q?when=20synchronizing=20params.=20This=20fixes=20the=20loss=20of?= =?UTF-8?q?=20=E2=80=9Csips=E2=80=9D=20identity=20when=20exiting=20the=20s?= =?UTF-8?q?ettings=20menu.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Classes/LinphoneCoreSettingsStore.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/LinphoneCoreSettingsStore.m b/Classes/LinphoneCoreSettingsStore.m index b08f62311..dab9ae09b 100644 --- a/Classes/LinphoneCoreSettingsStore.m +++ b/Classes/LinphoneCoreSettingsStore.m @@ -632,7 +632,7 @@ goto bad_proxy; - LinphoneAddress *linphoneAddress = linphone_core_interpret_url(LC, "sip:user@domain.com"); + LinphoneAddress *linphoneAddress = linphone_address_clone(linphone_account_params_get_identity_address(linphone_account_get_params(account))); linphone_address_set_username(linphoneAddress, username.UTF8String); if ([LinphoneManager.instance lpConfigBoolForKey:@"use_phone_number" inSection:@"assistant"]) { char *user = linphone_account_normalize_phone_number(account, username.UTF8String);