<stream:stream to="xmpp.odnoklassniki.ru" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><stream:stream to="odnoklassniki.ru" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0"></stream:stream>
<?xml version="1.0"?><stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" from="odnoklassniki.ru" version="1.0" xml:lang="en"><stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>X-ODKL-API</mechanism><mechanism>X-ODKL-BLOWFISH</mechanism><mechanism>PLAIN</mechanism></mechanisms><auth xmlns='http://jabber.org/features/iq-auth'/></stream:features><proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><?xml version="1.0"?><stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" from="odnoklassniki.ru" version="1.0" xml:lang="en"><stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>X-ODKL-API</mechanism><mechanism>X-ODKL-BLOWFISH</mechanism><mechanism>PLAIN</mechanism></mechanisms><auth xmlns='http://jabber.org/features/iq-auth'/></stream:features>
dmitry@pro:~$ telnet xmpp.odnoklassniki.ru 5222Trying 217.20.145.69...Connected to xmpp.odnoklassniki.ru.Escape character is '^]'.
try this...
it worked for me...try giving the resource name also...i face same problem gioving resource name solved it
ConnectionConfiguration config;config = new ConnectionConfiguration(ip, port, "Smack");config.setSASLAuthenticationEnabled(false);config.setReconnectionAllowed(true);config.setCompressionEnabled(false);config.setDebuggerEnabled(true);connection = new XMPPConnection(config);connection.connect();if (connection.isConnected()) { connection.login(loginName, password);}
| |||
| try to see what is the resource name that is coming....resource name vary from operating system to operating system – Complicated Nov 17 '12 at 12:06 | ||
| what is it resource name? where i can read possible resource names? – Zagorulkin Dmitry Nov 17 '12 at 12:09 | ||
| config = new ConnectionConfiguration(ip, port, "Smack") here "Smack" is the resource name..resource name is the name of chat system we are using...like smack or spark, or skype – Complicated Nov 17 '12 at 12:10 | ||
| u r using smack so that is ur resource name...have u put all the libs correct – Complicated Nov 17 '12 at 12:14 |
联系客服