[JDEV] switching from conference room messages to direct chat messages

Rob Davis lists at solarismedia.co.uk
Tue Oct 22 08:47:43 CDT 2002


Hi there,

I am developing a client application and I have a problem when users
leave chat rooms.

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).

Does anyone know whats going wrong here?

Thanks,

Rob





More information about the JDev mailing list