multiuserchat

Accepting chatroom invitation

南楼画角 提交于 2019-12-17 22:37:22
问题 I'm able to create a MUC using XMPPFramework and send user invitation requests to join that room by using the code below. // Creating AppDelegate *dele =(AppDelegate *) [[UIApplication sharedApplication]delegate]; xmppRoom = [[XMPPRoom alloc] initWithRoomStorage:dele jid:[XMPPJID jidWithString:self.roomName] dispatchQueue:dispatch_get_main_queue()]; [xmppRoom addDelegate:dele delegateQueue:dispatch_get_main_queue()]; [xmppRoom activate:dele.xmppStream]; [xmppRoom joinRoomUsingNickname:self

Error Creating Chat Room StropheJS with ejabberd

喜欢而已 提交于 2019-12-14 03:44:36
问题 I am trying to create a chat room using StropheJS My Code: var presence = $pres({ to: "testRoom@conference@localhost/yashwanth, from: Strophe.getBareJidFromJid(connection.jid) }); Groupie.connection.send( presence.tree()); Groupie.connection.muc.createInstantRoom("testRoom@conference.localhost/yashwanth", function(status) { console.log("Room Created Successfully", status); }, function(status) { console.log("Error Creating Room", status); }); While creating the room I am facing the below error

ejabberd MUC message history

梦想与她 提交于 2019-12-13 13:25:38
问题 I'm using ejabberd XMPP server for a chat client, which also has a group-chat function. My problem is, that when a new user joins a group room, he only gets the first 20 messages from the room, although the history_size is set to 200(for now). On the client side, when a new user joins the room, the presence stanza contains the history element, asking for messages sent after 1970. The server time is at 2014, so theoretically it should send out all the message, or at least 200. ejabberd.cfg muc

Fetching ejabberd MUC members list

老子叫甜甜 提交于 2019-12-13 08:44:28
问题 There seem to be some threads around this and it seems very obvious an issue to be a problem, but somehow in MUCs / rooms created by my ejabberd mobile clients, the creator / owner is able to fetch the members list but when I fetch the same from the members, there is an administrative privileges required error. Below are the request and response stanzas as well as the room options. Can someone advise please if there is something I'm overlooking here ... many thanks? Request from member: <iq

Ejabberd trying to subscribe a user through api

萝らか妹 提交于 2019-12-13 04:01:18
问题 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 following: hosts: - "localhost" - "my.personal.host" listen: - port: 5285 module: ejabberd_http request_handlers: "/api": mod_http_api acl: admin: user: - "@localhost" modules: mod_muc: mam: true default_room_options: allow_subscription: true access: - allow

ejabberdctl command “create_room” not known

蓝咒 提交于 2019-12-12 09:25:11
问题 I wanted to setup a simple jabber server to enable chat with my team. Everything went smoothly until the point I wanted to create conference rooms. When I run ejabberdctl with no parameters, the option create_room does not appear in the list, and if I run ejabberdctl create_room test I get the following response: Error: command "create_room" not known. My config file (/etc/ejabberd/ejabberd.cfg) is as following: %% Admins of this server are also admins of MUC service: {access, muc_admin, [

Joining XMPP MUC Room without invite - ejabberd

孤人 提交于 2019-12-12 01:47:47
问题 For persistent XMPP rooms, what is the way to make a client join back the room again if he / she has disconnected once? During testing, I find that simply sending back the presence stanza to the said room's JID does not make the client be available in the room again. Does re-entering a room happen only when a user has received an invite (and thus, in our case, if the user disconnects once, the user would need another invite to join the room?)? If that is the case, then what is the best way to

Unable to send or receive messages in Multi User Chat - XMPPFramework

三世轮回 提交于 2019-12-11 09:48:50
问题 I have created a group on Openfire server and two users. I'm able to authenticate both users using XMPPFramework but unable to exchange the messages between them. I can see both users join the group on Openfire server. Using the following server details: #define kHostName @"Some Server URL" #define kServerName @"Some Server Name" #define kRoomAddress @"testchatroom@conference.Some Server Name" Using the following code for stream setup and creating room: - (void)setupStream { NSString

smack presence listener in multi user chat

空扰寡人 提交于 2019-12-10 18:25:19
问题 smack presence listener in multi user chat not getting called. Used Smack Api to login and then added roster.addRosterListener(mRoasterListener); but could not get any success to listen when presence of other user of the chat room changes. I tried following code to get the presence listener to work : connection.login(loginUser, passwordUser); MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(connection); muc = manager.getMultiUserChat(roomID + "@" +context.getString(R.string

Get members nickname of MUC Room

冷暖自知 提交于 2019-12-09 18:35:59
问题 Is there a way to get all nicknames of a MUC Room with an ejabberd server? I'm trying with: <iq from='crone1@shakespeare.lit/desktop' id='member3' to='coven@chat.shakespeare.lit' type='get'> <query xmlns='http://jabber.org/protocol/muc#admin'> <item affiliation='member'/> </query> </iq> but I obtain only jid without nicknames: <iq from='coven@chat.shakespeare.lit' id='member3' to='crone1@shakespeare.lit/desktop' type='result'> <query xmlns='http://jabber.org/protocol/muc#admin'> <item