我试图创建一个自定义的Facebook聊天,我使用的是:ejabberd - BOSH模块没有开始
- ejabberd
- 的strophe
- 阿帕奇
的阿帕奇是一台电脑和ejabberd在不同的机器上,我代理我的请求使用
<Proxy *>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Proxy>
ProxyPass /http-bind http://my_bosh_domain:5280/http-bind/ nocanon
ProxyPassReverse /http-bind http://my_bosh_domain:5280/http-bind/
我登录我的请求,并得到以下错误:
bosh module not started
当我检查http://my_bosh_domain:5280/http-bind/
从我的浏览器,我可以看到:
ejabberd mod_http_bind
An implementation of XMPP over BOSH (XEP-0206)
This web page is only informative. To use HTTP-Bind you need a Jabber/XMPP client that supports it.
我缺少什么?
更新
我已经改变了我的代理服务器设置:
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
,现在我得到如下回应:
<body xmlns='http://jabber.org/protocol/httpbind' xmlns:xmpp='urn:xmpp:xbosh'
xmlns:stream='http://etherx.jabber.org/streams' sid='6093aa55412842f7be3de1b33fd2a307df4ae2fa' wait='60'
requests='2' inactivity='120' maxpause='120' polling='2' ver='1.8' from='chat.facebook.com' secure='true'
authid='3105619037' xmpp:version='1.0'>
<stream:features xmlns:stream='http://etherx.jabber.org/streams'>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-1</mechanism>
<mechanism>DIGEST-MD5</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/'
ver='TQ2JFyRoSa70h2G1bpgjzuXb2sU='/>
<register xmlns='http://jabber.org/features/iq-register'/>
</stream:features>
这是错误的我期待得到X-FACEBOOK-PLATFORM作为机制之一。 有什么想法?
将尝试它并让你知道,非常感谢! – 2012-07-25 19:44:01
没有工作......任何其他的想法? – 2012-07-26 11:24:21