Not logged in. · Lost password · Register
Forum: MatriX RSS
Connection problems.
Avatar
mtranda #1
Member since Oct 2011 · 7 posts
Group memberships: Members
Show profile · Link to this post
Subject: Matrix with WLM
So the problem is my connection gets closed as soon as I do a client.Open(); No other events get called, including onBeforeSasl or onLogin. Currently I retrieve the token through their web login but the token doesn't get requested (as it does not reach onBeforeSasl). I have successfully integrated facebook login quite a long time ago, along with other services that requre classic XMPP login so this problem is beyond my understanding.

As requested, here's the XML:

<stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="messenger.live.com" version="1.0" id="104477" xmlns="jabber:client" >
<stream:features xmlns:stream="http://etherx.jabber.org/streams">
  <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls">
    <required />
  </starttls>
</stream:features>
<proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="messenger.live.com" version="1.0" id="104478" xmlns="jabber:client" >
<stream:error xmlns:stream="http://etherx.jabber.org/streams">
  <see-other-host xmlns="urn:ietf:params:xml:ns:xmpp-streams">BAYMSG1020225.gateway.edge.messenger.live.com</see-other-host>
</stream:error>
</stream:stream>
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
With the April server update Microsoft introduced this new behavior.

  1. <stream:error xmlns:stream="http://etherx.jabber.org/streams">
  2.  <see-other-host xmlns="urn:ietf:params:xml:ns:xmpp-streams">BAYMSG1020225.gateway.edge.messenger.live.com</see-other-host>
  3. </stream:error>

its sending this error message to redirect you to another server. This seems to be thier way of load balancing 8-(.
if you get this error you have to read the new host BAYMSG1020225.gateway.edge.messenger.live.com and set a global flag for redirect.
Then disable SRV resolving ad set this host as hostname and reconnect after the OnClose to this host. After the second connect everything works like before the server update.

I have attached an example. You need the latest binary to run this example from here:
http://www.ag-software.net/download-directory/

Alex
The author has attached one file to this post:
WindowsLiveMessengerExample.zip 9.8 kBytes
You have no permission to open this file.
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: MatriX RSS