diff --git a/Classes/Base.lproj/CallView.xib b/Classes/Base.lproj/CallView.xib index 48a7d6ed2..d0533b320 100644 --- a/Classes/Base.lproj/CallView.xib +++ b/Classes/Base.lproj/CallView.xib @@ -122,8 +122,8 @@ - - + + @@ -251,7 +251,7 @@ - + @@ -717,7 +717,7 @@ - + @@ -844,11 +844,11 @@ - - + + - + @@ -860,7 +860,7 @@ - + @@ -870,7 +870,7 @@ - + @@ -880,7 +880,7 @@ - + @@ -890,7 +890,7 @@ - + @@ -900,7 +900,7 @@ - + @@ -910,7 +910,7 @@ - + @@ -920,7 +920,7 @@ - + @@ -930,7 +930,7 @@ - + @@ -940,7 +940,7 @@ - + @@ -950,7 +950,7 @@ - + @@ -960,7 +960,7 @@ - + diff --git a/Classes/Base.lproj/CallView~ipad.xib b/Classes/Base.lproj/CallView~ipad.xib index 9f7c4b5c6..6ac9ee283 100644 --- a/Classes/Base.lproj/CallView~ipad.xib +++ b/Classes/Base.lproj/CallView~ipad.xib @@ -843,11 +843,11 @@ - + - + @@ -859,7 +859,7 @@ - + @@ -869,7 +869,7 @@ - + @@ -879,7 +879,7 @@ - + @@ -889,7 +889,7 @@ - + @@ -899,7 +899,7 @@ - + @@ -909,7 +909,7 @@ - + @@ -919,7 +919,7 @@ - + @@ -929,7 +929,7 @@ - + @@ -939,7 +939,7 @@ - + @@ -949,7 +949,7 @@ - + @@ -959,7 +959,7 @@ - + diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 3e176ba86..43535c922 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1433,6 +1433,23 @@ static BOOL libStarted = FALSE; [Log enableLogs:[self lpConfigIntForKey:@"debugenable_preference"]]; connectivity = none; + // Set audio assets + NSString *ring = + ([LinphoneManager bundleFile:[self lpConfigStringForKey:@"local_ring" inSection:@"sound"].lastPathComponent] + ?: [LinphoneManager bundleFile:@"notes_of_the_optimistic.caf"]) + .lastPathComponent; + NSString *ringback = + ([LinphoneManager bundleFile:[self lpConfigStringForKey:@"remote_ring" inSection:@"sound"].lastPathComponent] + ?: [LinphoneManager bundleFile:@"ringback.wav"]) + .lastPathComponent; + NSString *hold = + ([LinphoneManager bundleFile:[self lpConfigStringForKey:@"hold_music" inSection:@"sound"].lastPathComponent] + ?: [LinphoneManager bundleFile:@"hold.mkv"]) + .lastPathComponent; + [self lpConfigSetString:[LinphoneManager bundleFile:ring] forKey:@"local_ring" inSection:@"sound"]; + [self lpConfigSetString:[LinphoneManager bundleFile:ringback] forKey:@"remote_ring" inSection:@"sound"]; + [self lpConfigSetString:[LinphoneManager bundleFile:hold] forKey:@"hold_music" inSection:@"sound"]; + theLinphoneCore = linphone_core_new_with_config(&linphonec_vtable, _configDb, (__bridge void *)(self)); LOGI(@"Create linphonecore %p", theLinphoneCore); @@ -1446,26 +1463,6 @@ static BOOL libStarted = FALSE; libmswebrtc_init(f); linphone_core_reload_ms_plugins(theLinphoneCore, NULL); - // Set audio assets - NSString *ring = - ([LinphoneManager - bundleFile:[NSString stringWithUTF8String:linphone_core_get_ring(theLinphoneCore) ?: ""].lastPathComponent] - ?: [LinphoneManager bundleFile:@"notes_of_the_optimistic.caf"]) - .lastPathComponent; - NSString *ringback = - ([LinphoneManager bundleFile:[NSString stringWithUTF8String:linphone_core_get_ringback(theLinphoneCore) ?: ""] - .lastPathComponent] - ?: [LinphoneManager bundleFile:@"ringback.wav"]) - .lastPathComponent; - NSString *hold = - ([LinphoneManager bundleFile:[NSString stringWithUTF8String:linphone_core_get_play_file(theLinphoneCore) ?: ""] - .lastPathComponent] - ?: [LinphoneManager bundleFile:@"hold.mkv"]) - .lastPathComponent; - linphone_core_set_ring(theLinphoneCore, [LinphoneManager bundleFile:ring].UTF8String); - linphone_core_set_ringback(theLinphoneCore, [LinphoneManager bundleFile:ringback].UTF8String); - linphone_core_set_play_file(theLinphoneCore, [LinphoneManager bundleFile:hold].UTF8String); - /* set the CA file no matter what, since the remote provisioning could be hitting an HTTPS server */ linphone_core_set_root_ca(theLinphoneCore, [LinphoneManager bundleFile:@"rootca.pem"].UTF8String); linphone_core_set_user_certificates_path(theLinphoneCore, [LinphoneManager cacheDirectory].UTF8String); diff --git a/TestsUI/ChatTester.m b/TestsUI/ChatTester.m index b0fbd0243..2f1d238ca 100644 --- a/TestsUI/ChatTester.m +++ b/TestsUI/ChatTester.m @@ -63,7 +63,7 @@ } - (void)sendMessage:(NSString *)message { - [tester enterText:message intoViewWithAccessibilityLabel:@"Message field"]; + [tester enterText:message.uppercaseString intoViewWithAccessibilityLabel:@"Message field"]; [tester tapViewWithAccessibilityLabel:@"Send"]; } diff --git a/linphone-Info.plist b/linphone-Info.plist index db412f6aa..7aa534d3c 100644 --- a/linphone-Info.plist +++ b/linphone-Info.plist @@ -53,7 +53,7 @@ CFBundleVersion - 7 + 8 LSRequiresIPhoneOS UIApplicationExitsOnSuspend