I have integrated ejabberd in my site with JWCHAT as client. In my site serveral users will login and i have changed functionality, that on first login users get registered in ejabberd server and can start chat.
I want to know how to know a user is registered or not?.Suppose if a user is login to site first time and due to some reason he not get registered to ejabberd server,then I need to test and regsiter him in the server on the second time.
Can anyone please help me.
Thanks in advance
Kiran
You can easily know which
You can easily know which user is registered by using the web admin interface. Also, you can access this information while your are logged in on your jabber server with your administrator account, by browsing the services of your server and chosing the one that allows you to check all the registered users.
Automated way using mod_xmlrpc or ejabberd_ctl patch
If you want an automated way to check this using XML-RPC calls, you can install mod_xmlrpc in ejabberd. It provides calls for that.
If you want an automated way to check this using the system shell, you can apply this patch to ejabberd 2.0.5:
And then you can get that information with:
In ejabberd 2.1.0 and higher those modules will be replaced with ejabberd_xmlrpc, mod_admin_extra. Also mod_rest can be used to support HTTP POST calls.