Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

libjingle googletalk client

I've a google talk client based on libjingle and called from android, every time I try to login this is all I get

RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Tue Dec 4 21:38:02 2012
   <?xml version="1.0" encoding="UTF-8"?>
     <stream:stream from="gmail.com" id="A98AA8981D6845B2" version="1.0"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Tue Dec 4 21:38:02 2012
   <stream:features>
     <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls">
       <required/>
     </starttls>
     <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
       <mechanism>
         X-GOOGLE-TOKEN
       </mechanism>
     </mechanisms>
   </stream:features>
SEND >>>>>>>>>>>>>>>>>>>>>>>>>
like image 587
james Avatar asked Dec 09 '25 06:12

james


1 Answers

I do not know if you ever found the answer, but just in case you have not yet (and for others with the same problem)

Looking at the returned stanza, it appears you are trying to communicate with GMail.com. In my experience with LibJingle/XMPP/GoogleTalk, XMPP stanzas need to be sent to: talk.google.com and not gmail.com (or some other Google domain). talk.google.com is Google's XMPP service, and will forward messages to users in the Google Talk desktop application, as well as in browsers.

EDIT: Also, I was looking around the latest LibJingle source code (I am not sure which code you are using), but it appears that they added code to specfically communicate with Google servers. I do not remember exactly which files, but it might be the LibJingle Plus files. If you are looking to do more than just messaging, you might want to look around there.

like image 158
AeroBuffalo Avatar answered Dec 12 '25 05:12

AeroBuffalo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!