Use only the username part of the JID for TURN credentials.

cusax-fix
Sebastien Vincent 15 years ago
parent 27bee30679
commit 8a23901ba4

@ -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);

Loading…
Cancel
Save