Commit 5d1154c5 authored by Dele Olajide's avatar Dele Olajide

Added focus username and password to the admin settings page

Updated Jitsi Videobridge
parent 4b5079da
...@@ -49,6 +49,13 @@ ...@@ -49,6 +49,13 @@
Openfire Meetings Plugin Changelog Openfire Meetings Plugin Changelog
</h1> </h1>
<p><b>0.1.4</b> -- March 12th, 2015</p>
<ul>
<li>Added focus username and password to the admin settings page</li>
<li>Updated Jitsi Videobridge</li>
</ul>
<p><b>0.1.3</b> -- Feb 28th, 2015</p> <p><b>0.1.3</b> -- Feb 28th, 2015</p>
<ul> <ul>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<name>Openfire Meetings</name> <name>Openfire Meetings</name>
<description>Provides high quality, scalable video conferences using Jitsi Meet and Jitsi Videobridge</description> <description>Provides high quality, scalable video conferences using Jitsi Meet and Jitsi Videobridge</description>
<author>Ignite Realtime</author> <author>Ignite Realtime</author>
<version>0.1.3</version> <version>0.1.4</version>
<date>02/20/2015</date> <date>02/20/2015</date>
<minServerVersion>3.9.9</minServerVersion> <minServerVersion>3.9.9</minServerVersion>
......
...@@ -70,6 +70,8 @@ config.page.configuration.audiomixer.disabled_description=Audio Mixer disabled ...@@ -70,6 +70,8 @@ config.page.configuration.audiomixer.disabled_description=Audio Mixer disabled
config.page.configuration.record.path=Recording Path config.page.configuration.record.path=Recording Path
config.page.configuration.record.secret=Recording Password/Secret config.page.configuration.record.secret=Recording Password/Secret
config.page.configuration.advanced.features.title=Advanced Features config.page.configuration.advanced.features.title=Advanced Features
config.page.configuration.focus.jid=Focus JID
config.page.configuration.focus.password=Focus Password
ofmeet.conference.summary=Below is an overview of meetings. ofmeet.conference.summary=Below is an overview of meetings.
ofmeet.conference.expired=Conference has been expired. ofmeet.conference.expired=Conference has been expired.
ofmeet.summary.conferences=Total Conferences ofmeet.summary.conferences=Total Conferences
......
...@@ -97,6 +97,8 @@ public final class XMPPServlet extends WebSocketServlet ...@@ -97,6 +97,8 @@ public final class XMPPServlet extends WebSocketServlet
private boolean doWebSocketConnect(HttpServletRequest request, XMPPWebSocket socket) private boolean doWebSocketConnect(HttpServletRequest request, XMPPWebSocket socket)
{ {
try { try {
boolean isExistingSession = false;
String username = URLDecoder.decode( ParamUtils.getParameter(request, "username"), "UTF-8"); String username = URLDecoder.decode( ParamUtils.getParameter(request, "username"), "UTF-8");
String password = URLDecoder.decode( ParamUtils.getParameter(request, "password"), "UTF-8"); String password = URLDecoder.decode( ParamUtils.getParameter(request, "password"), "UTF-8");
String resource = URLDecoder.decode( ParamUtils.getParameter(request, "resource"), "UTF-8"); String resource = URLDecoder.decode( ParamUtils.getParameter(request, "resource"), "UTF-8");
...@@ -115,6 +117,8 @@ public final class XMPPServlet extends WebSocketServlet ...@@ -115,6 +117,8 @@ public final class XMPPServlet extends WebSocketServlet
if (session != null) if (session != null)
{ {
isExistingSession = true;
int conflictLimit = SessionManager.getInstance().getConflictKickLimit(); int conflictLimit = SessionManager.getInstance().getConflictKickLimit();
if (conflictLimit == SessionManager.NEVER_KICK) { if (conflictLimit == SessionManager.NEVER_KICK) {
...@@ -156,6 +160,12 @@ public final class XMPPServlet extends WebSocketServlet ...@@ -156,6 +160,12 @@ public final class XMPPServlet extends WebSocketServlet
{ {
authToken = new AuthToken(resource, true); authToken = new AuthToken(resource, true);
} else {
if (isExistingSession && (password.equals("dummy") || password.equals("reuse")))
{
authToken = new AuthToken(username);
} else { } else {
try { try {
...@@ -194,6 +204,7 @@ public final class XMPPServlet extends WebSocketServlet ...@@ -194,6 +204,7 @@ public final class XMPPServlet extends WebSocketServlet
} }
} }
} }
}
session = SessionManager.getInstance().createClientSession( wsConnection, new BasicStreamID("url" + System.currentTimeMillis())); session = SessionManager.getInstance().createClientSession( wsConnection, new BasicStreamID("url" + System.currentTimeMillis()));
wsConnection.setRouter( new SessionPacketRouter( session ) ); wsConnection.setRouter( new SessionPacketRouter( session ) );
......
...@@ -55,7 +55,7 @@ public class JicofoPlugin ...@@ -55,7 +55,7 @@ public class JicofoPlugin
if (focusUserPassword != null) if (focusUserPassword != null)
{ {
Log.info("JicofoPlugin - using focus " + focusUserJid + ":" + hostName + "/" + focusUserPassword); Log.info("JicofoPlugin - using focus " + focusUserJid + ":" + hostName);
System.setProperty("org.jitsi.videobridge.ofmeet.audio.mixer", JiveGlobals.getProperty("org.jitsi.videobridge.ofmeet.audio.mixer", "false")); System.setProperty("org.jitsi.videobridge.ofmeet.audio.mixer", JiveGlobals.getProperty("org.jitsi.videobridge.ofmeet.audio.mixer", "false"));
......
...@@ -136,6 +136,12 @@ ...@@ -136,6 +136,12 @@
String enablesimulcast = request.getParameter("enablesimulcast"); String enablesimulcast = request.getParameter("enablesimulcast");
JiveGlobals.setProperty("org.jitsi.videobridge.ofmeet.enable.simulcast", enablesimulcast); JiveGlobals.setProperty("org.jitsi.videobridge.ofmeet.enable.simulcast", enablesimulcast);
String focusjid = request.getParameter("focusjid");
JiveGlobals.setProperty("org.jitsi.videobridge.ofmeet.focus.user.jid", focusjid);
String focuspassword = request.getParameter("focuspassword");
JiveGlobals.setProperty("org.jitsi.videobridge.ofmeet.focus.user.password", focuspassword);
} }
%> %>
...@@ -299,6 +305,23 @@ ...@@ -299,6 +305,23 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr>
<td align="left" width="150">
<fmt:message key="config.page.configuration.focus.jid"/>
</td>
<td><input type="text" size="20" maxlength="100" name="focusjid"
value="<%= JiveGlobals.getProperty("org.jitsi.videobridge.ofmeet.focus.user.jid", "focus@" + XMPPServer.getInstance().getServerInfo().getXMPPDomain()) %>">
</td>
</tr>
<tr>
<td align="left" width="150">
<fmt:message key="config.page.configuration.focus.password"/>
</td>
<td><input type="password" size="20" maxlength="100" name="focuspassword"
value="<%= JiveGlobals.getProperty("org.jitsi.videobridge.ofmeet.focus.user.password", "focus-password-" + System.currentTimeMillis()) %>">
</td>
</tr>
<tr> <tr>
<td nowrap colspan="2"> <td nowrap colspan="2">
<input type="radio" value="false" name="securityenabled" <%= ("false".equals(JiveGlobals.getProperty("ofmeet.security.enabled", "true")) ? "checked" : "") %>> <input type="radio" value="false" name="securityenabled" <%= ("false".equals(JiveGlobals.getProperty("ofmeet.security.enabled", "true")) ? "checked" : "") %>>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment