Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
shantheepan #1
Member since Sep 2011 · 15 posts · Location: Sri Lanka
Group memberships: Members
Show profile · Link to this post
Subject: How to find Binding Error?
Hi,

When I log in to open fire server using agsXmpp, my connection state is stopped on Binding. That is because of the same user already logged in and open fire server setting as "Allow one login attempt - If there is a resource conflict, report an error one time but don't kick the existing connection." and I'm receiving following XML from open fire server

  1. <iq xmlns="jabber:client" to="santheepan-pc" id="agsXMPP_1" type="error">
  2.    <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
  3.       <resource>InstantMessageClient</resource>
  4.    </bind>
  5.    <error type="cancel" code="409">
  6.       <conflict xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  7.    </error>
  8. </iq>


How can I catch this error message and pass to user...

thanking you
This post was edited on 2015-07-09, 18:14 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Bin errors are currently not handled, because we have not seen a problem with this yet.

in SaslHandler.cs
  1. else if (iq.Type == IqType.error)
  2. {
  3.    // TODO, handle bind errors
  4. }

I can add an OnBindError event when this help you.

Alex
Avatar
Alex #3
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I have added a OnBindError event. The latest code is in SVN and a new binary is uploaded.

Alex
Avatar
shantheepan #4
Member since Sep 2011 · 15 posts · Location: Sri Lanka
Group memberships: Members
Show profile · Link to this post
In reply to post #2
Thank you for your quick reply. Since I not going to edit original code of you(it's very large to me) I hope that I'll get svn update as soon as possible...

Thank you very much...
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