aboutsummaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
authorSebastien Vincent <seb@jitsi.org>2010-12-15 17:07:27 +0000
committerSebastien Vincent <seb@jitsi.org>2010-12-15 17:07:27 +0000
commit8a23901ba4e2554f11fc47c8ad3500e92e5e773f (patch)
tree31b3fd6636da3e2c339cdb53a617c1bbedfa2a15 /src/net
parent27bee30679e74ca19469e33ac740696f090fa53f (diff)
downloadjitsi-8a23901ba4e2554f11fc47c8ad3500e92e5e773f.zip
jitsi-8a23901ba4e2554f11fc47c8ad3500e92e5e773f.tar.gz
jitsi-8a23901ba4e2554f11fc47c8ad3500e92e5e773f.tar.bz2
Use only the username part of the JID for TURN credentials.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java4
1 files changed, 3 insertions, 1 deletions
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 7fbe90b..1760a12 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.*;
import org.ice4j.ice.*;
import org.ice4j.ice.harvest.*;
import org.ice4j.security.*;
+
import org.xmpp.jnodes.smack.*;
/**
@@ -111,7 +112,8 @@ public class IceUdpTransportManager
{
//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);