使用Openfire监控插件检索存档消息 [英] Retrieving archive messages using openfire monitoring plugin

查看:192
本文介绍了使用Openfire监控插件检索存档消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将XMPP与openfire服务器一起用于我的网站.我已启用监视服务插件,因此可以存档消息.

I use XMPP with openfire server for my website im. I've enabled monitoring service plugin, so I can archive messages.

当我发送iq节以检索集合时,服务器响应是iq节错误.

When I send an iq stanza to retrieve a collection, the server response is an error iq stanza.

这是请求

<iq type='get' id='user13' xmlns='jabber:client'>
   <list xmlns='urn:xmpp:archive' with='b31315847fed0d6728d5fb763e4a53b09d6fb549@user-pc'>
     <set xmlns='http://jabber.org/protocol/rsm'>
        <max>
          10
        </max>
     </set>
   </list>
</iq>

这是服务器响应:

<iq xmlns='jabber:client' type='error' id='user13' to='dff4bb27259100a5b158ba2477037da823d54229@user-pc/68154bb7'>
    <error code='501' type='cancel'>
        <feature-not-implemented xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
    </error>
</iq>

当我查看openfire管理控制台时,我可以查看已存档的对话,因此我希望我的请求可以正常工作,

When I take a look at openfire admin console, I can view the archived conversations, so I expect my request to work fine, which is not the case.

这是怎么回事?

推荐答案

您的节是正确的.但是该插件似乎无法正常工作.

Your stanza is correct. But the plugin seems not working.

Openfire监视插件不是为邮件归档而设计的.此插件的主要目的是用于流量统计日志记录和监控.

Openfire Monitoring plugin isn't designed for message archiving. The main purpose of this plugin is for traffic statistic logging & monitoring.

您可以查看监控插件自述页面 .邮件归档功能已在1.3版中添加.该消息已保存,但仅用于记录&监控目的.

You can take a look on Monitoring Plugin readme page. Message archiving has just added in version 1.3. The message are saved but it's just for logging & monitoring purpose.

我也尝试过此插件&我无法通过此插件检索消息历史记录.

I've tried this plugin too & I can't retrieve message history by this plugin.

作为解决方案,您可以安装 OpenArchive 插件,而不是Openfire监控插件.该插件是为邮件归档和指定的.恢复.

As a solution, you can install OpenArchive plugin rather than Openfire Monitoring plugin. This plugin is specified for message archiving & retrieval.

我已经安装了OpenArchive 1.6&它对我有用.

I've install OpenArchive 1.6 & it works for me.

我的参考: http://community.igniterealtime.org/message/227791#227791

这篇关于使用Openfire监控插件检索存档消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆