Php 无法使用jaxl xmpp框架进行连接

Php 无法使用jaxl xmpp框架进行连接,php,xmpp,jaxl,Php,Xmpp,Jaxl,我试图使用PHP的JAXL XMPP库连接openfire服务器,但我陷入了无限循环,我使用了strophe,我可以使用它连接,但在PHP中不能 这是我的密码 $client = new JAXL(array( 'jid' => 'user1@mydomain.in', 'pass' => 'pass@123', // 'host'=>'mydomain.in', //'port'=>'5222', 'bosh_url' =>

我试图使用PHP的
JAXL XMPP库
连接openfire服务器,但我陷入了无限循环,我使用了strophe,我可以使用它连接,但在PHP中不能

这是我的密码

$client = new JAXL(array(
    'jid' => 'user1@mydomain.in',
    'pass' => 'pass@123',
   // 'host'=>'mydomain.in',
    //'port'=>'5222',
    'bosh_url' => 'http://rewire.in/http-bind',
    'log_level'=>JAXL_DEBUG,
    'log_path'=> './log/xmpp.txt',
   // 'auth_type'=>'DIGEST-MD5'
));
这是我的日志

jaxl:188 - 2014-03-26 16:40:58 - created pid file C:\Apache24\htdocs\mypro\JAXL/.jaxl/run/jaxl_16028.pid
jaxl_exception:66 - 2014-03-26 16:40:58 - error handler called with 8, Undefined index: host, C:\Apache24\htdocs\mypro\JAXL\jaxl.php, 197
jaxl_exception:66 - 2014-03-26 16:40:58 - error handler called with 8, Undefined index: port, C:\Apache24\htdocs\mypro\JAXL\jaxl.php, 197
jaxl:200 - 2014-03-26 16:40:58 - dns srv lookup for mydomain.in
jaxl:208 - 2014-03-26 16:40:58 - including bosh xep
jaxl_exception:66 - 2014-03-26 16:40:58 - error handler called with 8, Undefined index: resource, C:\Apache24\htdocs\mypro\JAXL\jaxl.php, 223
jaxl_exception:66 - 2014-03-26 16:40:58 - error handler called with 8, Undefined index: force_tls, C:\Apache24\htdocs\mypro\JAXL\jaxl.php, 224
jaxl_exception:66 - 2014-03-26 16:40:58 - error handler called with 8, Undefined index: bosh_rid, C:\Apache24\htdocs\mypro\JAXL\xep\xep_0206.php, 193
jaxl_exception:66 - 2014-03-26 16:40:58 - error handler called with 8, Undefined index: bosh_hold, C:\Apache24\htdocs\mypro\JAXL\xep\xep_0206.php, 194
jaxl_exception:66 - 2014-03-26 16:40:58 - error handler called with 8, Undefined index: bosh_wait, C:\Apache24\htdocs\mypro\JAXL\xep\xep_0206.php, 195
jaxl_fsm:61 - 2014-03-26 16:40:58 - calling state handler 'setup' for incoming event 'start_cb'
xep_0114:68 - 2014-03-26 16:40:58 - starting component handshake
jaxl_exception:66 - 2014-03-26 16:40:58 - error handler called with 8, Undefined index: id, C:\Apache24\htdocs\mypro\JAXL\xmpp\xmpp_stanza.php, 81
xep_0206:109 - 2014-03-26 16:40:58 - posting to http://mydomain.in/http-bind body <body sid="" rid="3285" xmlns="http://jabber.org/protocol/httpbind"><handshake>ba97b1cf397425a852d1316d10787b1d97b5bc85</handshake></body>
jaxl_fsm:71 - 2014-03-26 16:40:58 - current state 'wait_for_stream_features'
xep_0206:109 - 2014-03-26 16:40:58 - posting to http://mydomain.in/http-bind body <body xmlns="http://jabber.org/protocol/httpbind" content="text/xml; charset=utf-8" to="mydomain.in" route="xmpp:mydomain.in:5222" secure="true" xml:lang="en" xmpp:version="1.0" xmlns:xmpp="urn:xmpp:xbosh" hold="1" wait="30" rid="3285" ver="1.10" from="user1@mydomain.in"></body>
xep_0206:132 - 2014-03-26 16:40:58 - recving for 3285
xep_0206:132 - 2014-03-26 16:40:58 - recving for 3285
xep_0206:132 - 2014-03-26 16:40:58 - recving for 3285
xep_0206:132 - 2014-03-26 16:40:58 - recving for 3285
xep_0206:132 - 2014-03-26 16:40:58 - recving for 3285
xep_0206:132 - 2014-03-26 16:40:58 - recving for 3285
xep_0206:132 - 2014-03-26 16:40:58 - recving for 3285
xep_0206:132 - 2014-03-26 16:40:58 - recving for 3285
jaxl:188-2014-03-26 16:40:58-创建的pid文件C:\Apache24\htdocs\mypro\jaxl/.jaxl/run/jaxl\u 16028.pid
jaxl_异常:66-2014-03-26 16:40:58-使用8调用错误处理程序,未定义索引:host,C:\Apache24\htdocs\mypro\jaxl\jaxl.php,197
jaxl_异常:66-2014-03-26 16:40:58-使用8调用错误处理程序,未定义索引:port,C:\Apache24\htdocs\mypro\jaxl\jaxl.php,197
jaxl:200-2014-03-26 16:40:58-mydomain.in的dns srv查找
jaxl:208-2014-03-26 16:40:58-包括波什xep
jaxl_异常:66-2014-03-26 16:40:58-使用8调用错误处理程序,未定义索引:resource,C:\Apache24\htdocs\mypro\jaxl\jaxl.php,223
jaxl_异常:66-2014-03-26 16:40:58-使用8调用错误处理程序,未定义索引:force_tls,C:\Apache24\htdocs\mypro\jaxl\jaxl.php,224
jaxl_异常:66-2014-03-26 16:40:58-使用8调用错误处理程序,未定义索引:bosh_rid,C:\Apache24\htdocs\mypro\jaxl\xep\xep_0206.php,193
jaxl_异常:66-2014-03-26 16:40:58-使用8调用错误处理程序,未定义索引:bosh_hold,C:\Apache24\htdocs\mypro\jaxl\xep\xep_0206.php,194
jaxl_异常:66-2014-03-26 16:40:58-使用8调用错误处理程序,未定义索引:bosh_wait,C:\Apache24\htdocs\mypro\jaxl\xep\xep_0206.php,195
jaxl_fsm:61-2014-03-26 16:40:58-调用传入事件“start_cb”的状态处理程序“setup”
xep_0114:68-2014-03-26 16:40:58-启动部件握手
jaxl_异常:66-2014-03-26 16:40:58-使用8调用错误处理程序,未定义索引:id,C:\Apache24\htdocs\mypro\jaxl\xmpp\xmpp_stanza.php,81
xep_0206:109-2014-03-26 16:40:58-邮寄至http://mydomain.in/http-bind 车身ba97b1cf397425a852d1316d10787b1d97b5bc85
jaxl_fsm:71-2014-03-26 16:40:58-当前状态“等待流特性”
xep_0206:109-2014-03-26 16:40:58-邮寄至http://mydomain.in/http-bind 身体
xep_0206:132-2014-03-26 16:40:58-接收3285
xep_0206:132-2014-03-26 16:40:58-接收3285
xep_0206:132-2014-03-26 16:40:58-接收3285
xep_0206:132-2014-03-26 16:40:58-接收3285
xep_0206:132-2014-03-26 16:40:58-接收3285
xep_0206:132-2014-03-26 16:40:58-接收3285
xep_0206:132-2014-03-26 16:40:58-接收3285
xep_0206:132-2014-03-26 16:40:58-接收3285

在我的项目中集成JAXL时,我也面临同样的问题。在过去的2到3周内寻找答案,最终找到完美的解决方案

我在前面添加的问题中添加了我的答案。

希望这能有所帮助