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

View File

@ -128,6 +128,10 @@ defaultMeetingDuration=0
# ending the meeting # ending the meeting
maxInactivityTimeoutMinutes=120 maxInactivityTimeoutMinutes=120
# Number of minutes to logout client if user
# isn't responsive
clientLogoutTimerInMinutes=0
# Send warning to moderators to warn that # Send warning to moderators to warn that
# meeting would be ended due to inactivity # meeting would be ended due to inactivity
warnMinutesBeforeMax=5 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="meetingExpireIfNoUserJoinedInMinutes" value="${meetingExpireIfNoUserJoinedInMinutes}"/>
<property name="meetingExpireWhenLastUserLeftInMinutes" value="${meetingExpireWhenLastUserLeftInMinutes}"/> <property name="meetingExpireWhenLastUserLeftInMinutes" value="${meetingExpireWhenLastUserLeftInMinutes}"/>
<property name="maxPresentationFileUpload" value="${maxFileSizeUpload}"/> <property name="maxPresentationFileUpload" value="${maxFileSizeUpload}"/>
<property name="clientLogoutTimerInMinutes" value="${clientLogoutTimerInMinutes}"/>
</bean> </bean>
<import resource="doc-conversion.xml"/> <import resource="doc-conversion.xml"/>