Skip to content
Snippets Groups Projects
Commit 4c6514e5 authored by Mohamed Chibani's avatar Mohamed Chibani Committed by Sébastien Blin
Browse files

sip-regitration: fix expiration time max limit

The current registration expired max limit was set too low. The max
limit as per RFC-3261 is ((2**32)-1). Since this is a user setting,
it's best to give control to the user. However, a max limit set to
1 week should be reasonable.

Gitlab: #532

Change-Id: I61b05de2adbbb177ac2e83d85e7f72ab42347554
parent e4a9307e
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ Item {
// AdvancedConnectivitySettings
property string connectivity: qsTr("Connectivity")
property string autoRegistration: qsTr("Auto Registration After Expired")
property string registrationTimeOut: qsTr("Registration expire timeout (seconds)")
property string registrationExpirationTime: qsTr("Registration expiration time (seconds)")
property string networkInterface: qsTr("Network interface")
property string useUPnP: qsTr("Use UPnP")
property string useTURN: qsTr("Use TURN")
......@@ -252,7 +252,7 @@ Item {
property string setAPassword: qsTr("Set password")
property string changeCurrentPassword: qsTr("Change current password")
property string tipBackupAccount: qsTr("Backup account to a .gz file")
property string tipAdvancedSettingsDisplay: qsTr("Display or hide advanced settings")
property string tipAdvancedSettingsDisplay: qsTr("Display or hide advanced settings")
property string enableAccount: qsTr("Enable account")
// NameRegistrationDialog
......
......@@ -890,7 +890,7 @@ SettingsAdapter::negotiationTimeoutSpinBoxValueChanged(int value)
}
void
SettingsAdapter::registrationTimeoutSpinBoxValueChanged(int value)
SettingsAdapter::registrationExpirationTimeSpinBoxValueChanged(int value)
{
auto confProps = lrcInstance_->accountModel().getAccountConfig(
lrcInstance_->getCurrentAccountId());
......
......@@ -192,7 +192,7 @@ public:
Q_INVOKABLE void customPortSIPSpinBoxValueChanged(int value);
Q_INVOKABLE void negotiationTimeoutSpinBoxValueChanged(int value);
Q_INVOKABLE void registrationTimeoutSpinBoxValueChanged(int value);
Q_INVOKABLE void registrationExpirationTimeSpinBoxValueChanged(int value);
Q_INVOKABLE void networkInterfaceSpinBoxValueChanged(int value);
Q_INVOKABLE void audioRTPMinPortSpinBoxEditFinished(int value);
Q_INVOKABLE void audioRTPMaxPortSpinBoxEditFinished(int value);
......
......@@ -81,13 +81,13 @@ ColumnLayout {
id: registrationExpireTimeoutSpinBox
visible: isSIP
title: JamiStrings.registrationTimeOut
title: JamiStrings.registrationExpirationTime
itemWidth: root.itemWidth
bottomValue: 0
topValue: 3000
topValue: 7*24*3600
step: 1
onNewValue: SettingsAdapter.registrationTimeoutSpinBoxValueChanged(valueField)
onNewValue: SettingsAdapter.registrationExpirationTimeSpinBoxValueChanged(valueField)
}
SettingSpinBox {
......@@ -97,7 +97,7 @@ ColumnLayout {
title: JamiStrings.networkInterface
itemWidth: root.itemWidth
bottomValue: 0
topValue: 65536
topValue: 65535
step: 1
onNewValue: SettingsAdapter.networkInterfaceSpinBoxValueChanged(valueField)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment