ejabberd - Comments for "how to enable mod_offline so that users get messages after signing on again after being offline for an hour?" https://www.ejabberd.im/node/5437 en rai.ehtisham wrote: Does https://www.ejabberd.im/node/5437#comment-66572 <div class="quote-msg"> <div class="quote-author"><em>rai.ehtisham</em> wrote:</div> <p>Does mod_muc offer offline storage now?<br /> I am using Pidgin and Android client for testing and when using muc, offline messages are stored and delivered on the other side. </p></div> <p>No new features in that field. Maybe what you see is mod_mam, which supports rooms now.</p> <div class="quote-msg"> <div class="quote-author"><em>rai.ehtisham</em> wrote:</div> <p>Also, is there a way of saving room participants in a persistent storage i.e. riak|odbc</p></div> <p>mod_muc can be configured to use mnesia or odbc. But the participant list is short-lived data, which is kept only in RAM, not in a persistent database. So no, not possible.</p> <p>Maybe it helps the ejabberd command get_room_occupants, that you can call using shell, XMLRPC or REST queries.</p> Mon, 15 Feb 2016 14:23:29 +0000 badlop comment 66572 at https://www.ejabberd.im Does mod_muc offer offline https://www.ejabberd.im/node/5437#comment-66570 <p>Does mod_muc offer offline storage now?<br /> I am using Pidgin and Android client for testing and when using muc, offline messages are stored and delivered on the other side.</p> <p>Also, is there a way of saving room participants in a persistent storage i.e. riak|odbc</p> Fri, 12 Feb 2016 14:24:07 +0000 rai.ehtisham comment 66570 at https://www.ejabberd.im For developers: Maybe this is https://www.ejabberd.im/node/5437#comment-58705 <p>For developers:<br /> Maybe this is relevant: <a href="http://www.ejabberd.im/node/5448" title="http://www.ejabberd.im/node/5448">http://www.ejabberd.im/node/5448</a><br /> The error seems to be the same.</p> Wed, 23 May 2012 23:45:02 +0000 mikekaganski comment 58705 at https://www.ejabberd.im Thank you for all of https://www.ejabberd.im/node/5437#comment-58703 <p>Thank you for all of that.</p> <p>Here is what I just found in my debugging, so this seems to be related to mySQL. </p> <p>=ERROR REPORT==== 2012-05-23 09:05:03 ===<br /> E(&lt;0.810.0&gt;:ejabberd_hooks:335) : {badarg,<br /> [{erlang,phash,[{1337,789103,32224},0]},<br /> {ejabberd_odbc_sup,get_random_pid,1},<br /> {ejabberd_odbc,sql_call,2},<br /> {mod_offline_odbc,pop_offline_messages,3},<br /> {ejabberd_hooks,run_fold1,4},<br /> {ejabberd_c2s,resend_offline_messages,1},<br /> {ejabberd_c2s,presence_update,3},<br /> {ejabberd_c2s,session_established2,2}]}<br /> running hook: {resend_offline_messages_hook,["bryan","domain.com"]}</p> <p>I am going to turn-off "_odbc" and retest &amp; then re-enable "odbc" again shortly.</p> <p>Thanks, Jason</p> Wed, 23 May 2012 16:28:54 +0000 anonymous@domain.tld comment 58703 at https://www.ejabberd.im anonymous@domain.tld wrote: So, https://www.ejabberd.im/node/5437#comment-58700 <div class="quote-msg"> <div class="quote-author"><em>anonymous@domain.tld</em> wrote:</div> <p>So, by the way, I am referring to mod_offline.</p></div> <div class="quote-msg"> <div class="quote-author"><em>anonymous@domain.tld</em> wrote:</div> <p>One thing we lost was that users could come back online &amp; their 8 messages would just pop in for them &amp; they'd be right back on track with their coworkers.</p></div> <p>I was under impression that you are talking about the history of conversation, not about unreceived messages.</p> <p>Note that you haven't described your config options, the steps you performed, nor the expected results and what you see instead.</p> <p>Well, there is (almost) no configuration for mod_offline. I thought I recalled that it depends on mod_private, but it is false memory, it does not, I even have checked the source to be sure. So, you enable it in ejabberd.cfg, and it should "just work".</p> <p>E.g., my config <a href="http://www.ejabberd.im/node/3661#comment-54984">here</a> uses it, and is working.<br /> While it is not _odbc, the _odbc version should work just the same way. The only trouble I can think of is there could be the required table missing...<br /> HTH</p> <div class="quote-msg"> <div class="quote-author"><em>anonymous@domain.tld</em> wrote:</div> <p>(this is latest stable on top of latest stable centOS &amp; mySQL, by the way)</p></div> <p>This is not a good way to identify the versions. You imply that the answerer should go to CentOS and MySQL homes to find out their current state. Also, it doesn't help to others later when someone having a similar problem would like to know what versions are discussed here. Will it be easy to say which versions are referred here, in a year or two?</p> Tue, 22 May 2012 22:18:32 +0000 mikekaganski comment 58700 at https://www.ejabberd.im So, by the way, I am https://www.ejabberd.im/node/5437#comment-58699 <p>So, by the way, I am referring to mod_offline. </p> <p>I appreciate the important clarification. And, yes, I do want to enable mod_archive next, but for today, I need to enable mod_offline. </p> <p>I have searched but not found a step by step for mod_offline. I tried enabling it on my own &amp; am not doing it right. I have run the daemon in debug mode to watch its output there but haven't stumbled on the correct debug output to know what is wrong. I would be most appreciative of any one who can send me a snippet of working configuration for mod_offline. Thank you so much.</p> <p>(this is latest stable on top of latest stable centOS &amp; mySQL, by the way)</p> <p>Cheers, Jason</p> Tue, 22 May 2012 20:48:28 +0000 anonymous@domain.tld comment 58699 at https://www.ejabberd.im Hi, you seem to misunderstand https://www.ejabberd.im/node/5437#comment-58642 <p>Hi,</p> <p>you seem to misunderstand the mod_offline purpose. It is used only for storing those messages that arrive while a user is offline, for delayed delivery.</p> <p>I beleive that it is <noindex><a href="http://xmpp.org/extensions/xep-0136.html" rel="nofollow" >XEP-0136</a></noindex> that you seek to setup; the <a href="http://www.ejabberd.im/mod_archive">mod_archive</a> is used for this in ejabberd.</p> Thu, 10 May 2012 21:42:36 +0000 mikekaganski comment 58642 at https://www.ejabberd.im