Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
Huntsman #1
Member since Apr 2016 · 42 posts
Group memberships: Members
Show profile · Link to this post
Subject: Auto reply to user
Hello Alex Sir,

First, Thank you so much for helping me everytime i ask.

Sir i have a problem.

I have created a simple login, Entering in room and Auto chat (Using AIML) bot using agsxmpp.dll

but i have lil problem.. When someone send this xml to my bot. my bot will auto respond to that user and got disconnect without showing anything in XML console.

That XML is
  1. <iq to="MyBotID@server.com/resource" type="set" id="asdsad">
  2. <query xmlns="http://jabber.org/protocol/disco#info" node="http://jabber.org/protocol/commands">
  3. <x xmlns="http://etherx.jabber.org/streams" id="asdasdasd" version="1.0" xml:lang="en" />
  4. </query>
  5. </iq>


If someone send this xml to bot id. Bot id will automatically send a XML

  1. <iq type="error" id="asdsad" from="target@server.com/resource" to="MyBotID@server.com/resource">
  2. <query xmlns="http://jabber.org/protocol/disco#info" node="http://jabber.org/protocol/commands">
  3. <x xmlns="http://etherx.jabber.org/streams" id="asdasdasd" version="1.0" xml:lang="en" />
  4. </query>
  5. <error code="503" type="cancel">
  6. <service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  7. </error>
  8. </iq>

I want to disable this Auto respond but i don't know from where i can disable. A jabber client 'Sawim' have this function. If i send this xml to Sawim user then i didn't get any respond from that id. Sawim will not auto respond

Please help me to disable this auto respond.
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Those are disco info queries.
Possible that you have setup a discoManager or IqHandler which replies automatically to them.
But when someone is sending you a disco request you have tio reply to it. Even if oyu just reply with an error and a not supported error message.

your first xml stanza looks broken with the <x/> tag in the http://etherx.jabber.org/streams namespace
Avatar
Huntsman #3
Member since Apr 2016 · 42 posts
Group memberships: Members
Show profile · Link to this post
Sir
IqHandler is not recieving that discoinfo XML. I don't want to reply that discoinfo request because of some issues. Can you please tell me how to disable this using DiscoManager because i don't know too much about AgsXmpp.dll

Please sir.

Thank you.
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Have you checked if your code is using the DiscoManager?
The DiscoManager can automatically reply to those request.

If its not coming from the Discomanager thne I have no idea whats creating the reply. I would suggest then to debug your code including agsXMPP step by step.

Also, please upgrade to MatriX or MatriX vNext, agsXMPP is retired since many years.
Avatar
Huntsman #5
Member since Apr 2016 · 42 posts
Group memberships: Members
Show profile · Link to this post
Thank you sir.
The problem was fixed and one more thing, AgsXMPP is retired but this is one of your best projects.

Thank you alex sir for always helping me.  :-)  :-)  :-)
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