unmk2 / jaxl

Automatically exported from code.google.com/p/jaxl
GNU General Public License v3.0
0 stars 0 forks source link

JAXL unable to establish connection with local ejabberd server #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set $env = "devel"
2. user="admin", pass="password", host="localhost", port="5222",
domain="localhost"
3. Start local Ejabberd server
3. Start JAXL i.e. php index.php

What is the expected output? What do you see instead?
JAXL doesn't proceed beyond:
Starting TLS Encryption...
Attempting DIGEST-MD5 Authentication...
Requesting Feature List...

Last exchanged XML's as found in log/logger.log are:
2009-01-06 18:15:06
Sending XML>>
<iq type="set" id="1"><bind
xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource>jaxl</resource></bind></iq>

2009-01-06 18:15:07
Received XML<<
<iq id='1' type='result'><bind
xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>admin@localhost/jaxl</jid></bind><
/iq>

2009-01-06 18:15:08
Sending XML>>
<iq type="get" to="localhost"><query
xmlns="http://jabber.org/protocol/disco#info"/></iq>

and JAXL hangs up after this with no response from the Ejabberd server.

Original issue reported on code.google.com by mailsfor...@gmail.com on 6 Jan 2009 at 6:21

GoogleCodeExporter commented 9 years ago
This happened because Gtalk server allows you to proceed even if the client 
library
do not start a session, while local Ejabberd server will stop responding until 
client
library starts a session.

Added method startSession() in xmpp.class.php, which will now start a sessions 
in
both the cases i.e. while connecting with Gtalk servers or local Ejabberd 
servers.

Original comment by mailsfor...@gmail.com on 6 Jan 2009 at 6:54