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 に答える