"muc_example.cpp" problems
From: Diego Donate <diego.donate@xxxxxxxxxxx>
Date: Thu, 2 Apr 2009 16:33:40 +0200 (CEST)
 
Hi,
 
I am trying to make a small jabber client just with the muc feature. I have
firstly tested the muc_example, but with problems:
 
Once connected (client B sees me online), I have in 'onConnect()':
      m_room->join();      
      m_room->getRoomInfo();      
      m_room->getRoomItems();
 
With that, I receive the events in 'handleMUCInfo()' and 'handleMUCItems()'.
In 'virtual void handleMUCItems( MUCRoom * pRoom, const StringMap& items )',
I put:
      pRoom->registerMUCRoomHandler(this);
      pRoom->invite(JID("userB..."),"invitation");
 
and user B receives my invitation, BUT When user B accepts, I don't receive
anything... 
 
I also tried with no invitation from my client, waiting for B's invitation.
BUT when B started a conference with me, I didn't receive anything to accept
or decline it, no event...
 
What am I doing wrong with the simple example?
 
Thanks in advance
 
Diego