mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-26 02:58:34 +00:00
migration of lime configuration
This commit is contained in:
parent
8b8164d1d8
commit
434d1ff26c
6 changed files with 23 additions and 9 deletions
|
|
@ -173,7 +173,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
||||||
|
|
||||||
}
|
}
|
||||||
- (void)loadAssistantConfig:(NSString *)rcFilename {
|
- (void)loadAssistantConfig:(NSString *)rcFilename {
|
||||||
linphone_config_load_from_xml_file(linphone_core_get_config(LC),
|
linphone_core_load_config_from_xml(LC,
|
||||||
[LinphoneManager bundleFile:rcFilename].UTF8String);
|
[LinphoneManager bundleFile:rcFilename].UTF8String);
|
||||||
[self changeView:nextView back:FALSE animation:TRUE];
|
[self changeView:nextView back:FALSE animation:TRUE];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -331,6 +331,7 @@ struct codec_name_pref_table codec_pref_table[] = {{"speex", 8000, "speex_8k_pre
|
||||||
- (void)migrationAllPost {
|
- (void)migrationAllPost {
|
||||||
[self migrationLinphoneSettings];
|
[self migrationLinphoneSettings];
|
||||||
[self migratePushNotificationPerAccount];
|
[self migratePushNotificationPerAccount];
|
||||||
|
[self migrateLimeSettings];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)migrationAllPre {
|
- (void)migrationAllPre {
|
||||||
|
|
@ -475,6 +476,20 @@ static void migrateWizardToAssistant(const char *entry, void *user_data) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)migrateLimeSettings {
|
||||||
|
if ([self lpConfigBoolForKey:@"lime_migration_done"] == FALSE) {
|
||||||
|
const MSList *proxies = linphone_core_get_proxy_config_list(LC);
|
||||||
|
while (proxies) {
|
||||||
|
if (!strcmp(linphone_proxy_config_get_domain((LinphoneProxyConfig *)proxies->data),"sip.linphone.org")) {
|
||||||
|
linphone_core_set_lime_x3dh_server_url(LC, "https://lime.linphone.org/lime-server/lime-server.php");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
proxies = proxies->next;
|
||||||
|
}
|
||||||
|
[self lpConfigSetBool:TRUE forKey:@"lime_migration_done"];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#pragma mark - Linphone Core Functions
|
#pragma mark - Linphone Core Functions
|
||||||
|
|
||||||
+ (LinphoneCore *)getLc {
|
+ (LinphoneCore *)getLc {
|
||||||
|
|
|
||||||
|
|
@ -36,4 +36,7 @@
|
||||||
<entry name="username_min_length" overwrite="true">1</entry>
|
<entry name="username_min_length" overwrite="true">1</entry>
|
||||||
<entry name="username_regex" overwrite="true">^[a-z0-9+_.\-]*$</entry>
|
<entry name="username_regex" overwrite="true">^[a-z0-9+_.\-]*$</entry>
|
||||||
</section>
|
</section>
|
||||||
|
<section name="lime">
|
||||||
|
<entry name="lime_server_url" overwrite="true">https://lime.linphone.org/lime-server/lime-server.php</entry>
|
||||||
|
</section>
|
||||||
</config>
|
</config>
|
||||||
|
|
|
||||||
|
|
@ -37,4 +37,7 @@
|
||||||
<entry name="username_regex" overwrite="true">^[a-z0-9+_.\-]*$</entry>
|
<entry name="username_regex" overwrite="true">^[a-z0-9+_.\-]*$</entry>
|
||||||
<entry name="xmlrpc_url" overwrite="true">https://subscribe.linphone.org:444/wizard.php</entry>
|
<entry name="xmlrpc_url" overwrite="true">https://subscribe.linphone.org:444/wizard.php</entry>
|
||||||
</section>
|
</section>
|
||||||
|
<section name="lime">
|
||||||
|
<entry name="lime_server_url" overwrite="true">https://lime.linphone.org/lime-server/lime-server.php</entry>
|
||||||
|
</section>
|
||||||
</config>
|
</config>
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ voiceproc_preference=1
|
||||||
repeat_call_notification=1
|
repeat_call_notification=1
|
||||||
display_phone_only=0
|
display_phone_only=0
|
||||||
auto_download_incoming_files_max_size=0
|
auto_download_incoming_files_max_size=0
|
||||||
|
lime_migration_done=0
|
||||||
|
|
||||||
[in_app_purchase]
|
[in_app_purchase]
|
||||||
#set to 1 if in-app purchases are to be shown in the application
|
#set to 1 if in-app purchases are to be shown in the application
|
||||||
|
|
|
||||||
|
|
@ -58,11 +58,3 @@ ringer_dev_id=AQ: Audio Queue Device
|
||||||
[video]
|
[video]
|
||||||
display_filter_auto_rotate=0
|
display_filter_auto_rotate=0
|
||||||
|
|
||||||
[lime]
|
|
||||||
lime_v2=1
|
|
||||||
lime_server_url=https://lime.linphone.org/lime-server/lime-server.php
|
|
||||||
lime_update_threshold=86400
|
|
||||||
#lime_update_threshold=30
|
|
||||||
max_nb_device_per_participant=255
|
|
||||||
allow_message_in_unsafe_chatroom=1
|
|
||||||
unsafe_if_sas_refused=0
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue