How to save users presence to a DB?

Hi,

I have installed ejabberd 2.1.10 on Ubuntu 10.04 64-bit Server
I am setting up XMPPHP (0.1rc2-r77) as a client.

The issue is i want to check all the users( stored in a separate table) status as admin.

I read in another post the presence is not stored anywhere by ejabberd but just in memory.

Is it possible to retrieve it from memory and save it?

You could run connected_users

You could run connected_users command (via ejabberdctl -> to stdout; or using xmlrpc).

Hi, Thanks for the reply. And

Hi, Thanks for the reply.

And Sorry for the confusion, i didnt mean user's connection presence(connection status)
But the Online status(like Idle, Busy, Available, Offline etc.)

How do we get that??

I'm afraid there's no ready

I'm afraid there's no ready solution. If you badly need this, you would need to create a custom module.

Oh ok. I dont think i have

Oh ok.

I dont think i have the technical know-how on developing a custom module.

So, for now, cam you let me know how to check for the connected users (presence) via xmlrpc.
Any sample code?

Thanks.

Syndicate content