【问题标题】:Muc light not working due to service not available由于服务不可用,Muc 灯不工作
【发布时间】:2018-03-26 15:07:01
【问题描述】:

我正在尝试使用 Mongoseim Server 在 iOS 应用程序中实现 muc light。对于群聊,我使用的是 muclight,但是当我通过以下方式发现我的服务时:

let toStr: String = XMPPConstants.ConnectionHost // my xmpp connection host

        let query = XMLElement(name: "query", xmlns: "http://jabber.org/protocol/disco#item")
        let iq = XMPPIQ(type: "get", to: XMPPJID(string: toStr), elementID: xmppStream.generateUUID(), child: query)
        iq?.addAttribute(withName: "from", stringValue: xmppStream.myJID.bare())


        xmppStream.send(iq)

我收到如下错误的响应:

<error type='cancel'>
    <service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  </error> 

请帮助我如何解决此错误。 我需要配置服务器部分还是其他?

请详细说明。

提前致谢:)

【问题讨论】:

    标签: swift xmpp ejabberd xmppframework mongoose-im


    【解决方案1】:

    你需要为 mucLight.file 配置ejabberd.cfg 文件可以找到 id [MongooseIM root]/rel/mongooseim/etc/

    {mod_muc_light, [
        {backend, odbc},
        {host, "muclight.@HOST@"},
        {rooms_per_user,infinity},
        {max_occupants,infinity},
        {rooms_per_page,infinity},
        {all_can_configure,true},{all_can_invite, true}]},
    

    更多信息请点击此链接mod_muc_light

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-05-24
      • 2021-12-13
      • 2017-07-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-01
      相关资源
      最近更新 更多