Hi,

Sorry for the trouble, I had to enabled SASL login and I enabled
anonymous login. Now I am able to login anonymously using any username
and without a password, but i am having trouble sending messages to the
group. When I try to send a message, I get a service unavailable message
back from server.

Here are the stanza's i send and receive: 

Code:
--------------------
    
  
  2009-03-07 10:45:17
  Sending Body>>
  <body content='text/xml; charset=utf-8' hold='1' 
xmlns='http://jabber.org/protocol/httpbind' to='localhost' wait='300' 
rid='1061500451' route='xmpp:localhost:5222' secure='true' ver='1.6' 
xmlns:xmpp='urn:xmpp:xbosh' xmpp:version='1.0'/>
  
  2009-03-07 10:45:18
  Received Body<<
  <body xmlns='http://jabber.org/protocol/httpbind' 
sid='1f7bd1da61d31091fc07cc1ec2ff7a508769c834' wait='300' requests='2' 
inactivity='30' maxpause='120' polling='2' ver='1.6' from='localhost' 
secure='true' authid='1803631947' 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>ANONYMOUS</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms><register
 xmlns='http://jabber.org/features/iq-register'/></stream:features></body>
  
  2009-03-07 10:45:18
  Sending Body>>
  <body rid='1061500452' sid='1f7bd1da61d31091fc07cc1ec2ff7a508769c834' 
xmlns='http://jabber.org/protocol/httpbind'><auth 
xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='ANONYMOUS'/></body>
  
  2009-03-07 10:45:18
  Received Body<<
  <body xmlns='http://jabber.org/protocol/httpbind'><success 
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/></body>
  
  2009-03-07 10:45:18
  Sending Body>>
  <body  to='localhost' rid='1061500453' 
sid='1f7bd1da61d31091fc07cc1ec2ff7a508769c834' 
xmlns='http://jabber.org/protocol/httpbind' xmpp:restart='true' 
xmlns:xmpp='urn:xmpp:xbosh' xml:lang='en'/>
  
  2009-03-07 10:45:18
  Received Body<<
  <body xmlns='http://jabber.org/protocol/httpbind' 
sid='1f7bd1da61d31091fc07cc1ec2ff7a508769c834' wait='300' requests='2' 
inactivity='30' maxpause='120' polling='2' ver='1.6' from='localhost' 
secure='true' authid='467259635' 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'><bind 
xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session 
xmlns='urn:ietf:params:xml:ns:xmpp-session'/></stream:features></body>
  
  2009-03-07 10:45:18
  Sending Body>>
  <body rid='1061500454' sid='1f7bd1da61d31091fc07cc1ec2ff7a508769c834' 
xmlns='http://jabber.org/protocol/httpbind'><iq type='set' id='2'><bind 
xmlns='urn:ietf:params:xml:ns:xmpp-bind'/></iq></body>
  
  2009-03-07 10:45:18
  Received Body<<
  <body xmlns='http://jabber.org/protocol/httpbind'><iq xmlns='jabber:client' 
id='2' type='result'><bind 
xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>26869862881236422718124...@localhost/23280825821236422718452002</jid></bind></iq></body>
  
  2009-03-07 10:45:18
  Sending Body>>
  <body rid='1061500455' sid='1f7bd1da61d31091fc07cc1ec2ff7a508769c834' 
xmlns='http://jabber.org/protocol/httpbind'><iq type='set' id='3'><session 
xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq></body>
  
  2009-03-07 10:45:18
  Received Body<<
  <body xmlns='http://jabber.org/protocol/httpbind'><iq xmlns='jabber:client' 
type='result' id='3'><session 
xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq></body>
  
  2009-03-07 10:45:18
  Sending Body>>
  <body rid='1061500456' sid='1f7bd1da61d31091fc07cc1ec2ff7a508769c834' 
xmlns='http://jabber.org/protocol/httpbind'><presence 
from='26869862881236422718124...@localhost/23280825821236422718452002'><priority>-1</priority></presence><presence
 from='26869862881236422718124...@localhost/23280825821236422718452002' 
to='ba...@localhost/imoracle'><x 
xmlns='http://jabber.org/protocol/muc'/></presence></body>
  
  2009-03-07 10:45:18
  Received Body<<
  <body xmlns='http://jabber.org/protocol/httpbind'><presence 
xmlns='jabber:client' 
from='26869862881236422718124...@localhost/23280825821236422718452002' 
to='26869862881236422718124...@localhost/23280825821236422718452002'><priority>-1</priority></presence></body>
  
  2009-03-07 10:45:18
  Sending Body>>
  <body rid='1061500457' sid='1f7bd1da61d31091fc07cc1ec2ff7a508769c834' 
xmlns='http://jabber.org/protocol/httpbind'/>
  
  2009-03-07 10:45:28
  Sending Body>>
  <body rid='1061500458' sid='1f7bd1da61d31091fc07cc1ec2ff7a508769c834' 
xmlns='http://jabber.org/protocol/httpbind'>
  <message type='groupchat' 
from='26869862881236422718124...@localhost/23280825821236422718452002' 
to='ba...@localhost' id='4'>
  <body xmlns='jabber:client'>imoracle</body>
  </message>
  </body>
  
  2009-03-07 10:45:28
  Received Body<<
  <body xmlns='http://jabber.org/protocol/httpbind'>
  <message xmlns='jabber:client' from='ba...@localhost' 
to='26869862881236422718124...@localhost/23280825821236422718452002' 
type='error' id='4'>
  <body xmlns='jabber:client'>imoracle</body>
  <error code='503' type='cancel'>
  <service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  </error>
  </message>
  </body>
  
  2009-03-07 10:45:29
  Received Body<<
  <body xmlns='http://jabber.org/protocol/httpbind'/>
  
  2009-03-07 10:45:41
  Received Body<<
  <body xmlns='http://jabber.org/protocol/httpbind'/>
  
  2009-03-07 10:50:28
  Received Body<<
  <body xmlns='http://jabber.org/protocol/httpbind'/>
  
--------------------


Can someone see any possible error in there?

Regards,
Abhinav


-- 
imoracle

------------------------------------
JAXL - Jabber XMPP Library in PHP
http://code.google.com/p/jaxl
------------------------------------
------------------------------------------------------------------------
imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412
View this thread: http://www.jabberforum.org/showthread.php?t=1577

Reply via email to