【问题标题】:ejabberd XMPP message archive management: no message receivedejabberd XMPP 消息存档管理:未收到消息
【发布时间】:2016-03-15 19:36:42
【问题描述】:

我正在尝试在 Android XMPP 客户端中实现消息存档功能,但它没有向客户端发送回任何消息。服务器配置正确。 使用的 XMPP 服务器:ejabberd 15.11

为从 muc 获取归档消息而发送 IQ

<iq type='set' id='21564' to='bb124cc06ec6b8a5@conference.my.ip'>
<query xmlns='urn:xmpp:mam:0'>
    <x xmlns='jabber:x:data' type='submit'>
        <field var='FORM_TYPE' type='hidden'>
            <value>urn:xmpp:mam:0</value>
        </field>
        <field var='with'>
            <value>bb124cc06ec6b8a5@conference.my.ip</value>
        </field>
    </x>
    <set xmlns='http://jabber.org/protocol/rsm'>
        <max>20</max>
    </set>
</query>

从服务器收到的响应

第一个回复:

<message to='f748181bd1385940@my.ip/Smack' from='bb124cc06ec6b8a5@conference.my.ip'>
    <fin xmlns='urn:xmpp:mam:0'>
    </fin>
</message>

第二个回应:

<message to='f748181bd1385940@my.ip/Smack' from='bb124cc06ec6b8a5@conference.my.ip'>
    <fin xmlns='urn:xmpp:mam:0'>
    </fin>
    <delay xmlns=urn:xmpp:delay stamp=2015-12-10T08:23:43.05600:00 from=my.ip>Resent, Offline Storage
    </delay>
</message>

需要帮助。提前致谢。

【问题讨论】:

  • 您是否为会话启用了存档?
  • 我们只在 ejabberd 配置文件mod_mam: default: always mod_muc: ## host: "conference.@HOST@" access: muc access_create: muc_create access_persistent: muc_create access_admin: muc_admin history_size: 10 default_room_options: mam: true persistent: true public: true 中完成了这种设置@ 在客户端成功验证后我还需要做其他事情吗?

标签: android xmpp ejabberd asmack


【解决方案1】:

您可以再次发送消息。试试这些消息。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-07-17
    • 2014-09-19
    • 2016-02-28
    • 2016-06-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-28
    相关资源
    最近更新 更多