如何获得XEP-0136中的优先权:消息存档?

ksh*_*ara 7 xmpp ejabberd xmppframework

我的消息存档很好,消息很容易在数据库中保存但由于某种原因我想获取xep-0136的首选项集.

正如在xep-0136扩展中所述,我们需要发送这个IQ

<iq type="get" id="pref1">
    <pref xmlns="urn:xmpp:archive">
    </pref>
</iq>
Run Code Online (Sandbox Code Playgroud)

但在发送这个时,我收到错误,因为服务不可用,但我不知道这怎么可能?因为邮件存档工作正常.我需要实现一些其他模块.

错误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>
Run Code Online (Sandbox Code Playgroud)

伙计们请建议.谢谢.