mod_muc and multiple resources

Maybe I misunderstood XEP, but it should be possible to enter one chatroom with one nickname from 2 different resources of one bare JID. Is it problem in ejabberd, some configuration or in my understanding of XEP?…

XEP:
"However, if the bare JID of the present occupant matches the bare JID of the user seeking to enter the room, then the service SHOULD allow entry to the user, so that the user has two (or more) in-room "sessions" with the same roomnick, one for each resource. If a service allows more than one occupant with the same bare JID and the same room nickname, it SHOULD route in-room messages to all of the user's resources and allow all of the user's resources to send messages to the room; it is up to the implementation to determine how to appropriately handle presence from the user's resources and how to route private messages to all or only one resource (based on presence priority or some other algorithm)."
-- http://xmpp.org/extensions/xep-0045.html#enter-conflict

Error message in Psi:
"Unable to join groupchat.
Reason: Conflict.
Access cannot be granted because an existing resource or session exists with the same name or address.
Nickname is already in use by another occupant"

Not implemented. Proposed patch available.

You understand the XEP correctly, it is not implemented in ejabberd.

You can find a proposed patch in this ticket:
Allow multiple entry with same nick to MUC rooms.
Note however that the available patches have some shortcomings, mentioned in the comments in that page.

and what about anonymous rooms ?

To use muckl, i need to set a login/pass which is used by all users to connect to the room.

Example for 2 users (anonymous so not member of the room), will be:

user1: anonymous@server.com/uniqID1
user2: anonymous@server.com/uniqID2

In the room:

myRoom@chat.server.com/nick1
myRoom@chat.server.com/nick2

So if nick1 is allowed to change his nick to "nick2", on my side, there is no nick conflit.

Problem now is that if user3 want to send private message to initial nick1 ... user1 and user2 will receive the message ?

Is there a parameter to not allow same nick in a room ?

mod_muc and multiple resources

I went through the last post and I think there is a patch for this. Has this patch been implemented in the latest package? I use debain Lenny and the version of ejabberd is 2.1. I had the same problem there.
I want to move the company away from zephyr because it is linux centric. ejabberd has been great for my test but this feature is about to sink the project. Any help will be appreciated.

Syndicate content