We have following installed on our server.
ejabberd Community Server (eCS)
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.
The behaviour of ejabberd is that to know last activity of a user, that user has to log in. I mean to check last activity of firstname.lastname@example.org, he will have to log in.
If i log in as email@example.com, then i successfully get last activity for firstname.lastname@example.org. With john logged in, if i retrieve last activities for email@example.com, firstname.lastname@example.org or any other user, i get service-unavailable response for ejabberd server.
<iq email@example.com/Smack' firstname.lastname@example.org/Smack' type='error' id='uHoJn-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 ?