Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
ayyrk #1
Member since Jul 2007 · 92 posts
Group memberships: Members, Premium
Show profile · Link to this post
Subject: Custom IQ
Hi,

Is it true that I have to send my presence before others can send me an IQ?

I ask because when I try connecting and sending an IQ to a bot the bot gets an error sending an IQ back to me unless I have first sent my presence..

Thanks!

Ayyrk
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
IQs go always to full Jids.  When you don't send your presence then other users don't know your resource because it comes with the presence packets. If you don't hardcode your resource then the presence is required.

Alex
Avatar
ayyrk #3
Member since Jul 2007 · 92 posts
Group memberships: Members, Premium
Show profile · Link to this post
Thanks - I do have the book you recommended and try figuring such things out but I know you'll always answer too! Thanks Alex.
Avatar
ayyrk #4
Member since Jul 2007 · 92 posts
Group memberships: Members, Premium
Show profile · Link to this post
It does't look like OpenFire 3.6.0 is cooperating. I am using the full JID and getting a 503 unless I first send presence.. I will keep digging into this.
Avatar
Alex #5
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
There is nothing in the RFCs which disallows a server the routing of IQs until you sent your initial presence. This is a corner case because your resources should not be predictable. It looks like Openfire allows no routing until you send your presence, I think I have seen this behavior which messages before.
Avatar
ayyrk #6
Member since Jul 2007 · 92 posts
Group memberships: Members, Premium
Show profile · Link to this post
I'm using IQ messages between two 'bots'. It'd be better without the presence traffic. The resources are well known.
Avatar
Alex #7
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I guess you have to bother the Openfire developers to fix this issue then ;-)
Avatar
ayyrk #8
Member since Jul 2007 · 92 posts
Group memberships: Members, Premium
Show profile · Link to this post
XEP-0273  "Hush Presence" is related.

http://xmpp.org/extensions/xep-0273.html#nopresence

I don't see that OpenFire supports it though.
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