7

My Message Archiving is fine , message is saving in database easily but for some reason i want to fetch the preference set for xep-0136 .

As stated in xep-0136 extension to get preference we need to send this IQ

<iq type="get" id="pref1">
    <pref xmlns="urn:xmpp:archive">
    </pref>
</iq>

But on sending this I am getting error in response that service is unavailable but i dont know how this can be possible ? because message archiving is working all fine. do i need to implement some other module.

error iq

<iq
    xmlns="jabber:client"
    from="ramu_gmail.com@##.##.##.##"
    to="ramu_gmail.com@##.##.##.##/42117879931439208568472324"
    type="error"
    id="pref1">
    <pref xmlns="urn:xmpp:archive"></pref>
    <error code="503" type="cancel">
        <service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"></service-unavailable>
    </error>
</iq>

Guys please suggest.Thanks in advance.

xnyhps
  • 3,306
  • 17
  • 21
kshitij godara
  • 1,523
  • 18
  • 30
  • 1
    ejabberd does not support xep-0136 officially. Where did you get that module? Are you really sure archive management is enabled? – vitalyster Aug 14 '15 at 09:23
  • 1
    please have a look at this link -- https://github.com/processone/ejabberd-contrib/tree/master/mod_archive i implemented from here – kshitij godara Aug 24 '15 at 04:19

0 Answers0