bbb-lti: Parameters not required for the integration are not send to BBB

This commit is contained in:
jfederico 2016-08-22 17:22:00 -04:00
parent e1b9ff3ed6
commit 6e4ea31268
2 changed files with 10 additions and 4 deletions

View File

@ -198,7 +198,7 @@ class BigbluebuttonService {
private String getCreateURL(String name, String meetingID, String attendeePW, String moderatorPW, String welcome, Integer voiceBridge, String logoutURL, String record, Integer duration, String meta ) {
voiceBridge = ( voiceBridge == null || voiceBridge == 0 )? 70000 + new Random(System.currentTimeMillis()).nextInt(10000): voiceBridge;
String url = bbbProxy.getCreateURL(name, meetingID, attendeePW, moderatorPW, welcome, "", voiceBridge.toString(), "", logoutURL, "", record, duration.toString(), meta );
String url = bbbProxy.getCreateURL(name, meetingID, attendeePW, moderatorPW, welcome, null, voiceBridge.toString(), null, logoutURL, null, record, duration.toString(), meta );
return url;
}

View File

@ -79,10 +79,16 @@ public class Proxy {
url += "&attendeePW=" + attendeePW;
url += "&welcome=" + getStringEncoded(welcome);
url += "&logoutURL=" + getStringEncoded(logoutURL);
url += "&maxParticipants=" + maxParticipants;
url += "&voiceBridge=" + voiceBridge;
url += "&dialNumber=" + dialNumber;
url += "&webVoice=" + webVoice;
if ( maxParticipants != null ) {
url += "&maxParticipants=" + maxParticipants;
}
if ( dialNumber != null ) {
url += "&dialNumber=" + dialNumber;
}
if ( webVoice != null ) {
url += "&webVoice=" + webVoice;
}
url += "&record=" + record;
url += "&duration=" + duration;
url += "&" + meta;