openfire

How To get Old Messages (Chat History) from XMPP

烈酒焚心 提交于 2019-12-03 07:06:10
问题 I am new to XMPP. and I need to get chat history from Openfire with XMPP . I did Googling but didn't get satisfactory Answer. Any link or idea will be great help. 回答1: You need to install Monitoring service plugin to enable message archiving. You may have to upgrade your openfire service if this plugin is not appearing in your available plugins section in the admin console. You will need to log into the admin console and go to: Server --> Archiving --> Archiving Settings to enable message

Openfire集群错误的解决方案

ε祈祈猫儿з 提交于 2019-12-03 06:52:25
在启动集群后, 登录后台到集群面, 出现错误如下: java.lang.ExceptionInInitializerError at org.jivesoftware.openfire.lockout.LockOutManager.getInstance(LockOutManager.java:58) 解决方案: 集群组件中的coherence-cache-config.xml和coherence.jar中的coherence-cache-config.xml重名, 导致集群组件在启动时读取到coherence.jar中的coherence-cache-config.xml 把集群组件中的coherence-cache-config.xml文件修改为coherence-cache-config-override.xml 再把tangosol-coherence-override.xml文件中对应的缓存文件设置选项修改为coherence-cache-config-override.xml就可以了 来源: oschina 链接: https://my.oschina.net/u/186249/blog/40637

PHPWEB在线客服

陌路散爱 提交于 2019-12-03 05:38:50
首先我用的是Openfire版本是:3.10.3 下载地址 Openfire ; 安装就不说了, 安装完成需要做的设置 1.安装2个插件 在openfire 有效的插件里有 这2个插件都是用来做WEB端用户添加、更新、查询openfire账号和查询用户状态的 PHP 端 方法就放出来一个 还有都是业务端的 插件都有文档大家可以自己去看看 基本业务都是和插件有关的 /** *//这个需要安装OPenfire User Service插件 * 获取用户当前在线状态 * * @param unknown $username * @return mixed text[空闲、在线、离开、电话中、正忙、unavailable] */ function get_of_user_status($username) { $_CFG = $GLOBALS['_CFG'];//设置的全局变量 $of_ip = $_CFG['chat_server_ip'];//openfire 服务器地址 $of_port = $_CFG['chat_server_port'];//插件端口一般默认9090 $of_url = get_of_url($of_ip, $of_port); $of_domain = $_CFG['chat_server_ip'];//这个是openfire 服务器名称 $url = $of

基于openfire的webIM的实现机制想法

喜欢而已 提交于 2019-12-03 05:38:39
目前webIM的openfire的实现方式,基本上分成以下几种 smack+dwr,js端采用定时轮询的方式,从web服务器中将xml取回来. 通过flash技术,连接到openfire服务器。 通过bosh技术直连到openfire服务器 第一种方式:实现比较简单,技术门槛也比较低,网络上也有比较成熟方案。但缺点是对于web服务器的压力太大,客户端不能连接太多。 第二种方式:flash技术,技术门槛比较高,而且与js的交付也不够方便,主要是这种方案自己也没有试验过。 第三种方式:bosh技术,这个需要安装一个apache作为代理,重定向到openfire的http端口。这个已经有比较成熟的方案,像jwchat,就是用这个。但在试验过程中发现会出现bad proxy的报错。原理实际上也是采用轮询技术,不断到apache上情况。我感觉连接的客户端比较多的话,性能应该会出现问题。 我目前想到一种方案是通过IE的ActiveX技术。采用C/delphi的xmpp客户端连接到openfire服务器。页面需要发送消息时,通过ocx的将xml发送给xmpp的客户端,然后xmpp客户端将信息再转发给openfire服务器。这种方案经过测试也是可以,而且对于web服务器压力不大。但确定是,只能在IE上使用。 来源: oschina 链接: https://my.oschina.net/u

Android asmack Chat client for XMPP server

╄→гoц情女王★ 提交于 2019-12-03 04:05:02
I am trying to build an Android chat client using asmack library, and an XMPP server like openfire . So can anybody provide me with some links to tutorials or code snippets for my client programm. Read their own documentation: SMACK DOCS you can start with Xabber android client. 来源: https://stackoverflow.com/questions/10975001/android-asmack-chat-client-for-xmpp-server

Android File Transfer not working via XMPP and OpenFire

老子叫甜甜 提交于 2019-12-03 03:13:16
Problem : Can't receive a file sent to my android app via XMPP and OpenFire Server. I can successfully send a file though. The asmack jar I am using is asmack-jse-buddycloud-2010.12.11.jar Code : connConfig = new ConnectionConfiguration("beta.myCompany.co.uk", 5222); connConfig.setSASLAuthenticationEnabled(true); try { connect("username", "password"); } catch (Exception e) { e.printStackTrace(); } ServiceDiscoveryManager sdm = ServiceDiscoveryManager.getInstanceFor(connection); if(sdm == null) sdm = new ServiceDiscoveryManager(connection); fileTransferManager = new FileTransferManager

How to keep the groupchat room (MUC) existing all the time even if disconnected from the XMPP server?

谁都会走 提交于 2019-12-03 02:47:54
I am developing a instant message module (part of J2EE web app) using openfire/jsjac within the protocol of XMPP (Jabber). The openfire users/groups management/tables has been redirected to our business database tables,which means I do not need to maintain users/groups in openfire any more. all the users/group relationship has been set in business database. Below is the Image i draw about the main pane according to requirement. because of my low reputaion i can not post an image, So i post a url for the image of my instantmessage main UI. Sorry for the unconvenience. instantmessage main UI

OpenFire/XMPP 503 service-unavailable error (XEP-0065 using iOS XMPPFramework)

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Problem : I am attempting a TURN Connection (XEP-0065) using the iOS XMPPFramework and an OpenFire Server. I want to be able to send and receive files. However, I am receiving a 503 service-unavailable error. Note : The base of my code is from the following tutorial : http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-server-setup/ XML Error : I've debugged through TURNSocket.m. It goes into processRequestResponse and has the following XML. (If I am not mistaken, this has been sent from OpenFire to me, rather than

agsXMPP + Openfire 即时通讯开发(二) 【文件传输】

↘锁芯ラ 提交于 2019-12-03 01:37:32
上篇bolg( agsXMPP + Openfire 即时通讯开发(一) 【agsXMPP 连接 Openfire】 )中agsXMPP的MiniClient已经可以相互之间进行通讯了,本篇介绍如何进行文件传输。 首先我们需要了解XMPP文件传输的整个对话过程: 这篇文章 写的比较详细 或者你可以查看XMPP源文档 XEP-0052 (PDF) 通过阅读以上文档我们已经了解XMPP传输文件前的对话过程,接下来按照上面的步骤完成消息对话。 当然前提是需要你看懂MiniClient的XML收发代码,其实在文件传输过程中,70%的时间我都花费在阅读agsXMPP 的代码上了,20%调试,10%才是我对代码的改动。 注意: 1、获取代理服务器后,与代理服务器通信的Jid需要这样获得 Jid jid = new Jid("proxy.127.0.0.1") 当你获取代理服务器资源和激活数据流的过程中需要用这个jid。 2、在同一次文件传输过程中xml消息的SID,都应该保持一致,同时Socket5连接的SID也应该为同一个SID。 3、无论文件接收端链接代理还是文件发送端链接代理,Socket5链接的Initiator属性设置为文件发送端的Jid,Target属性设置为文件接收端的Jid。 来源: oschina 链接: https://my.oschina.net/u/270180

使用agsXMPP查询聊天室内联系人

丶灬走出姿态 提交于 2019-12-03 01:37:20
项目中有这么一个需求: 1. 间隔一分钟,查询XMPP服务器,获取在某个聊天室中的成员信息 2. 获取查询结果,做相应处理 查询XMPP协议,发现XEP-0045文档有做相关的协议说明: http://xmpp.org/extensions/xep-0045.html#disco-roomitems ,用到的是多用户聊天室(MUC)的discovery操作,对应的Namespace Uri为: http://jabber.org/protocol/disco#items 查询消息定义: <iq from='you jid' id='message id' to='roomJid' type='get'> <query xmlns='http://jabber.org/protocol/disco#items'/> </iq> 正常的查询结果消息格式定义: <iq from='roomJid' id='message id' to='you jid' type='result'> <query xmlns='http://jabber.org/protocol/disco#items'> <item jid='roomJid/member1NickName'/> <item jid='roomJid/member2NickName'/> </query> </iq>