无法将消息发送到MUC会议室

时间:2020-09-17 10:43:58

标签: xmpp ejabberd xmppframework multiuserchat

当我尝试向XMPP MUC室发送消息时,例如:

<message to="room@conference.chat.example.com" type="groupchat">
    <body>TEST</body>
</message>

该消息将不会发送给会议室中的其他参与者,我从服务器收到以下答复:

<message
xmlns="jabber:client" lang="en" to="karim@chat.example.com/resource" from="room@conference.chat.example.com" type="error">
<error code="503" type="cancel">
    <service-unavailable
        xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">
    </service-unavailable>
    <text
        xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" lang="en">User session not found
    </text>
</error>
<body>TEST</body>

我正在使用通过official image安装在Docker中的 ejabberd Community Server v20.07

我可以使用here找到我正在使用的完整ejabberd.yml配置文件。

完整的服务器日志可以找到here

上述错误发生在不同的客户端上,而不仅仅是一个客户端。

1 个答案:

答案 0 :(得分:1)

您已经配置好了,这是完全错误的:

hosts:
  - chat.example.com
  - conference.chat.example.com

modules:
  mod_muc:
    ...

我想您没有注意到MOD_MUC文档中的选项HOSTS:https://docs.ejabberd.im/admin/configuration/modules/#mod-muc

尝试这样的事情:

hosts:
  - chat.example.com

modules:
  mod_muc:
    hosts:
      - conference.@HOST@
    ...
相关问题