From 8a23901ba4e2554f11fc47c8ad3500e92e5e773f Mon Sep 17 00:00:00 2001 From: Sebastien Vincent Date: Wed, 15 Dec 2010 17:07:27 +0000 Subject: [PATCH] Use only the username part of the JID for TURN credentials. --- .../impl/protocol/jabber/IceUdpTransportManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java b/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java index 7fbe90b97..1760a1209 100644 --- a/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java +++ b/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java @@ -21,6 +21,7 @@ import org.ice4j.ice.*; import org.ice4j.ice.harvest.*; import org.ice4j.security.*; + import org.xmpp.jnodes.smack.*; /** @@ -111,7 +112,8 @@ private Agent createIceAgent() { //the default server is supposed to use the same user name and //password as the account itself. - String username = provider.getOurJID(); + String username = org.jivesoftware.smack.util.StringUtils.parseName( + provider.getOurJID()); String password = JabberActivator.getProtocolProviderFactory().loadPassword( accID);