3

我试图在 ejabberd 上启动 BOSH。我的 ejabberd.cfg 片段如下:

   {5280, ejabberd_http, [
                     {request_handlers, [
            {["xmpp-httpbind"], mod_http_bind}
         ]},
         captcha,
         http_bind, 
         http_poll, 
         web_admin
            ]}

http://localhost:5280/http-bind fails to open any page.

我的客户从服务器得到这个响应

发送的 XML:

<iq to='localhost' id='uid:50502b03:00004823' type='get' x
mlns='jabber:client'><query xmlns='jabber:iq:auth'><username>anurag</username></
query></iq>

收到的 XML:

<iq xmlns='jabber:client' from='localhost' id='uid:505
029df:00004823' type='error'><error code='503' type='cancel'><service-unavailabl
e xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>


Sent XML: </stream:stream>
auth failed. reason: 0
ce: 18

我正在使用 gloox 库来创建客户端。

4

1 回答 1

1

您是否将 {mod_http_bind, []} 添加到您的模块部分?

于 2012-09-20T19:43:25.460 回答