【问题标题】:Can't change XMPP MUC description in Ejabberd无法在 Ejabberd 中更改 XMPP MUC 描述
【发布时间】:2019-04-02 06:49:22
【问题描述】:

我正在尝试用这些节更改 MUC 描述

<iq from='user@example.com' to='group@conference.example.com' type='set' xmlns='jabber:client' id='4fd8ab1b-75e2-4488-a299-124a5e0aa8a3:sendIQ'><query xmlns='http://jabber.org/protocol/muc#owner'><x xmlns='jabber:x:data' type='submit'><field var='muc#roominfo_description'><value>description</value></field></x></query></iq>

服务器回复这些

<error xmlns="jabber:client" code="400" type="modify"><bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">Unknown field 'muc#roominfo_description' of type 'http://jabber.org/protocol/muc#roomconfig'</text></error>

我做错了吗?

Ejabberd 18.06 CentOS 6

【问题讨论】:

    标签: erlang xmpp ejabberd


    【解决方案1】:

    我认为您在 xml 中使用了错误的属性。

    只需更换 &lt;field var='muc#roominfo_description&lt;field var='muc#roomconfig_roomdesc

    你就完成了:)

    【讨论】:

      猜你喜欢
      • 2016-12-26
      • 2012-09-13
      • 2017-01-20
      • 1970-01-01
      • 1970-01-01
      • 2016-06-30
      • 2016-12-09
      • 1970-01-01
      • 2017-01-18
      相关资源
      最近更新 更多