2017-10-14 2 views
0

Mongoseim 서버로 iOS 응용 프로그램에서 muc 표시등을 구현하려고합니다. 그룹 채팅을 위해 나는 muclight를 사용하고 있지만 의해 내 서비스를 발견 할 때이 오류를 해결하는 방법에서비스로 인해 Muc 표시등이 작동하지 않음

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

이 제발 도와주세요 :

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) 

나는 오류 등으로 반응을 얻고있다. 서버 일부 또는 다른 것을 구성해야합니까?

자세히 설명해주십시오. mucLight.file 자세한 내용은 ID [MongooseIM root]/rel/mongooseim/etc/

{mod_muc_light, [ 
    {backend, odbc}, 
    {host, "[email protected]@"}, 
    {rooms_per_user,infinity}, 
    {max_occupants,infinity}, 
    {rooms_per_page,infinity}, 
    {all_can_configure,true},{all_can_invite, true}]}, 

을 찾을 수 있습니다에 대한

답변

0

: 사전에

덕분에이 링크를 클릭하십시오 ejabberd.cfg 파일을 구성해야 mod_muc_light

관련 문제