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='[EMAIL PROTECTED]/resource'  to='[EMAIL PROTECTED]' type='get' >  
<query
xmlns='jabber:iq:last'/></iq>
or
<iq from='[EMAIL PROTECTED]'  to='[EMAIL PROTECTED]' 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

_______________________________________________
JDev mailing list
FAQ: http://www.jabber.org/discussion-lists/jdev-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [EMAIL PROTECTED]
_______________________________________________

Reply via email to