diff --git a/linphone-app/assets/assistant/create-app-sip-account.rc b/linphone-app/assets/assistant/create-app-sip-account.rc
index ffa16ce5b..aa5ce41bc 100644
--- a/linphone-app/assets/assistant/create-app-sip-account.rc
+++ b/linphone-app/assets/assistant/create-app-sip-account.rc
@@ -37,4 +37,7 @@
^[a-z0-9+_.\-]*$
https://subscribe.linphone.org:444/wizard.php
+
+ https://lime.linphone.org/lime-server/lime-server.php
+
diff --git a/linphone-app/assets/assistant/use-app-sip-account.rc b/linphone-app/assets/assistant/use-app-sip-account.rc
index f7ec2d67b..b81cd930a 100644
--- a/linphone-app/assets/assistant/use-app-sip-account.rc
+++ b/linphone-app/assets/assistant/use-app-sip-account.rc
@@ -37,4 +37,7 @@
^[a-z0-9+_.\-]*$
https://subscribe.linphone.org:444/wizard.php
+
+ https://lime.linphone.org/lime-server/lime-server.php
+
diff --git a/linphone-app/src/components/core/CoreManager.cpp b/linphone-app/src/components/core/CoreManager.cpp
index 95af9aeeb..13b582671 100644
--- a/linphone-app/src/components/core/CoreManager.cpp
+++ b/linphone-app/src/components/core/CoreManager.cpp
@@ -235,10 +235,8 @@ void CoreManager::createLinphoneCore (const QString &configPath) {
Paths::getFactoryConfigFilePath(),
nullptr
);
- // You only need to give your LIME server URL
- mCore->setLimeX3DhServerUrl("https://lime.linphone.org/lime-server/lime-server.php");
- // and enable LIME on your core to use encryption.
- mCore->enableLimeX3Dh(true);
+ // Enable LIME on your core to use encryption.
+ mCore->enableLimeX3Dh(mCore->getLimeX3DhServerUrl() != "");
// Now see the CoreService.CreateGroupChatRoom to see how to create a secure chat room
mCore->addListener(mHandlers);
@@ -295,6 +293,7 @@ void CoreManager::migrate () {
proxyConfig->done();
}
}*/
+ bool setlimeServerUrl = false;
for(const auto &account : mCore->getAccountList()){
auto params = account->getParams();
if( params->getDomain() == Constants::LinphoneDomain) {
@@ -305,10 +304,16 @@ void CoreManager::migrate () {
}
if( rcVersion < 2) {
newParams->setConferenceFactoryUri(Constants::DefaultConferenceURI);
+ setlimeServerUrl = true;
}
account->setParams(newParams);
}
}
+ if(setlimeServerUrl) {
+ mCore->setLimeX3DhServerUrl(Constants::DefaultLimeServerURL);
+ mCore->enableLimeX3Dh(true);
+ }
+
config->setInt(SettingsModel::UiSection, Constants::RcVersionName, Constants::RcVersionCurrent);
}
diff --git a/linphone-app/src/utils/Constants.cpp b/linphone-app/src/utils/Constants.cpp
index 588dcef08..66583ab5c 100644
--- a/linphone-app/src/utils/Constants.cpp
+++ b/linphone-app/src/utils/Constants.cpp
@@ -61,6 +61,7 @@ constexpr qint64 Constants::FileSizeLimit;
constexpr char Constants::DefaultXmlrpcUri[];
constexpr char Constants::DefaultConferenceURI[];
+constexpr char Constants::DefaultLimeServerURL[];
#if defined(Q_OS_LINUX) || defined(Q_OS_WIN)
diff --git a/linphone-app/src/utils/Constants.hpp b/linphone-app/src/utils/Constants.hpp
index 7ee0255c1..5c8f5883b 100644
--- a/linphone-app/src/utils/Constants.hpp
+++ b/linphone-app/src/utils/Constants.hpp
@@ -62,6 +62,7 @@ public:
static constexpr char DefaultRlsUri[] = "sips:rls@sip.linphone.org";
static constexpr char DefaultLogsEmail[] = "linphone-desktop@belledonne-communications.com";
static constexpr char DefaultConferenceURI[] = "sip:conference-factory@sip.linphone.org";
+ static constexpr char DefaultLimeServerURL[] = "https://lime.linphone.org/lime-server/lime-server.php";
// Max image size in bytes. (100Kb)
diff --git a/linphone-app/ui/views/App/Settings/SettingsCallsChat.qml b/linphone-app/ui/views/App/Settings/SettingsCallsChat.qml
index 557b69c48..754ec9f31 100644
--- a/linphone-app/ui/views/App/Settings/SettingsCallsChat.qml
+++ b/linphone-app/ui/views/App/Settings/SettingsCallsChat.qml
@@ -10,8 +10,8 @@ import App.Styles 1.0
TabContainer {
Column {
- anchors.fill: parent
spacing: SettingsWindowStyle.forms.spacing
+ width: parent.width
Form {
title: qsTr('callsTitle')
@@ -296,7 +296,7 @@ TabContainer {
}
FormLine {
- visible: false // TODO: Use `SettingsModel.limeIsSupported` binding in V2.
+ visible: false // Use SettingsModel.limeIsSupported when we want to control lime
FormGroup {
label: qsTr('encryptWithLimeLabel')