查询 openfire 消息存档

发布于 2024-12-17 12:56:05 字数 789 浏览 1 评论 0原文

我正在使用 strope 和 Openfire 3.7.1(带有用户服务和监控插件)。

我读过 http://xmpp.org/extensions/xep-0136.html (7.2 检索集合) 我可以检索存档的消息。我已经在我的 openfire 服务器上安装了monitoring.jar 插件并启用了归档。我读到我需要打开归档来查询档案,但此功能已经在监控插件中。

引用监控插件自述文件: “监控插件为 Openfire 添加了对聊天存档和服务器统计的支持。它支持生成服务器统计的各种报告,以及管理、查看和报告聊天日志。”

我可以在监控 GUI 中看到存档的消息,但我想在我使用 strope.js 库制作的客户端中检索它。我不知道该怎么做。 在 XEP-0136 示例中,他们创建了这样的 IQ:

<iq type='get' xmlns='jabber:client'><retrieve xmlns='urn:xmpp:archive' with='test@localhost'>set</retrieve></iq> { nodeTree=iq, node=retrieve}

然而 openfire 似乎没有回复。我不确定是否应该使用开放存档插件,因为如果我检查监控选项卡,存档已经存在。此外,大多数有关开放存档的帖子已有 2 年历史,因此我不确定它是否仍然受支持。请指教。

最好的问候,

史蒂文森·李

I'm playing around with strophe and Openfire 3.7.1 (with user-service and monitoring plugin).

I've read in http://xmpp.org/extensions/xep-0136.html (7.2 Retrieving a Collection)
that I could retrieve archived messages. I've installed the monitoring.jar plugin to my openfire server and I enabled archiving. I've read that I need open archiving to query archives, but this functionality is already in Monitoring plugin.

to quote Monitoring Plugin Readme:
"The monitoring plugin adds support for chat archiving and server statistics to Openfire. It provides support for generating various reports on the server statistics, as well as managing, viewing, and reporting on chat logs."

I can see the archived messages in the monitoring GUI but I want to retrieve it in my client which I made using strophe.js library. I'm not sure how to do it.
In the XEP-0136 example they created a IQ like this:

<iq type='get' xmlns='jabber:client'><retrieve xmlns='urn:xmpp:archive' with='test@localhost'>set</retrieve></iq> { nodeTree=iq, node=retrieve}

However openfire does not seem to reply. I'm not sure if I should use open archive plugin since if I check my monitoring tab the archives are already there.Moreover most of the posts concerning open archive are 2 years old so I'm not sure if it is still supported. Please advice.

Best Regards,

Stevenson Lee

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

ヅ她的身影、若隐若现 2024-12-24 12:56:05

应该是这样

<iq type='get' id='juliet1'>
  <list xmlns='urn:xmpp:archive'
        with='[email protected]/chamber'>
  </list>
</iq>


<iq type='get' id='page1'>
  <retrieve xmlns='urn:xmpp:archive'
            with='[email protected]/chamber>
    <set xmlns='http://jabber.org/protocol/rsm'>
      <max>100</max>
    </set>
  </retrieve>
</iq>

或者你做了别的什么

should be like this

<iq type='get' id='juliet1'>
  <list xmlns='urn:xmpp:archive'
        with='[email protected]/chamber'>
  </list>
</iq>


<iq type='get' id='page1'>
  <retrieve xmlns='urn:xmpp:archive'
            with='[email protected]/chamber>
    <set xmlns='http://jabber.org/protocol/rsm'>
      <max>100</max>
    </set>
  </retrieve>
</iq>

or did you do something else

终陌 2024-12-24 12:56:05

我能够让它工作。我基本上必须设置服务器并使用 xep-0136 兼容的客户端(vacuum im)对其进行测试。我的 IQ 请求出现一些错误,导致服务器错误。正确的请求最初应该是获取聊天列表的列表请求。以及获取特定对话详细信息的检索请求。希望它可以帮助遇到同样问题的人。 vacuum 有一个很棒的 xml 控制台,它向我展示了我需要的东西,我建议使用它。我在构建它时确实遇到了问题。但我能够构建并运行从他们的 svn 获得的 src(http://code.google.com/p/vacuum-im/source/checkout)

I was able to get it working. I basically had to setup the server and test it with a xep-0136 compliant client(vacuum im). I had some mistakes with my IQ request which cause the server-error. The proper request should be initially a list request to get the list of chat. and a retrieve request to get specific conversation details. hope it helps people who are having the same problems. vacuum has an awesome xml console that showed me what i need I suggest using it. I did have problems building it. But i was able to build and run the src i got from their svn(http://code.google.com/p/vacuum-im/source/checkout)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文