Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
St3v3 #1
Member since Oct 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: Error Connecting to lightwitch.org
Hello and thank you.
I'm using your ConsoleClient sample program and changed to:
XmppClientConnection xmppCon = new XmppClientConnection("lightwitch.org");

Google talk works fine. And I can log into lightwitch.org from an Android client (Xabber). Here is the xml stream. I must be missing something:
Enter you Jid (user@server.com):
XXXXXXXX@lightwitch.org
Enter password for 'XXXXXXXX@lightwitch.org':
YYYYYYYY

  1. Send: <stream:stream to='lightwitch.org' xmlns='jabber:client' xmlns:stream='htt
  2. p://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
  3. Recv: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xml:lang="e
  4. n" id="f250656a-e188-4c71-a338-494dddf0c1a5" from="lightwitch.org" version="1.0"
  5.  >
  6. Recv: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><starttls
  7.  xmlns="urn:ietf:params:xml:ns:xmpp-tls" /><mechanisms xmlns="urn:ietf:params:xm
  8. l:ns:xmpp-sasl"><mechanism>SCRAM-SHA-1</mechanism></mechanisms></stream:features
  9. >
  10. Send: <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  11. Recv: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  12. Send: <stream:stream to='lightwitch.org' xmlns='jabber:client' xmlns:stream='htt
  13. p://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
  14. Recv: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xml:lang="e
  15. n" id="0c91bbe8-3c79-41d8-9662-0c1cda1b7d99" from="lightwitch.org" version="1.0"
  16.  >
  17. Recv: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><mechanis
  18. ms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>SCRAM-SHA-1</mechanism><m
  19. echanism>PLAIN</mechanism></mechanisms></stream:features>
  20. Send: <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">XXX</auth>
  21. Recv: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />
  22. Send: <stream:stream to='lightwitch.org' xmlns='jabber:client' xmlns:stream='htt
  23. p://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
  24. Recv: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xml:lang="e
  25. n" id="357c3b1c-8322-4955-9f0f-9843ee16b17f" from="lightwitch.org" version="1.0"
  26.  >
  27. Recv: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><ver xmln
  28. s="urn:xmpp:features:rosterver" /><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"
  29. ><required /></bind><session xmlns="urn:ietf:params:xml:ns:xmpp-session"><option
  30. al /></session><c xmlns="http://jabber.org/protocol/caps" node="http://lightwitc
  31. h.org/metronome" ver="P9PJszr3/Ggzh4twC5j/sbMCktM=" hash="sha-1" /></stream:feat
  32. ures>
  33. Send: <iq id="agsXMPP_1" type="set" to="lightwitch.org"><bind xmlns="urn:ietf:pa
  34. rams:xml:ns:xmpp-bind"><resource>agsXMPP</resource></bind></iq>
  35. Recv: <iq xmlns="jabber:client" id="agsXMPP_1" type="error" from="lightwitch.org
  36. "><error type="cancel"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-s
  37. tanzas" /></error></iq>
This post was edited 2 times, last on 2013-10-16, 16:31 by Alex.
Edit reason: fixed code formatting, please format you code properly in upcoming posts.
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I guess you are not running the latest code. Please checkout the latest binaries or sources, or use MatriX. This bind problem should be fixed since a while. You are using a fork of the Prosody XMPP serve which does not like the to attribute on the bind request.
Avatar
St3v3 #3
Member since Oct 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
Hello Alex
I am using agsXMPP.dll dated 11/6/2008 which is the newest I could find in your downloads.
Is there something else I could do to get this working?
thanks
St3v3
Avatar
Alex #4
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
On the download pager here:
http://www.ag-software.net/agsxmpp-sdk/download/

there is a link to the sources, and there is a link to the latest binaries.

Alex
Avatar
St3v3 #5
Member since Oct 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
Ahh, yes now I see the link to the latest binaries and that does indeed fix the problem.
Vielen Dank!
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS