【问题标题】:ejabberd muc/sub default configurationejabberd muc/sub 默认配置
【发布时间】:2016-09-05 19:14:48
【问题描述】:

是否可以为每个加入 MUC 房间的新成员自动添加 MUC/SUB 订阅。

例如

  1. urn:xmpp:mucsub:nodes:messages
  2. urn:xmpp:mucsub:nodes:affiliations
  3. urn:xmpp:mucsub:nodes:subject
  4. urn:xmpp:mucsub:nodes:config

这类似于运行以下 iq :

<iq type='set'
    from='hag66@shakespeare.example'
    to='coven@muc.shakespeare.example'
    id='E6E10350-76CF-40C6-B91B-1EA08C332FC7'>
  <subscribe xmlns='urn:xmpp:mucsub:0' nick='mynick'>
    <event node='urn:xmpp:mucsub:nodes:messages'/>
    <event node='urn:xmpp:mucsub:nodes:affiliations'/>
    <event node='urn:xmpp:mucsub:nodes:subject'/>
    <event node='urn:xmpp:mucsub:nodes:config'/>
  </subscribe>
</iq>

【问题讨论】:

    标签: ejabberd stanza


    【解决方案1】:

    不,目前的代码还不能做到这一点。

    【讨论】:

    • 嗨,Mickaël,您能否就如何自动化 MUC/SUB 提出任何替代方案?
    • 您必须阅读 ejabberd MUC 模块并对其进行修补以使其表现得像您希望的那样工作。
    猜你喜欢
    • 2016-12-09
    • 2018-10-23
    • 2017-01-18
    • 1970-01-01
    • 2013-05-27
    • 2017-07-14
    • 2021-03-06
    • 2017-06-29
    • 2017-03-22
    相关资源
    最近更新 更多