mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
File transfer migration
This commit is contained in:
parent
908e4d77ad
commit
1f96259c16
3 changed files with 25 additions and 3 deletions
|
|
@ -29,7 +29,7 @@
|
|||
<entry name="protocols" overwrite="true">stun,ice</entry>
|
||||
</section>
|
||||
<section name="misc">
|
||||
<entry name="file_transfer_server_url" overwrite="true">https://www.linphone.org:444/lft.php</entry>
|
||||
<entry name="file_transfer_server_url" overwrite="true">https://files.linphone.org/http-file-transfer-server/hft.php</entry>
|
||||
</section>
|
||||
<section name="sip">
|
||||
<entry name="rls_uri" overwrite="true">sips:rls@sip.linphone.org</entry>
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
<entry name="protocols" overwrite="true">stun,ice</entry>
|
||||
</section>
|
||||
<section name="misc">
|
||||
<entry name="file_transfer_server_url" overwrite="true">https://www.linphone.org:444/lft.php</entry>
|
||||
<entry name="file_transfer_server_url" overwrite="true">https://files.linphone.org/http-file-transfer-server/hft.php</entry>
|
||||
</section>
|
||||
<section name="sip">
|
||||
<entry name="rls_uri" overwrite="true">sips:rls@sip.linphone.org</entry>
|
||||
|
|
|
|||
|
|
@ -320,6 +320,21 @@ void CoreManager::migrate () {
|
|||
shared_ptr<linphone::Config> config = mCore->getConfig();
|
||||
auto oldLimeServerUrl = mCore->getLimeX3DhServerUrl();// core url is deprecated : If core url exists, it must be copied to all linphone accounts.
|
||||
int rcVersion = config->getInt(SettingsModel::UiSection, Constants::RcVersionName, 0);
|
||||
if (rcVersion >= 7) {// Update old factories data
|
||||
// From v7, RetiredUploadLogsServer should never be used. Replace it if found.
|
||||
auto logServer = mCore->getLogCollectionUploadServerUrl();
|
||||
if ( logServer == Constants::RetiredUploadLogsServer) {
|
||||
mCore->setLogCollectionUploadServerUrl(Constants::DefaultUploadLogsServer);
|
||||
qInfo() << "Migrating overall from v7 : replacing old Log URL" << Utils::coreStringToAppString(logServer);
|
||||
}
|
||||
auto fileServer = mCore->getFileTransferServer();
|
||||
if (fileServer == Constants::RetiredUploadLogsServer){
|
||||
mCore->setFileTransferServer(Constants::DefaultUploadLogsServer);
|
||||
qInfo() << "Migrating overall from v7 : replacing old File transfer URL" << Utils::coreStringToAppString(fileServer);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if( !oldLimeServerUrl.empty()) {
|
||||
mCore->setLimeX3DhServerUrl("");
|
||||
mCore->enableLimeX3Dh(true);
|
||||
|
|
@ -386,7 +401,14 @@ void CoreManager::migrate () {
|
|||
if (logServer.empty() || logServer == Constants::RetiredUploadLogsServer) {
|
||||
mCore->setLogCollectionUploadServerUrl(Constants::DefaultUploadLogsServer);
|
||||
qInfo() << "Migrating" << accountIdentity
|
||||
<< "for version 7. Setting Log collection upload server rul to: "
|
||||
<< "for version 7. Setting Log collection upload server url to: "
|
||||
<< Constants::DefaultUploadLogsServer;
|
||||
}
|
||||
auto fileServer = mCore->getFileTransferServer();
|
||||
if (fileServer.empty() || fileServer == Constants::RetiredUploadLogsServer) {
|
||||
mCore->setFileTransferServer(Constants::DefaultUploadLogsServer);
|
||||
qInfo() << "Migrating" << accountIdentity
|
||||
<< "for version 7. Setting File transfer upload server url to: "
|
||||
<< Constants::DefaultUploadLogsServer;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue