ejabberd MAM does not work for MUC

xep-0313 works for rosters, but does not work for room chat. I can get archive message for the rosters, but I can not get archive message for the room, why?

<iq type='set' id='juliet1'>
  <query xmlns='urn:xmpp:mam:0'>
    <x xmlns='jabber:x:data'>
       <field var='FORM_TYPE'>
           <value>urn:xmpp:mam:0</value>
       </field>
      <field var='with'>
         <value>roomJid@conference.host</value>
      </field>
   </x>
  </query>
</iq>

there is no more other MUC messages. The only message I receive is,

<message xmlns="jabber:client" from="test3@192.168.1.67" to="test3@192.168.1.67/iPhone" id="dHS0oejBDWHp”>
<fin xmlns="urn:xmpp:mam:0" complete="true”>
      <set xmlns="http://jabber.org/protocol/rsm”/>
</fin>
<no-copy xmlns="urn:xmpp:hints”/>
</message>

I guess you are using

I guess you are using ejabberd contributed module. However, a new official MAM module has been added to official ejabberd and it support latest version of MAM (0.3) and MUC archiving.

It will be released in ejabberd 15.06, but you can already use it from source from Github repository. The module is here: https://github.com/processone/ejabberd/blob/master/src/mod_mam.erl

Syndicate content