在ejabberd上实施BOSH

时间:2012-09-12 06:35:00

标签: ejabberd bosh

我试图在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库来创建客户端。

1 个答案:

答案 0 :(得分:1)

您是否在模块部分添加了{mod_http_bind,[]}?