openfire

Join an existing XMPP MUC Room with Owner Privileges using iOS Openfire and Robbie Hanson library

穿精又带淫゛_ 提交于 2019-12-06 07:18:26
问题 I am joining an existing MUC room using the next code: XMPPRoomMemoryStorage *roomStorage = [[XMPPRoomMemoryStorage alloc] init]; XMPPJID *roomJID = [XMPPJID jidWithString:@"newRoom5@conference.administrator"]; xmppRoom = [[XMPPRoom alloc] initWithRoomStorage:roomStorage jid:roomJID dispatchQueue:dispatch_get_main_queue()]; [xmppRoom activate:[self appDelegate].xmppStream]; [xmppRoom addDelegate:self delegateQueue:dispatch_get_main_queue()]; [xmppRoom joinRoomUsingNickname:[self appDelegate]

Retrieving offline messages using asmack

ⅰ亾dé卋堺 提交于 2019-12-06 06:54:38
问题 I'm new to asmack and openfire, looked a lot for a working answer to this but couldn't find it anywhere. How do I retrieve offline messages on Logging into my account on asmack? I've used the following code: configure(ProviderManager.getInstance()); //configuring providers before creating a connection ConnectionConfiguration connConfig = new ConnectionConfiguration(HOST, PORT); connConfig.setSendPresence(false); connection = new XMPPConnection (connConfig); try { connection.connect(); } catch

Converse.js render into a container

让人想犯罪 __ 提交于 2019-12-06 06:17:46
问题 Is it possible to configure Converse.js to render it's boxes into custom div containers instead of adding them to the body of the page? 回答1: Yes, you can do this by writing a converse.js plugin in which you override the insertIntoPage method of ChatBoxView . Refer to the plugin documentation I linked to above. In short, it would look something like this: // The following line registers your plugin. converse_api.plugins.add('myplugin', { overrides: { // If you want to override some function or

New registration on openfire with Strophe.js

北城余情 提交于 2019-12-06 06:02:53
I use strophe.js library with Openfire to send and receive XMPP messages in browser. It works fine, but only for users I already have in my contact list - roster. I need to get the new users registered. i know how to add existing people in my roster but i dont know how to register new users on openfire. Use XEP-0077 , there already exists a plugin in Strophe's plugin repo. If not, as a user with admin rights, you need to implement the Add User from XEP-0133 . Presumably this would be done on the server. Finally, there seems to exist the quick and dirty solution of an HTTP API . Using` strophe

Send XMPP (Smack) Message

时间秒杀一切 提交于 2019-12-06 03:47:43
Ok, the problem should be trivial but I can't get to the bottom of it. I have two users A & B Their JID's for this example will be A@123 and B@123 where 123 is the IP of the server. I'm sending a message from A->B using the following code: chat = chatmanager.createChat(username, new MessageListener() { public void processMessage(Chat chat, Message message) {}}); String sendUsername = username + "@123"; Message msgObj = new Message(sendUsername, Message.Type.chat); msgObj.setBody(message); chat.sendMessage(msgObj); I've hardcoded the IP so that I'm 100% sure that I attach the "@123" at the end

openfire 3.8.1 的JDK陷阱

吃可爱长大的小学妹 提交于 2019-12-05 23:18:40
由于系统是使用RMXMPPLib.dll基础上的二次开发,在连接到openfire服务器时,发现对于window版本的Openfire可以连接成功,但在linux版本下,就是无法连接。比对2者的登入过程日志以及google很久后,发现居然是JDK版本不对引起的。 JDK6.0的版本,对于 DIGEST-MD5 算法支持存在问题,openfire在判断JDK版本为6.0时,就自动会关闭采用 DIGEST-MD5 的登入验证算法,但RMXMPPLib.dll默认就是采用这种登入算法,所以就登入不成功。 在linux JDK6.0下的日志过程如下: <stream:stream to="kftest2" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" > <stream:stream from="kftest2" id="51d61c00" version="1.0" xml:lang="en" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams"/> <stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/

How can I implement auto join for XMPP room in iOS

扶醉桌前 提交于 2019-12-05 18:52:58
I want to do Auto Join room in XMPP group chat. I have all of group created from back end Server, first time i join the room but when i disconnect from XMPP (out of the app) and back inside app and re-connect xmpp, I again need to join the room. In side app one user already available in multiple room so not possible to Join again n again in the room . Please help.. Thanks in Advance! I think you have to show this link : https://xmpp.org/extensions/xep-0048.html . Here you can find the solution of Auto join and room storage. There is No way for , reEnter to your rooms Automatically. you should

Android基于XMPP Smack Openfire下学习开发IM(二)对分组、好友和头像等一些

回眸只為那壹抹淺笑 提交于 2019-12-05 12:41:06
下面就一起来学习一下,如何查询分组和添加分组等! 一、查询所有分组 通过Roster来获取所有分组,Roster可以通过connection.getRoster()来得到。 [java] view plaincopyprint? <SPAN style="WHITE-SPACE: pre"> </SPAN>/** * 获取所有组 * * @param roster * @return 所有组集合 */ public static List<RosterGroup> getGroups(Roster roster) { List<RosterGroup> grouplist = new ArrayList<RosterGroup>(); Collection<RosterGroup> rosterGroup = roster.getGroups(); Iterator<RosterGroup> i = rosterGroup.iterator(); while (i.hasNext()) { grouplist.add(i.next()); } return grouplist; } /** * 获取所有组 * * @param roster * @return 所有组集合 */ public static List<RosterGroup> getGroups(Roster

centos安装openfire

落花浮王杯 提交于 2019-12-05 08:51:07
1.在 http://www.igniterealtime.org/downloads/index.jsp#openfire 下下载openfire # rpm -ivh openfire-3.9.1-1.i386.rpm Preparing... ########################################### [100%] 1:openfire ########################################### [100%] 默认安装在 /opt/openfire 注:openfire安装完后到目录文件都在 /opt/openfire 目录下,其中用到的SQL脚本在/opt/openfire/resources/database下面,这里我用的是Oracle数据库,用 https://127.0.0.1:1158/em登录到控制台新建了表空间和用户,接着用PL/SQL Developer 导入openfire_oracle.sql,完了成了openfire所需要的表创建。 特别注意:这里需要将ojdbc6.jar文件拷贝到/opt/openfire/lib目录下,才能启动服务器,否则连接Oracle数据库会报错。我的环境是jdk1.7,Oracle11g ojdbc6.jar下载地址: http://pan.baidu.com

OpenFire - Permanent Group Chat using PubSub

馋奶兔 提交于 2019-12-05 00:16:51
问题 First from this question : Asmack/openfire How do I keep a user permanently in groupchat room I read that I cannot use MUC to keep the user persistent in the group, they'll automatically leave the group and can rejoin after they come online again, that concept is like IRC like what've been asked in here -> http://community.igniterealtime.org/thread/48020. Then from the stackoverflow question I read about using pubsub, then I've done some research about pubsub and what I've got is pubsub can