Subject: BOSH connection problem
Hi, this is my first post, so greetings to all!!!
I'm using the last version of .NET Matrix.
We have a Tigase Server that works fine with bosh connection from IM clients like InstanBird or other mobile apps, but when I execute next function, the connection closed after 10 seconds approx.
If I don´t use bosh, the connection haven't any problem, works fine.
Events from init to end connection:
XML Log:
What is wrong in my source code?...
Thank you in advance for your time.
I'm using the last version of .NET Matrix.
We have a Tigase Server that works fine with bosh connection from IM clients like InstanBird or other mobile apps, but when I execute next function, the connection closed after 10 seconds approx.
- private void Connect()
- {
- xmppClient.SetUsername(_cue_ID.ToString());
- xmppClient.SetXmppDomain("im.xxxxx.com");
- xmppClient.Password = "pass";
- xmppClient.Status = "Ready";
- xmppClient.Transport = Matrix.Net.Transport.BOSH;
- xmppClient.Show = Matrix.Xmpp.Show.chat;
- xmppClient.StartTls = false;
- xmppClient.KeepAliveInterval = 60;
- xmppClient.AutoReplyToPing = true;
- xmppClient.Open();
- }
If I don´t use bosh, the connection haven't any problem, works fine.
Events from init to end connection:
OnLogin
OnBind
OnIq
OnIq
OnRosterItem xxxxxx
OnRosterItem xxxxxx
OnRosterItem xxxxxx
OnRosterEnd
OnIq
OnPresence xxxxx
OnError
OnClose
OnError
OnBind
OnIq
OnIq
OnRosterItem xxxxxx
OnRosterItem xxxxxx
OnRosterItem xxxxxx
OnRosterEnd
OnIq
OnPresence xxxxx
OnError
OnClose
OnError
XML Log:
- SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="im.xxxxxx.com" version="1.0" >
- RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="im.xxxxxx.com" version="1.0" id="af790ae1-0f37-4972-95ff-d57eb385ad26" >
- RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
- <ver xmlns="urn:xmpp:features:rosterver" />
- <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
- <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
- <mechanism>PLAIN</mechanism>
- <mechanism>ANONYMOUS</mechanism>
- </mechanisms>
- <register xmlns="http://jabber.org/features/iq-register" />
- <auth xmlns="http://jabber.org/features/iq-auth" />
- </stream:features>
- SEND: <auth mechanism="PLAIN" xmlns="urn:ietf:params:xml:ns:xmpp-sasl">ADEwMDAwMDA0AFIzZ2lzdHIw</auth>
- RECV: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />
- SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="im.xxxxxx.com" version="1.0" >
- RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="im.xxxxxx.com" version="1.0" id="af790ae1-0f37-4972-95ff-d57eb385ad26" >
- RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
- <ver xmlns="urn:xmpp:features:rosterver" />
- <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
- <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
- <register xmlns="http://jabber.org/features/iq-register" />
- <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" />
- </stream:features>
- SEND: <iq id="MX_1" type="set" xmlns="jabber:client">
- <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
- <resource>MatriX</resource>
- </bind>
- </iq>
- RECV: <iq type="result" xmlns="jabber:client" id="MX_1" to="10000004@im.xxxxxx.com/MatriX">
- <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
- <jid>10000004@im.xxxxxx.com/MatriX</jid>
- </bind>
- </iq>
- SEND: <iq id="MX_2" type="set" xmlns="jabber:client">
- <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
- </iq>
- RECV: <iq type="result" xmlns="jabber:client" id="MX_2" to="10000004@im.xxxxxx.com/MatriX" />
- SEND: <iq id="MX_3" type="get" xmlns="jabber:client">
- <query xmlns="jabber:iq:roster" />
- </iq>
- RECV: <iq type="result" xmlns="jabber:client" id="MX_3" to="10000004@im.xxxxxx.com/MatriX">
- <query xmlns="jabber:iq:roster">
- <item jid="almacen@im.xxxxxx.com" subscription="none" ask="subscribe" name="" />
- <item jid="santipg@im.xxxxxx.com" subscription="from" name="santipg" />
- <item jid="uno@im.xxxxxx.com" subscription="from" name="uno" />
- </query>
- </iq>
- SEND: <presence xmlns="jabber:client">
- <show>chat</show
- <status>Preparado para chatear</status>
- <priority>0</priority>
- </presence>
- RECV: <presence xmlns="jabber:client" from="10000004@im.xxxxxx.com/MatriX" to="10000004@im.xxxxxx.com">
- <show>chat</show>
- <status>Preparado para chatear</status>
- <priority>0</priority>
- </presence>
- SEND: </stream:stream>
What is wrong in my source code?...
Thank you in advance for your time.