Commit 4f4a8556 authored by Thiago Camargo's avatar Thiago Camargo Committed by thiago

Resources Usage

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6809 b35dd754-fafc-0310-a699-88a17e54d16e
parent ccecf102
......@@ -81,9 +81,7 @@
<body>
<p>
The media proxy enables clients to make rich media (including VoIP) connections to one another
when peer to peer connections fail, such as when one or both clients are behind a
strict firewall.<br>
<fmt:message key="mediaproxy.desc" /><br>
</p>
<% if (success) { %>
......@@ -94,7 +92,7 @@
<tr>
<td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" alt="Success"
border="0"></td>
<td class="jive-icon-label">Settings updated successfully.</td>
<td class="jive-icon-label"><fmt:message key="mediaproxy.settings.success" /></td>
</tr>
</tbody>
</table>
......@@ -105,7 +103,7 @@
<form action="media-proxy.jsp" method="post">
<div class="jive-contentBoxHeader">
Media Proxy Settings
<fmt:message key="mediaproxy.form.label" />
</div>
<div class="jive-contentBox">
<table cellpadding="3" cellspacing="0" border="0">
......@@ -117,34 +115,33 @@
</td>
<td width="99%">
<label for="rb02">
<b>Enabled</b>
- This server will act as a media proxy.
<b><fmt:message key="mediaproxy.form.enabled" /></b>
- <fmt:message key="mediaproxy.form.enabled.desc" />
</label>
<br>
<table>
<tr>
<td>Session Idle Timeout (in seconds):&nbsp;
<td><fmt:message key="mediaproxy.form.idletimeout" />:&nbsp;
</td>
<td>
<input type="text" size="5" maxlength="8"
name="idleTimeout"
value="<%=mediaProxyService.getIdleTime()/1000%>"
align="left"> &nbsp;<i>This value is usually bigger than 15 seconds.</i>
align="left"> &nbsp;<i><fmt:message key="mediaproxy.form.idletimeout.tip" /></i>
</td>
</tr>
<tr>
<td>Session Life Time (in seconds):&nbsp;
<td><fmt:message key="mediaproxy.form.lifetime" />:&nbsp;
</td>
<td>
<input type="text" size="5" maxlength="8"
name="lifetime"
value="<%=mediaProxyService.getLifetime()%>"
align="left"> &nbsp;<i>Life Time is the maximum time that a Session can
lives. After this time it is destroyed, even if it stills active.</i>
align="left"> &nbsp;<i><fmt:message key="mediaproxy.form.lifetime.tip" /></i>
</td>
</tr>
<tr>
<td>Port Range Min:&nbsp;
<td><fmt:message key="mediaproxy.form.minport" />:&nbsp;
</td>
<td>
<input type="text" size="7" maxlength="20" name="minport"
......@@ -152,7 +149,7 @@
</td>
</tr>
<tr>
<td> Port Range Max:&nbsp;
<td><fmt:message key="mediaproxy.form.maxport" />:&nbsp;
</td>
<td>
<input type="text" size="7" maxlength="20" name="maxport"
......@@ -173,8 +170,8 @@
</td>
<td width="99%">
<label for="rb01">
<b>Disabled</b>
- This server will not act as a media proxy.
<b><fmt:message key="mediaproxy.form.disabled" /></b>
- <fmt:message key="mediaproxy.form.disabled.desc" />
</label>
</td>
</tr>
......@@ -187,9 +184,8 @@
<% if (mediaProxyService.isEnabled()) { %>
<p>
<b>Active Sessions Summary</b><br>
Sessions are Media Proxy Channels that controls packet relaying.
The list below shows current sessions running and which user created the channel.
<b><fmt:message key="mediaproxy.summary.label" /></b><br>
<fmt:message key="mediaproxy.summary.desc" />
</p>
<div class="jive-table">
......@@ -197,12 +193,12 @@
<thead>
<tr>
<th>&nbsp;</th>
<th nowrap align="left" valign="middle">Creator</th>
<th nowrap align="left" valign="middle">Port A</th>
<th nowrap align="left" valign="middle">Port B</th>
<th nowrap align="left" valign="middle">Server</th>
<th nowrap align="left" valign="middle">Inactivity(secs)</th>
<th nowrap align="left" valign="middle">Type</th>
<th nowrap align="left" valign="middle"><fmt:message key="mediaproxy.summary.session.creator" /></th>
<th nowrap align="left" valign="middle"><fmt:message key="mediaproxy.summary.session.port" /> A</th>
<th nowrap align="left" valign="middle"><fmt:message key="mediaproxy.summary.session.port" /> B</th>
<th nowrap align="left" valign="middle"><fmt:message key="mediaproxy.summary.session.server" /></th>
<th nowrap align="left" valign="middle"><fmt:message key="mediaproxy.summary.session.inactivity" /></th>
<th nowrap align="left" valign="middle"><fmt:message key="mediaproxy.summary.session.type" /></th>
</tr>
</thead>
<tbody>
......@@ -213,7 +209,7 @@
%>
<tr>
<td align="center" colspan="7">
No active Agents
<fmt:message key="mediaproxy.summary.session.noactive" />
</td>
</tr>
......@@ -257,7 +253,7 @@
</tbody>
</table>
<form action="">
<input type="submit" name="stop" value="Stop Active Sessions"/>
<input type="submit" name="stop" value="<fmt:message key="mediaproxy.summary.stopbutton" />"/>
</form>
</div>
......
......@@ -14,6 +14,9 @@
<%@ page import="java.net.InetAddress" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<script type="text/javascript">
function checkAndSubmit() {
......@@ -26,11 +29,11 @@
var msg = "";
if (ip1 == ip2) {
msg += "* The selected IP values are not valid. Please select different IPs.";
msg += "<fmt:message key="stun.settings.alert.notvalidip" />";
}
if (port1 == port2) {
if (msg != "") msg += "\n";
msg += "* The selected port numbers are not valid. Please select different port numbers."
msg += "<fmt:message key="stun.settings.alert.notvalidip" />";
}
if (msg == "") {
......@@ -83,14 +86,13 @@
%>
<html>
<head>
<title>STUN Server Settings</title>
<title><fmt:message key="stun.settings.title" /></title>
<meta name="pageID" content="stun-settings"/>
</head>
<body>
<p>
Use the form below to manage STUN Server settings.<br>
A STUN need at least two different IPs in the same machine to run and two different port numbers on each IP.
<fmt:message key="stun.settings.desc" />
</p>
<% if (success) { %>
......@@ -101,7 +103,7 @@
<tr>
<td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16"
border="0" alt="Success"></td>
<td class="jive-icon-label">Settings updated successfully.</td>
<td class="jive-icon-label"><fmt:message key="stun.settings.success" /></td>
</tr>
</tbody>
</table>
......@@ -116,8 +118,7 @@
<tr>
<td class="jive-icon"><img src="images/error-16x16.gif" width="16" height="16"
border="0"></td>
<td class="jive-icon-label">Server cannot started. Check your port
numbers and Primary and Secondary addresses.
<td class="jive-icon-label"><fmt:message key="stun.settings.error" />
</td>
</tr>
</tbody>
......@@ -129,17 +130,17 @@
<form action="" method="post" name="settings">
<div class="jive-contentBoxHeader">
STUN Server Settings
<fmt:message key="stun.settings.title" />
</div>
<div class="jive-contentBox">
<p>
The settings will just take effects after savings settings.
<fmt:message key="stun.settings.comment" />
</p>
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tbody>
<tr>
<td align="left">Primary Address:&nbsp<select size="1"
<td align="left"><fmt:message key="stun.settings.primaryaddress" />:&nbsp<select size="1"
maxlength="100"
name="primaryAddress"
align="left">
......@@ -161,8 +162,7 @@
</td>
</tr>
<tr>
<td align="left"> Secondary
Address:&nbsp<select size="1"
<td align="left"> <fmt:message key="stun.settings.secondaryaddress" />:&nbsp<select size="1"
maxlength="100"
name="secondaryAddress"
align="left">
......@@ -181,7 +181,7 @@
</td>
</tr>
<tr>
<td align="left">Primary Port Value:&nbsp<input type="text" size="20"
<td align="left"> <fmt:message key="stun.settings.primaryport" />:&nbsp<input type="text" size="20"
maxlength="100"
name="primaryPort"
value="<%=stunService.getPrimaryPort()%>"
......@@ -189,7 +189,7 @@
</td>
</tr>
<tr>
<td align="left">Secondary Port Value:&nbsp<input type="text" size="20"
<td align="left"><fmt:message key="stun.settings.secondaryport" />:&nbsp<input type="text" size="20"
maxlength="100"
name="secondaryPort"
value="<%=stunService.getSecondaryPort()%>"
......@@ -197,7 +197,7 @@
</td>
</tr>
<tr>
<td align="left">Enabled:&nbsp<input type="checkbox"
<td align="left"><fmt:message key="stun.settings.enabled" />:&nbsp<input type="checkbox"
name="enabled"
<%=stunService.isEnabled()?"checked":""%>
align="left">
......@@ -207,7 +207,7 @@
</table>
</div>
<input type="hidden" name="save">
<input type="button" name="set" value="Change" onclick="checkAndSubmit()">
<input type="button" name="set" value="<fmt:message key="stun.settings.change" />" onclick="checkAndSubmit()">
</form>
</body>
</html>
\ No newline at end of file
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