We have ejabberd installed on our server.
I am using asmack 4.0.7 to interact with the ejabberd server.
I wish to know last activity (XEP-0012) of all the users.
I have 10 user accounts on our server. viz [email protected], [email protected], [email protected] etc.
The behaviour of ejabberd is that to find last activity of a user, that user has to log in. I mean to check last activity of [email protected], he will have to log in.
If i log in as [email protected], then i successfully get last activity for [email protected]. With john logged in, if i retrieve last activities for [email protected], [email protected] or any other user, i get service-unavailable response for ejabberd server.
<iq from='[email protected]/Smack' to='[email protected]/Smack' type='error' id='uHn-5'>
<query xmlns='jabber:iq:last'/><error code='503' type='cancel'>
<service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error></iq>
My requirement is that to retrieve last activity without making logins for all users.
Is that possible ?
Please let me know if any other information is required for this query.
thanks