Questions tagged [multiuserchat]

Multi-User Chat (MUC) is an XMPP protocol extension for multi-user text chat, whereby multiple XMPP users can exchange messages in the context of a room or channel, similar to IRC. In addition to standard chatroom features such as room topics and invitations, the protocol defines a strong room control model, including the ability to kick and ban users, to name room moderators and administrators, to require membership or passwords in order to join the room.

Similar to, but less widely used than IRC, Multi-User Chat (MUC) is an XMPP protocol defined by XEP-0045:

This specification defines an XMPP protocol extension for multi-user text chat, whereby multiple XMPP users can exchange messages in the context of a room or channel, similar to Internet Relay Chat (IRC). In addition to standard chatroom features such as room topics and invitations, the protocol defines a strong room control model, including the ability to kick and ban users, to name room moderators and administrators, to require membership or passwords in order to join the room, etc.

A common, open-source implementation of XMPP is the Smack API. For Android, there is also the aSmack API, but this is being merged into Smack to unite the forked APIs.

Usage examples of a MUC can be found here.

204 questions
0
votes
1 answer

Ejabberd trying to subscribe a user through api

I am trying to subscribe a test user to a test room using the Ejabberd API. I am sure I just misconfigured something but I can't seem to find the issue. I am running Ejabberd 16.09 and trying to use mod_http_api My configuration is the…
Jeffrey
  • 189
  • 1
  • 8
0
votes
1 answer

Ejabberd muc room history getting erased when server restarts

I am subscribing to a muc room and I am getting the messages when a user messages to muc room, everything upto here is fine, but when server restarts room history is getting erased, therefore I am unable to get any previous messages. This is my…
sashank
  • 21
  • 3
0
votes
1 answer

createInstantRoom throwing error in strophe.muc.js

I'm trying to create muc room using createInstantRoom method in strophe.muc.js, but its throwing error. can anyone plese tell me what is the format of room name given as input to createInstantRoom method I tried…
sashank
  • 21
  • 3
0
votes
1 answer

ejabberd muc_sub subscribing a user to a room from within the ejabberd server

Please bear with me if my wording is a little off. What I'm basically trying to do is write a script that runs on the server the ejabberd service is running on. This script is supposed to create a chat room and automatically subscribe users to…
Jeffrey
  • 189
  • 1
  • 8
0
votes
1 answer

Per MUC channel bot managed by ejabberd

I would like to run one service process per MUC channel on an ejabberd server. Ideally I would like ejabberd to start / monitor that process. That is, when a new MUC gets opened ejabberd should start the bot process and tell it the channel name…
MSI
  • 1
  • 1
0
votes
1 answer

How to add avatar for MUC room?

I Have created Chat group using MUC with smack libarary.i use ejabbed server. I have no idea about how to add Avatar for MUC room. Is there any option to add avtar image for MUC? Anyone can help me?
D G
  • 176
  • 1
  • 8
0
votes
2 answers

How to get MUC room list which a user already participated?

I am using MUC for group chat using smack. i want to get list of MUC rooms which user already participated like whatsapp. Using belove code, I get only rooms which user joined but i need to get the all groups which I already became a member. Here is…
D G
  • 176
  • 1
  • 8
0
votes
1 answer

MUC configuration error : Couldn't find a field for the specified variable

I want to create group chat like whatsapp. i am using MUC service with ejabberd server. I have created group successfully but i unable to add member permanentantly in a group. I have also tried using send invitation and join group but it not work…
D G
  • 176
  • 1
  • 8
0
votes
2 answers

How to accept invitation in MUC?

I am developing chat application with xmpp. I have created group using MUC and sent invitation to other user. but i don't know how to accept and decline invitation. here is my code to send invitation : EntityBareJid userInviteJID =…
D G
  • 176
  • 1
  • 8
0
votes
1 answer

The MUC configuration 'muc#roomconfig_roomowners' is not supported by the MUC service

I am working with xmpp and I want to create group chat. When I try to create group using the code below, I get the following error: The MUC configuration 'muc#roomconfig_roomowners' is not supported by the MUC service'. Why do I get this error?…
D G
  • 176
  • 1
  • 8
0
votes
1 answer

Not being able to register a user to shared roster group to my ejabberd server using php script

I have a few departments in our workplace. Whenever we register a new employee, we need to register this employee to this department so that all other members in the department can see him/her and also chat with him/her. What should be the best way…
sonkhya
  • 17
  • 1
  • 6
0
votes
1 answer

How to make sure that a chat-room was left successfully? (instance.connection.muc.leave())

Here I've found that there's an ability to add a callback as the 3rd argument to a leave method: https://github.com/metajack/strophejs-plugins/blob/96da306f5394b901e190a3f7365fbbb676fddb51/muc/strophe.muc.js#L117 But it doesn't work. How to add a…
Julia
  • 674
  • 1
  • 6
  • 18
0
votes
1 answer

ejabberd MUC-Sub trouble

I am running an ejabberd (ver 18.3.0) server with the following config for mod_muc: mod_muc: host: "conference.@HOST@" ... default_room_options: allow_subscription: true persistent: true mam: true I am trying to…
SriniR
  • 1
  • 1
  • 1
0
votes
1 answer

eJabberd cannot invite several users to multiple MUC room

I have run this code: sudo -u ejabberd /usr/sbin/ejabberdctl send_direct_invitation mt75_1 conference.msg.hajmobility.my none none msg_din@msg.hajmobility.my:msg_apool@msg.hajmobility.my It works for the first time. But when i want to add the same…
DiN CS
  • 45
  • 5
0
votes
0 answers

Android - XMPP NotConnectedException

On internet reconnect Xmpp throw error when I send message through MUC SmackException$NotConnectedException: Client is not, or no longer, connected. but when i manually finish activity and start the activity again it works fine.
Kalu Khan Luhar
  • 1,044
  • 1
  • 22
  • 35