mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Fix registration expiration that was set on publish and not on register.
This commit is contained in:
parent
02e0253241
commit
1d4c3f2518
1 changed files with 5 additions and 2 deletions
|
|
@ -149,7 +149,8 @@ QVariantMap AccountSettingsModel::getAccountDescription (const shared_ptr<linpho
|
|||
: QString("");
|
||||
|
||||
map["serverAddress"] = Utils::coreStringToAppString(accountParams->getServerAddress()->asString());
|
||||
map["registrationDuration"] = accountParams->getPublishExpires();
|
||||
map["registrationDuration"] = accountParams->getExpires();
|
||||
map["publishDuration"] = accountParams->getPublishExpires();
|
||||
|
||||
if( map["serverAddress"].toString().toUpper().contains("TRANSPORT="))// transport has been specified : let the RFC select the transport
|
||||
map["transport"] = LinphoneEnums::toString(LinphoneEnums::fromLinphone(accountParams->getTransport()));
|
||||
|
|
@ -317,7 +318,9 @@ bool AccountSettingsModel::addOrUpdateAccount(
|
|||
}
|
||||
|
||||
if(data.contains("registrationDuration"))
|
||||
accountParams->setPublishExpires(data["registrationDuration"].toInt());
|
||||
accountParams->setExpires(data["registrationDuration"].toInt());
|
||||
if(data.contains("publishDuration"))
|
||||
accountParams->setPublishExpires(data["publishDuration"].toInt());
|
||||
if(data.contains("route")) {
|
||||
std::list<std::shared_ptr<linphone::Address>> routes;
|
||||
routes.push_back(Utils::interpretUrl(data["route"].toString()));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue