无法在xabber-web中检索消息并重新发送聊天

时间:2017-11-20 02:55:21

标签: javascript xmpp ejabberd strophe mongoose-im

我已经使用xabber-web一个月了,我试图通过bosh将它连接到mongoosim v.2.0,但事实证明无法获取历史聊天(mam)。 奇怪的部分是我可以在浏览器的调试和开发模式下看到消息节。 在沮丧和困惑的状态下,我试图将它再次连接到另一台服务器,ejabberd,并且它完全成功。消息正在检索,并且有最近的聊天和所有类型的功能,但我想要的是连接到mongoose。 在mongooseim中是否有任何针对mod_mam的特定配置,xabber是支持mam:1。

也许这会有所帮助,来自不同服务器的消息节:

ejabberd结果:

<message to="admin3@localhost/xabber-web-9a95517d-d3cc-451e" from="admin3@localhost" xmlns="jabber:client">
   <result id="1508851147555271" queryid="3efd1fe7-e97f-4b92-b256-8d3e755eee28" xmlns="urn:xmpp:mam:1">
      <forwarded xmlns="urn:xmpp:forward:0">
         <message id="2a66dda9-5440-490a-8f1e-7fb866a14082" xml:lang="en" to="admin10@localhost" from="admin3@localhost/64881300220952593792741" type="chat" xmlns="jabber:client">
            <archived id="1508851147555271" by="admin3@localhost" xmlns="urn:xmpp:mam:tmp"></archived>
            <stanza-id id="1508851147555271" by="admin3@localhost" xmlns="urn:xmpp:sid:0"></stanza-id>
            <active xmlns="http://jabber.org/protocol/chatstates"></active>
            <body>asf</body>
         </message>
         <delay from="localhost" stamp="2017-10-24T13:19:07.555271Z" xmlns="urn:xmpp:delay"></delay>
      </forwarded>
   </result>
</message>

mongooseim结果

<message id="e579cbc2-dd63-4bcc-8078-665e720bad6d" xmlns="jabber:client" from="admin3@localhost" to="admin3@localhost/xabber-web-17bcf9fc-8424-4688">
   <result id="ANFEVKG11B81" queryid="d2155cbe-1137-4532-bd64-2832ba97885d" xmlns="urn:xmpp:mam:1">
      <forwarded xmlns="urn:xmpp:forward:0">
         <delay xmlns="urn:xmpp:delay" from="admin3@localhost/xabber-web-eaa21c41-a11c-4399" stamp="2017-11-14T10:38:33Z"></delay>
         <message id="93470005-3c10-4eca-a4a8-9ed417d58969" from="admin3@localhost/xabber-web-eaa21c41-a11c-4399" xmlns="jabber:client" xml:lang="en" to="admin2@localhost" type="chat">
            <body>fsa</body>
         <markable xmlns="urn:xmpp:chat-markers:0"></markable>
         </message>
      </forwarded>
   </result>
</message>

0 个答案:

没有答案
相关问题