AnsweredAssumed Answered

Last Activity for all users on ejabberd

Question asked by Vilpesh on Jul 6, 2015

Hello Friends,

 

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.

 

I have 10 user accounts on our server. viz john@myserver.in, mike@myserver.in, jerry@myserver.in etc.

 

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 john@myserver.in, he will have to log in.

If i log in as john@myserver.in, then i successfully get last activity for john@myserver.in. With john logged in, if i retrieve last activities for mike@myserver.in, jerry@myserver.in or any other user, i get service-unavailable response for ejabberd server.

 

<iq from='mike@myserver.in/Smack' to='john@myserver.in/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 ?

 

thanks

Vilpesh

Outcomes