[ejabberd] mod_archive : how to retrieve archived message

Arup Malakar amalakar at gmail.com
Thu May 8 21:40:40 MSD 2008


I have configured the mod_archive module for message archiving in the
server, it uses mysql db to store the messages. But I couldn't figure out
what is the xmpp message I should send from the client to retrieve message
history from the server.

I was sending the following to server:

<iq type='get' id='xyz1'>
  <list xmlns='urn:xmpp:tmp:archive'
        with='xyz at example.com'>
    <set xmlns='http://jabber.org/protocol/rsm'>

Response I am getting is:

<iq from="xxx at example.com" type="error" xml:lang="en" to="xxx at example.com"
id="juliet1" >
  <list xmlns="urn:xmpp:tmp:archive" with="xyz at example.com" >
    <set xmlns="http://jabber.org/protocol/rsm">
<error type="cancel" code="503" >
<service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>

I was referring to http://www.xmpp.org/extensions/xep-0136.html for the xml,
any idea what am I doing wrong here or what is the correct xml I should

Arup Malakar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jabber.ru/pipermail/ejabberd/attachments/20080508/fd9f034b/attachment.htm 

More information about the ejabberd mailing list