Merge pull request #4836 from ritzalam/fix-client-logout-timer

- make client logout timer configurable in bigbluebutton.properties
This commit is contained in:
Richard Alam 2017-12-15 19:39:10 -05:00 committed by GitHub
commit 52e5587a7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 3 deletions

View File

@ -88,6 +88,7 @@ public class ParamsProcessorUtil {
private Long maxPresentationFileUpload = 30000000L; // 30MB
private Integer maxInactivityTimeoutMinutes = 120;
private Integer clientLogoutTimerInMinutes = 0;
private Integer warnMinutesBeforeMax = 5;
private Integer meetingExpireIfNoUserJoinedInMinutes = 5;
private Integer meetingExpireWhenLastUserLeftInMinutes = 1;
@ -353,7 +354,7 @@ public class ParamsProcessorUtil {
boolean record = processRecordMeeting(params.get("record"));
int maxUsers = processMaxUser(params.get("maxParticipants"));
int meetingDuration = processMeetingDuration(params.get("duration"));
int logoutTimer = processMeetingDuration(params.get("logoutTimer"));
int logoutTimer = processLogoutTimer(params.get("logoutTimer"));
// Banner parameters
String bannerText = params.get("bannerText");
@ -658,6 +659,18 @@ public class ParamsProcessorUtil {
return mDuration;
}
public int processLogoutTimer(String logoutTimer) {
int mDuration = clientLogoutTimerInMinutes;
try {
mDuration = Integer.parseInt(logoutTimer);
} catch(Exception ex) {
mDuration = clientLogoutTimerInMinutes;
}
return mDuration;
}
public boolean isTestMeeting(String telVoice) {
return ((! StringUtils.isEmpty(telVoice)) &&
(! StringUtils.isEmpty(testVoiceBridge)) &&
@ -896,6 +909,10 @@ public class ParamsProcessorUtil {
maxInactivityTimeoutMinutes = value;
}
public void setClientLogoutTimerInMinutes(Integer value) {
clientLogoutTimerInMinutes = value;
}
public void setWarnMinutesBeforeMax(Integer value) {
warnMinutesBeforeMax = value;
}

View File

@ -128,6 +128,10 @@ defaultMeetingDuration=0
# ending the meeting
maxInactivityTimeoutMinutes=120
# Number of minutes to logout client if user
# isn't responsive
clientLogoutTimerInMinutes=0
# Send warning to moderators to warn that
# meeting would be ended due to inactivity
warnMinutesBeforeMax=5

View File

@ -139,6 +139,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<property name="meetingExpireIfNoUserJoinedInMinutes" value="${meetingExpireIfNoUserJoinedInMinutes}"/>
<property name="meetingExpireWhenLastUserLeftInMinutes" value="${meetingExpireWhenLastUserLeftInMinutes}"/>
<property name="maxPresentationFileUpload" value="${maxFileSizeUpload}"/>
<property name="clientLogoutTimerInMinutes" value="${clientLogoutTimerInMinutes}"/>
</bean>
<import resource="doc-conversion.xml"/>