How to get the Status(Online/Offline/Away etc.) of a given user name?

Hi All
I am working on ejabber-1.1.4 with odbc(mysql) support. Now i want to know the status(Online/Offline/Away etc.) of a given user name?

I have gone through the ejabberd-1.1.4 schema, but i don't find any exact attribute defined. Is there any information available in the schema itself? or how can i query the info using some administration mechanism ?

Thanks in Advance
PC Varma.

How I can call mod_xmlrpc to

How I can call mod_xmlrpc to get presence(offline or online and resource) from Java modules(i mean using java code)?

How I can call mod_xmlrpc to get presence(offline or online)...

How I can call mod_xmlrpc to get presence(offline or online) using java code?

Example API calls

This information is not stored in a database, it's kept in memory.

ejabberd 2.0.0 implements some new API functions, for example:

> ejabberd_sm:get_user_resources("bob", "localhost").
["work", "home", "mobile"]
> ejabberd_c2s:get_presence(ejabberd_sm:get_session_pid("bob", "localhost", "home")).
{"bob","home","xa","Extended away"}
Syndicate content