[Standards-JIG] Unique room names for JEP-45

Remko Troncon remko at el-tramo.be
Fri Jun 16 18:44:01 UTC 2006


Hi,

JEP-0045 (Multi-User Chat) describes the possibility of creating one- 
to-one chats into multi-user-chats, a feature present in most of  
today's IM protocols. However, to be able to do this, you need to be  
able to find a unique room name to create a new room, which is pretty  
complex to construct from the client. You can generate a hash of some  
kind, which has a high chance of indeed being unique. However, for  
correctness, you still have to account for it not being unique, which  
boils down to a trial and error protocol.

How about we extend JEP-45 with support for an extra iq-based query,  
which returns a unique room name that the requester can use.  For  
example:
<iq type='get' from='joanna at chotchkies.com'   
to='conference.initech.com'>
    <query xmlns="http://jabber.org/protocol/muc#unique" />
</iq>

<iq type='result' to='joanna at chotchkies.com'  
from='conference.initech.com>
   <query xmlns="http://jabber.org/protocol/muc#unique">
       <room>f611da2d4a3ba6f57fd9942b708362a7da1aba4a</room>
   </query>
</iq>

The MUC component would ensure that that roomname stays valid  
'forever'. An implementation of this might be based on the SHA1 hash  
of the jid+timestamp, or microids, or ...
Of course, since this is an extension, it would be an optional  
feature of the MUC component, published in service discovery.

Any thoughts on this ?

cheers,
Remko



More information about the Standards mailing list