Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Get the Presence and Status of the users present in the Roster.
Avatar
jaya #1
User title: Software Enginner
Member since Mar 2009 · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: Presence and Status
Hello

  Below is the error i am getting when i am trying to find the presence and status of the user.

  1. <presence to="jaya@ctlc150/Matrix" from="admin" type="error" xmlns="jabber:client">
  2.  <error code="404" type="cancel">
  3.     <remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  4.  </error>
  5. </presence>

I am Using Matrix, Please any one can help me urgent.

Thanks
Jaya
Jaya
This post was edited on 2009-03-12, 07:22 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
this is a server to server (s2s) error. Your server is not able to talk to another federated server.
Check your server setup

Alex
Avatar
jaya #3
User title: Software Enginner
Member since Mar 2009 · 5 posts
Group memberships: Members
Show profile · Link to this post
I reinstalled and changed the server setup, now i can able to talk to another server.

But the problem is it is always showing offline for all the users, but the messages are transfering .

So can you suggest me how can i get the presence of all the users who ever is in online , etc......


Jaya
Jaya
Avatar
Alex #4
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you can get the presence only of users which are on your contact list and you are subscribed to.
So make sure that they are all on your roster and you have subscription, then you will get all the presences in the OnPresence event handler.

Alex
Avatar
[gja] #5
Member since Jul 2009 · 19 posts
Group memberships: Members
Show profile · Link to this post
Subject: subscription clarification
hello there,

i just want to clarify on how subscription work..

my understanding of subscription is, if i send subscription request and they approved it..then you are now subscribed to..by then, you are now see if the user is online..am i correct?

tnx
Avatar
Alex #6
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
correct, but subscription must be mutual, so both users must send and accept a request to see each others presence.

Alex
Avatar
[gja] #7
Member since Jul 2009 · 19 posts
Group memberships: Members
Show profile · Link to this post
thank you sir, for your reply

ahh,just what i had noticed in the miniclient example..that if i add contact1 and he/she approved it ..contact1 should also add me and need my approval..is it what you mean mutual subscription?

tnx
glen
Avatar
Alex #8
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by [gja:
]
ahh,just what i had noticed in the miniclient example..that if i add contact1 and he/she approved it ..contact1 should also add me and need my approval..is it what you mean mutual subscription?

yes
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