[jdev] Get Last Activity for myself
Marcus Frenkel
Marcus.Frenkel.3hug4c at no-mx.jabberforum.org
Sat Oct 25 10:58:58 CDT 2008
Hi,
I'm developing a jabber client. I'm testing it's functionality against
ejabberd server.
According to what I understand about Last Activity (XEP-0012), the last
activity table on the server should contain results only for the bare
JID, there are no separate records for all JID resources.
When a user logs in I would like to get his last activity status
message. As you know, the last activity status is set via the presence
packet of type="unavailable" along with the status message, when a user
disconnects. I'm unable to get the last activity, the server doesn't
returns the last activity of myself, it returns "<error code="405"
type="cancel"> instead. The IQ that I send:
<iq from='myself at host/resource' to='myself at jhost' type='get' > <query
xmlns='jabber:iq:last'/></iq>
or
<iq from='myself at host' to='myself at jhost' type='get' > <query
xmlns='jabber:iq:last'/></iq>
What I need is when a user connects from another computer to be able to
get his last activity set by his previous connection.
Thanks for any input,
Marcus
--
Marcus Frenkel
------------------------------------------------------------------------
Marcus Frenkel's Profile: http://www.jabberforum.org/member.php?userid=17304
View this thread: http://www.jabberforum.org/showthread.php?t=980
More information about the JDev
mailing list