how to enable mod_offline so that users get messages after signing on again after being offline for an hour?

Hey Hi, All,

Our migration from OpenFire to ejabberd went well. One thing we lost was that users could come back online & their 8 messages would just pop in for them & they'd be right back on track with their coworkers. How to enable mod_offline? And can this be stored in mySQL? And is it advised to store this in mySQL? or is that more trouble that its worth & its best to just use the built-in DB?

Thanks. Jason

Hi, you seem to misunderstand

Hi,

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.

I beleive that it is XEP-0136 that you seek to setup; the mod_archive is used for this in ejabberd.

So, by the way, I am

So, by the way, I am referring to mod_offline.

I appreciate the important clarification. And, yes, I do want to enable mod_archive next, but for today, I need to enable mod_offline.

I have searched but not found a step by step for mod_offline. I tried enabling it on my own & 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.

(this is latest stable on top of latest stable centOS & mySQL, by the way)

Cheers, Jason

anonymous@domain.tld wrote: So,

anonymous@domain.tld wrote:

So, by the way, I am referring to mod_offline.

anonymous@domain.tld wrote:

One thing we lost was that users could come back online & their 8 messages would just pop in for them & they'd be right back on track with their coworkers.

I was under impression that you are talking about the history of conversation, not about unreceived messages.

Note that you haven't described your config options, the steps you performed, nor the expected results and what you see instead.

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".

E.g., my config here uses it, and is working.
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...
HTH

anonymous@domain.tld wrote:

(this is latest stable on top of latest stable centOS & mySQL, by the way)

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?

Thank you for all of

Thank you for all of that.

Here is what I just found in my debugging, so this seems to be related to mySQL.

=ERROR REPORT==== 2012-05-23 09:05:03 ===
E(<0.810.0>:ejabberd_hooks:335) : {badarg,
[{erlang,phash,[{1337,789103,32224},0]},
{ejabberd_odbc_sup,get_random_pid,1},
{ejabberd_odbc,sql_call,2},
{mod_offline_odbc,pop_offline_messages,3},
{ejabberd_hooks,run_fold1,4},
{ejabberd_c2s,resend_offline_messages,1},
{ejabberd_c2s,presence_update,3},
{ejabberd_c2s,session_established2,2}]}
running hook: {resend_offline_messages_hook,["bryan","domain.com"]}

I am going to turn-off "_odbc" and retest & then re-enable "odbc" again shortly.

Thanks, Jason

For developers: Maybe this is

For developers:
Maybe this is relevant: http://www.ejabberd.im/node/5448
The error seems to be the same.

Does mod_muc offer offline

Does mod_muc offer offline storage now?
I am using Pidgin and Android client for testing and when using muc, offline messages are stored and delivered on the other side.

Also, is there a way of saving room participants in a persistent storage i.e. riak|odbc

rai.ehtisham wrote: Does

rai.ehtisham wrote:

Does mod_muc offer offline storage now?
I am using Pidgin and Android client for testing and when using muc, offline messages are stored and delivered on the other side.

No new features in that field. Maybe what you see is mod_mam, which supports rooms now.

rai.ehtisham wrote:

Also, is there a way of saving room participants in a persistent storage i.e. riak|odbc

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.

Maybe it helps the ejabberd command get_room_occupants, that you can call using shell, XMLRPC or REST queries.

Syndicate content