Commit b9a477d5 authored by Thiago Camargo's avatar Thiago Camargo Committed by thiago

Default value is true and Debug removed

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6810 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4f4a8556
...@@ -45,7 +45,7 @@ public class MediaProxyService extends BasicModule ...@@ -45,7 +45,7 @@ public class MediaProxyService extends BasicModule
private PacketRouter router; private PacketRouter router;
private MediaProxy mediaProxy = null; private MediaProxy mediaProxy = null;
private boolean enabled = false; private boolean enabled = true;
public static final String NAMESPACE = "http://www.jivesoftware.com/protocol/rtpbridge"; public static final String NAMESPACE = "http://www.jivesoftware.com/protocol/rtpbridge";
...@@ -101,7 +101,6 @@ public class MediaProxyService extends BasicModule ...@@ -101,7 +101,6 @@ public class MediaProxyService extends BasicModule
public void process(Packet packet) throws UnauthorizedException, PacketException { public void process(Packet packet) throws UnauthorizedException, PacketException {
// Check if user is allowed to send packet to this service // Check if user is allowed to send packet to this service
Log.debug("TEST");
if (packet instanceof IQ) { if (packet instanceof IQ) {
// Handle disco packets // Handle disco packets
IQ iq = (IQ) packet; IQ iq = (IQ) packet;
...@@ -119,9 +118,6 @@ public class MediaProxyService extends BasicModule ...@@ -119,9 +118,6 @@ public class MediaProxyService extends BasicModule
String namespace = childElement.getNamespaceURI(); String namespace = childElement.getNamespaceURI();
Element childElementCopy = iq.getChildElement().createCopy(); Element childElementCopy = iq.getChildElement().createCopy();
reply.setChildElement(childElementCopy); reply.setChildElement(childElementCopy);
if (Log.isDebugEnabled()) {
Log.debug("RECEIVED:" + iq.toXML());
}
if ("http://jabber.org/protocol/disco#info".equals(namespace)) { if ("http://jabber.org/protocol/disco#info".equals(namespace)) {
reply = XMPPServer.getInstance().getIQDiscoInfoHandler().handleIQ(iq); reply = XMPPServer.getInstance().getIQDiscoInfoHandler().handleIQ(iq);
...@@ -158,7 +154,6 @@ public class MediaProxyService extends BasicModule ...@@ -158,7 +154,6 @@ public class MediaProxyService extends BasicModule
Attribute pass = candidateElement.attribute("pass"); Attribute pass = candidateElement.attribute("pass");
if (pass != null && pass.getValue().trim().equals(session.getPass().trim())) { if (pass != null && pass.getValue().trim().equals(session.getPass().trim())) {
Log.debug("RIGHT PASS");
Attribute portA = candidateElement.attribute("porta"); Attribute portA = candidateElement.attribute("porta");
Attribute portB = candidateElement.attribute("portb"); Attribute portB = candidateElement.attribute("portb");
Attribute hostA = candidateElement.attribute("hosta"); Attribute hostA = candidateElement.attribute("hosta");
......
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