ejabberd - Comments for "How can I know a user is offline with ejabberd?" https://www.ejabberd.im/node/4825 en fei wrote: Can you show me https://www.ejabberd.im/node/4825#comment-57600 <div class="quote-msg"> <div class="quote-author"><em>fei</em> wrote:</div> <p>Can you show me how to do it through the administrative tools? Do you know any 3rd party tools provide such method as well?</p></div> <p>By executing an ejabberd command in the shell. In this example user1 is connected, and user2 is offline:</p> <pre> $ ejabberdctl user_resources user1 localhost tka1 $ ejabberdctl user_resources user2 localhost $ </pre><p> You can query ejabberd commands using XML-RPC if you install ejabberd_xmlrpc, or using REST if you install mod_rest.</p> Sat, 16 Jul 2011 17:42:49 +0000 mfoss comment 57600 at https://www.ejabberd.im badlop wrote: The presence of https://www.ejabberd.im/node/4825#comment-57578 <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>The presence of a user is private information. Such information is only shared with his contacts (for which the user granted access to his presence).</p> <p>Of course, if you are the server administrator, you can use administrative tools to know the presence of any user in the server.</p></div> <p>Badlop,<br /> I have the similar requirement that I have users registered online, and I need to know the presence status before sending user the chat session otherwise just email. Since the recipient has to accept the subscribe presence in order for me to request status, it's kind of inconvenience for the end user to accept my request. I want to do it automatically on behalf of the users.</p> <p>Can you show me how to do it through the administrative tools? Do you know any 3rd party tools provide such method as well?</p> <p>Thanks very much</p> Sun, 10 Jul 2011 11:14:47 +0000 fei comment 57578 at https://www.ejabberd.im The presence of a user is https://www.ejabberd.im/node/4825#comment-57574 <p>The presence of a user is private information. Such information is only shared with his contacts (for which the user granted access to his presence).</p> <p>Of course, if you are the server administrator, you can use administrative tools to know the presence of any user in the server.</p> Sat, 09 Jul 2011 12:02:14 +0000 mfoss comment 57574 at https://www.ejabberd.im