powered by Jive Software

How to use MAM/XEP-313 with an Openfire server

Hi there,

I’ve been trying to get Openfires Message Archive Management (XEP-0313, MAM) to work for hours.
Therefore I tried several Clients (Gajim, Conversation, Dino, a SMACK-based and others) but I didn’t manage to get it to work at all. Looking at the XML on connect (and also e.g. Gajims/Conversations Service discovery feature) it looks like Openfire wouldn’t propagate it as Service.
Openfire was locally compiled on git revision c734168396b258e9a04 of ‘Thu Jul 26 08:48:10 2018’ as well as running on a server from CentOS repos in version Openfire 4.2.3.

So, I have a few questions:

  1. First of all: Am I missing anything? Do I have to enable the feature? If yes, please tell me where.

  2. If not, I found: https://issues.igniterealtime.org/browse/OF-1576
    Is this the source of the problem? Moreover, the ticket names ‘urn:xmpp:mam:2’ but if I am not missing something, Openfire only supports :0 and :1, correct?

This is a more general question:
3) Is MAM also used to archive MUC Messages?

I would be very happy for any response. Thank you in advance!

Do you have Monitoring service plugin installed and configured?

Thanks for pointing on this! (Maybe the plugins description should contain the XEP-number?)

Now, the server announces the support and seems to save the messages.

Currently, I am not able to retrieve stored messages within the clients. I’ll do further investigations.

Good point, although it is mentioned in the changelog. https://issues.igniterealtime.org/browse/OF-1593

Thanks so far for your feedback and the ticket!

I still have the problem that the clients do not get the person-to-person conversation logs (according to the XML I saw from gajim the MUC-messages are delivered) although I can see them in the webinterface.
Querying the the archive using gajim explicit results in an “feature-not-implemented” Stanza.
On connecting I see the mentioned s of the MUC messages.
Conversation does not receive the messages too.

Also I am a bit confused where those messages are stored, since I do have only one entry in the ofMessageArchive table ( and I have no idea why this one is there and the others not).

Am I missing something again?

I can’t comment on that. Maybe MAM support is not fully implemented still.