Alright so it turned out to me my stupidity. I didn't knew we also need
to enable mod_muc in the config file to enable group chat features.

I have done that but now I see another problem: After sending initial
stream, anonymous login, bind, session, when I try to send the presence
to the required r...@localhost/username , I get an error response, which
says:


Code:
--------------------
    
  2009-03-08 07:45:04
  Sending Body>>
  <body rid='1140760384' sid='292a6b67ba1740ed02981d523ea8d61047a656e7' 
xmlns='http://jabber.org/protocol/httpbind'>
  <presence 
from='16220722401236498303913...@localhost/jaxl'><priority>-1</priority></presence>
  <presence from='16220722401236498303913...@localhost/jaxl' 
to='ba...@localhost/imoracle'>
  <x xmlns='http://jabber.org/protocol/muc'></x>
  </presence>
  </body>
  
  2009-03-08 07:45:04
  Received Body<<
  <body xmlns='http://jabber.org/protocol/httpbind'>
  <presence xmlns='jabber:client' 
from='16220722401236498303913...@localhost/jaxl' 
to='16220722401236498303913...@localhost/jaxl'>
  <priority>-1</priority>
  </presence>
  <presence xmlns='jabber:client' from='16220722401236498303913...@localhost' 
to='16220722401236498303913...@localhost/jaxl' type='error'>
  <error code='404' type='cancel'>
  <item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Conference room does not 
exist</text>
  </error>
  </presence>
  <presence xmlns='jabber:client' from='ba...@localhost/imoracle' 
to='16220722401236498303913...@localhost/jaxl'>
  <x xmlns='http://jabber.org/protocol/muc#user'>
  <item jid='16220722401236498303913...@localhost/jaxl' affiliation='owner' 
role='moderator'/>
  <status code='201'/>
  </x>
  </presence>
  </body>
  
--------------------


What does the error: *<text
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Conference room does not
exist</text>*  means. I don't think there is anything like creating a
conference room. They are created on the fly.

Also when I tried to send a message in the group I get a response like
this:

Code:
--------------------
    
  2009-03-08 07:45:14
  Sending Body>>
  <body rid='1140760386' sid='292a6b67ba1740ed02981d523ea8d61047a656e7' 
xmlns='http://jabber.org/protocol/httpbind'>
  <message type='groupchat' from='16220722401236498303913...@localhost/jaxl' 
to='ba...@localhost' id='37924393'>
  <body xmlns='jabber:client'>Hey thr?</body><x 
xmlns='jabber:x:event'><composing/></x>
  </message>
  </body>
  
  2009-03-08 07:45:14
  Received Body<<
  <body xmlns='http://jabber.org/protocol/httpbind'>
  <presence xmlns='jabber:client' from='ba...@localhost/imoracle' 
to='16220722401236498303913...@localhost/jaxl' type='unavailable'>
  <status>This participant is kicked from the room because he sent an error 
message to another participant: item-not-found</status>
  <x xmlns='http://jabber.org/protocol/muc#user'>
  <item affiliation='owner' role='none'/>
  </x>
  </presence>
  </body>
  
  Now what does this means: *<status>This participant is kicked from the room 
because he sent an error message to another participant: 
item-not-found</status>*
  
  I am not sure whats going on :( I saw the xml stanza's being exchanges by the 
speeqe.com and also muckl.org and I don't see any difference in approach.
  
  Can someone kindly help me here with the implementation.
  
  Thanks and 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