From ee2e1827b7db18f8f58835c2947cdc69f6966288 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 31 Aug 2016 11:18:19 +0200 Subject: [PATCH] assistant: handle migration --- Classes/LinphoneManager.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 278ebe64b..f42d2225d 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -305,11 +305,13 @@ struct codec_name_pref_table codec_pref_table[] = {{"speex", 8000, "speex_8k_pre [self migratePushNotificationPerAccount]; // migrate xmlrpc URL if needed - if ([[self lpConfigStringForKey:@"xmlrpc_url" inSection:@"assistant"] containsSubstring:@"sip3.linphone.org"]) { - LOGI(@"Migrating xmlrpc url"); + if ([self lpConfigBoolForKey:@"migration_xmlrpc"] == NO) { [self lpConfigSetString:@"https://subscribe.linphone.org:444/wizard.php" forKey:@"xmlrpc_url" inSection:@"assistant"]; + [self lpConfigSetString:@"sip:rls@sip.linphone.org" forKey:@"rls_uri" inSection:@"sip"]; + [self lpConfigSetBool:YES forKey:@"use_rls_presence" inSection:@"sip"]; + [self lpConfigSetBool:YES forKey:@"migration_xmlrpc"]; } }