Update lime url on migration for Linphone. Set old core url before migrating account parameters.

Fix OpenSSL deployment on Windows.
Update SDK to 5.2.10
This commit is contained in:
Julien Wadel 2023-01-09 18:07:49 +01:00
parent a52890bdea
commit aa660534ba
5 changed files with 27 additions and 18 deletions

View file

@ -8,7 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Crash at startup
- Update SDK to 5.2.8
- Deploy missing OpenSSL libraries on Windows (fix blank message on image url)
- Update SDK to 5.2.10
## 5.0.4 - 2022-12-28

View file

@ -121,9 +121,13 @@ option(LINPHONE_SDK_MAKE_RELEASE_FILE_URL "Make a RELEASE file that work along c
if(WIN32 OR APPLE)
if(WIN32)
option(ENABLE_OPENSSL_EXPORT "Enable OpenSSL deployment" YES)
elseif(APPLE)
option(ENABLE_OPENSSL_EXPORT "Enable OpenSSL deployment" NO)
else()
option(ENABLE_V4L "Ability to capture and display video using libv4l2 or libv4l." YES)
option(ENABLE_OPENSSL_EXPORT "Enable OpenSSL deployment" NO)
endif()
option(ENABLE_RELATIVE_PREFIX "Set Internal packages relative to the binary" YES)
@ -142,6 +146,7 @@ list(APPEND APP_OPTIONS "-DENABLE_FLEXIAPI=${ENABLE_QRCODE}")
list(APPEND APP_OPTIONS "-DENABLE_LDAP=${ENABLE_LDAP}")
list(APPEND APP_OPTIONS "-DENABLE_NON_FREE_CODECS=${ENABLE_NON_FREE_CODECS}")
list(APPEND APP_OPTIONS "-DENABLE_OPENH264=${ENABLE_OPENH264}")
list(APPEND APP_OPTIONS "-DENABLE_OPENSSL_EXPORT=${ENABLE_OPENSSL_EXPORT}")
list(APPEND APP_OPTIONS "-DENABLE_QRCODE=${ENABLE_QRCODE}")
list(APPEND APP_OPTIONS "-DENABLE_SANITIZER=${ENABLE_SANITIZER}")

View file

@ -1253,12 +1253,14 @@ void ChatRoomModel::onMessagesReceived(const std::shared_ptr<linphone::ChatRoom>
void ChatRoomModel::onNewEvent(const std::shared_ptr<linphone::ChatRoom> & chatRoom, const std::shared_ptr<const linphone::EventLog> & eventLog){
if( eventLog->getType() == linphone::EventLog::Type::ConferenceCallEnded ){
setMissedCallsCount(mMissedCallsCount+1);
}else if( eventLog->getType() == linphone::EventLog::Type::ConferenceCreated ){
emit fullPeerAddressChanged();
if(eventLog){
if( eventLog->getType() == linphone::EventLog::Type::ConferenceCallEnded ){
setMissedCallsCount(mMissedCallsCount+1);
}else if( eventLog->getType() == linphone::EventLog::Type::ConferenceCreated ){
emit fullPeerAddressChanged();
}
updateLastUpdateTime();
}
updateLastUpdateTime();
}
void ChatRoomModel::onChatMessageReceived(const std::shared_ptr<linphone::ChatRoom> & chatRoom, const std::shared_ptr<const linphone::EventLog> & eventLog) {

View file

@ -324,7 +324,10 @@ void CoreManager::migrate () {
qInfo() << QStringLiteral("Migrate from old rc file (%1 to %2).")
.arg(rcVersion).arg(Constants::RcVersionCurrent);
if( !oldLimeServerUrl.empty()) {
mCore->setLimeX3DhServerUrl("");
mCore->enableLimeX3Dh(true);
}
bool setLimeServerUrl = false;
for(const auto &account : getAccountList()){
auto params = account->getParams();
@ -360,19 +363,17 @@ void CoreManager::migrate () {
qInfo() << "Migrating" << accountIdentity << "for version 5. Video conference factory URI" << (exists ? std::string("unchanged") : std::string("= ") +Constants::DefaultVideoConferenceURI).c_str();
// note: using std::string.c_str() to avoid having double quotes in qInfo()
}
if(!oldLimeServerUrl.empty())
newParams->setLimeServerUrl(oldLimeServerUrl);
else if( setLimeServerUrl)
newParams->setLimeServerUrl(Constants::DefaultLimeServerURL);
if(newParams->getLimeServerUrl().empty()){
if(!oldLimeServerUrl.empty())
newParams->setLimeServerUrl(oldLimeServerUrl);
else if( setLimeServerUrl)
newParams->setLimeServerUrl(Constants::DefaultLimeServerURL);
}
account->setParams(newParams);
}
}
if( !oldLimeServerUrl.empty()) {
mCore->setLimeX3DhServerUrl("");
mCore->enableLimeX3Dh(true);
}else if(setLimeServerUrl) {
if( oldLimeServerUrl.empty() && setLimeServerUrl) {
mCore->enableLimeX3Dh(true);
}

@ -1 +1 @@
Subproject commit c50ef261270294c2b87d5abdfdfe5dc0cb841726
Subproject commit e57d22dca56af8ecd9b0ee5b8e072dbdd65d2266