Fw: [JDEV] switching from conference room messages to direct chat messages
Rob Davis
lists at solarismedia.co.uk
Thu Oct 24 06:39:11 CDT 2002
Hi there
I'm developing a Jabber client and have what seems to be an unexpected
problem that perhaps you can cast some light on.
I have two user chatting in a conference room, however when they leave
the room (sending presence unavailable to the room) messages sent
directly between those users no longer arrives.
You can see the XML thats being passed between the two clients below.
It could be something obvious, but this ones got me flumoxxed at the
moment (if thats how you spell 'flumoxxed')
Rob
----------------------
When they are within the chat room, they communicate like this:
<message to="lobby at conference.localhost"
from="lobby at conference.localhost/rob"><body>test</body></message>
And the message is received as expected:
<message to="qqq at www.gameking.tv/home"
from="lobby at conference.localhost/rob" type="groupchat"
cnu=""><body>test</body></message>
My users are then leaving the conference room like this:
<presence type="unavailable" to="lobby at conference.localhost/rob" />
Which as expected notifies all the other room members:
<presence type="unavailable" to="qqq at www.gameking.tv/home"
from="lobby at conference.localhost/rob" />
We then then switch to direct person-to-person messaging like this:
<message to="qqq at www.gameking.tv"
from="rob at www.gameking.tv"><body>lalal</body></message>
However the problem is that the message is never received by the
recipient.
If the users stay in the chat room, Jabber does pass on their private
messages within the chat room using this format:
<message to="lobby at conference.localhost/qqq"
from="lobby at conference.localhost/rob"><body>test</body></message>
But I need the other users in the system to no longer see the users who
have left the room so this is no good!
(Note with my client the nickname in the chat room is the same as the
Jabber username so mismatch of username is not the cause).
More information about the JDev
mailing list