XMPPFramework-无法从Openfire服务器检索聊天记录 [英] XMPPFramework - Unable to Retrieve Chat History from Openfire Server

查看:187
本文介绍了XMPPFramework-无法从Openfire服务器检索聊天记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从Openfire服务器获取聊天记录.为此,我们完成了明火设置,并向Openfire中添加了归档插件.

I am trying to fetch chat history from Openfire server. For that purpose we are done with open fire set up and we added archiving plug in to Openfire as well.

我经历了一些谷歌搜索,发现我需要遵循XEP-0136.我还发现了这个 SO问题.我正在向服务器发送相同的节,但出现501错误代码,即未实现功能.

I gone through some Googling and I found that I need to follow XEP-0136. I also found this SO question. I am sending the same stanza to my server but I am getting error code of 501 i.e feature not implemented.

我在服务器上查找存档的历史记录时,无法正确获取该历史记录.

While I go on server and look for archived History than I get that history properly.

这是我要发送的节:

<iq type="get" id='pk1'>
<list xmlns="urn:xmpp:archive" with="aagh116@ind351.local">
<set xmlns="http://jabber.org/protocol/rsm">
<max>30</max>
</set>
</list>
</iq>

我收到了我的回复:

<iq xmlns="jabber:client" type="error" to="a51@ind351.local/bc191338">
<error code="501" type="cancel">
<feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">
</feature-not-implemented>
</error>
</iq>

我不知道我这边是否出了什么问题,还是我们需要更改某些服务器设置.

I don't know if some thing wrong at my side or we need to change some server setting..

请帮助我解决此问题.

推荐答案

我不知道您是否已经意识到这一点,但是消息归档是XMPP的琐碎方面之一.这是XMPP协议中开发程度最高的功能之一,通常会导致冗长的投标文档被放弃,因为它的复杂性就变得一发不可收拾.

i dont know if you've realised this, but message archiving is one of the trivial aspects of XMPP. this is one of the most under developed features of XMPP protocol, often leading to lengthy proposal documents that get abandoned because the complexity of it just gets out of hand.

此外,您会发现大多数XMPP服务器都缺少正确定义的消息存档.

furthermore, you will find that most XMPP servers lack a proper defined message archiving.

如果您真的想要此功能,请尝试启用具有mod_archive的功能.

if you really want this feature, try ejabbed which has mod_archive that you can enable.

祝你好运

这篇关于XMPPFramework-无法从Openfire服务器检索聊天记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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