[solved] Send message to MUC channel via shell

I can send messages from shell via

$ ejabberdctl send_message_chat alice@example.org bob@example.org "hi, how are you?"

but when sending to a MUC JID, I get an error:

Not acceptable.
The recipient or server understands the request but is refusing to process it because it does not meet criteria defined by the recipient or server (e.g., a local policy regarding acceptable words in messages).
It is not allowed to send private messages to the conference

What can I do to get the message into the channel?

With ejabberd 15.09, it works

With ejabberd 15.09, it works via command line:

$ ejabberdctl send_message groupchat alice@example.org/resource room@conference.example.org "''" 'message'

The "''" (double quote, single quote, single quote, double quote) is to set the subject parameter empty.

Note that the user's resource has to be online when sending.

Syndicate content