Allow Non Occupants Voice in Conference Rooms

Hi,

I would be grateful for some advice on how to configure ejabberd to allow non occupants of a conference room to send messages to the room.
As I want to send alerts to a conference room by executing a perl script from the monitoring server.

Thanks in advance,

Rob.

Not possible right now

rmorgan wrote:

how to configure ejabberd to allow non occupants of a conference room to send messages to the room.

This is in general not allowed, because XEP-0045 says:

Quote:

If the sender is not an occupant of the room, the service SHOULD return a error to the sender and SHOULD NOT reflect the message to all occupants;

The protocol also gives a hint:

Quote:

the only exception to this rule is that an implementation MAY allow users with certain privileges (e.g., a room owner, room admin, or service-level admin) to send messages to the room even if those users are not occupants.

However, ejabberd does not implement such possibility. The only possiblity is that an admin sends a message to the MUC JID (for example to 'conference.example.org'), and the message will be sent to all the rooms in MUC.

rmorgan wrote:

As I want to send alerts to a conference room by executing a perl script from the monitoring server.

The feature looks interesting. I'll take a look at the possibility this weekend.

If it isn't easy to implement in ejabberd, the bot could login in ejabberd, join the room, send the message and logout.

Patch available for testing.

I've reported the feature request here: Allow admins to send messages to rooms.

I wrote a simple patch for ejabberd trunk SVN.

If you try it, tell me if it works correctly.

Syndicate content