2

ejabberd.cfgには次のものがあります

{host_config, "thisislove-MacBook-2.local", [{auth_method, [internal, anonymous]},
                          {allow_multiple_connections, false},
                          {anonymous_protocol, both}]}.

しかし、speeqe javascript クライアント (speeqe.com) を使用して接続すると、送信されることがわかります

<body rid='1366284187' xmlns='http://jabber.org/protocol/httpbind' to='thisislove-macbook-2.local' xml:lang='en' wait='60' hold='1' window='5' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh'/>

サーバーは次のように応答します

<body xmlns='http://jabber.org/protocol/httpbind' sid='f89bf034b02fa6b884bb0c55be3f1f69e45e3866' wait='60' requests='2' inactivity='30' maxpause='120' polling='2' ver='1.8' from='thisislove-macbook-2.local' secure='true' authid='353072658' xmlns:xmpp='urn:xmpp:xbosh' xmlns:stream='http://etherx.jabber.org/streams' xmpp:version='1.0'><stream:features xmlns:stream='http://etherx.jabber.org/streams'><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/></stream:features></body>

メカニズム、DIGEST-MD5 & PLAIN に注意してください。私が間違っていなければ、ANONYMOUS もメカニズムとして持つべきです。したがって、speeqe は単純に接続を終了します。

そのため、匿名構成または muc 構成に何かが欠けているに違いないと考えています。mod_muc configg には、

{mod_muc,      [
      %%{host, "conference.@HOST@"},
      {access, muc},
      {access_create, muc},
      {access_persistent, muc},
      {access_admin, muc_admin},
      {max_room_name, 190},
      {max_room_desc, 190},
      {max_users, 500}
     ]}

それで、私は何が欠けていますか?

ありがとう

4

1 に答える 1

3

これは将来誰かを助けるかもしれないので、ここで何が起こっていたのか. 私が持っていた

{auth_method, internal}. 

それ以外の

{auth_method, [internal, anonymous]}.

私も持っていました

{access, muc_create, [{allow, local}]}.

それ以外の

{access, muc_create, [{allow, all}]}.

最後に、speeqe の local_settings.js 内のルーム名には、チャット サーバー alpha@conference.domain.com (alpha@domain.com ではなく) も含める必要がありました。

于 2010-04-19T14:40:45.650 に答える