openfire

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

ぐ巨炮叔叔 提交于 2019-11-30 15:08:32
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 vice versa?) ... <iq xmlns="jabber:client" type="error

How to retrieve one to one chat history from Openfire using asmack android

时光毁灭记忆、已成空白 提交于 2019-11-30 14:00:41
Please can anyone show me the exact code for retrieving a chat history from openfire server to android client application using asmack library and XMPP protocol? In my openfire server I was enable merged Monitoring service/Open archive service and all messages successfully stored into database. But I don't know how those messages (chat history) retrieve to my client application which is building in ANDROID. What type of chat I need is one-to-one user chat (not group chat). I am success ed to getting group chat history with help of this but i want to retrieve one to one chat history Please if

Configuring punjab to send xmpp requests to Openfire

不羁的心 提交于 2019-11-30 13:34:42
问题 I am trying to use the punjab connection manager with Openfire. I have an already running Openfire server. I have also installed punjab and the server starts properly, allowing me to navigate to the port 5280 on localhost. (Although http://localhost:5280/http-bind gives a "resource not found message".) I am not sure how to proceed from here. I have enabled a setting in the openfire admin console under connection managers that says "Connection managers can connect to this server. " . How to

XMPPFramework - Retrieving Openfire Message Archives

旧城冷巷雨未停 提交于 2019-11-30 13:33:45
问题 Spent hours trying to solve this problem and I'm stumped! Trying to grab the Chat History between 2 users on my OpenFire server and I read that I plugin was needed to do this. So, I installed the 'Open Archive' plugin on my OpenFire server and send the following XML (as per the XMPP-0136 protocol documentation): <iq type="get" id="page1"> <retrieve xmlns="urn:xmpp:archive" with="username@server.com" start="1469-07-21T02:56:15Z"> <set xmlns="http://jabber.org/protocol/rsm"> <max>100</max> <

搭建OpenFire服务器Fastpath插件安装及webchat源码开发环境安装

帅比萌擦擦* 提交于 2019-11-30 08:23:46
Fastpath是openfire的一个功能插件,它基于openfire环境,安装它之前必须安装openfire,用户端用webchat,而客服人员用spark。Fastpath服务器端安装 Openfire 3.7.1下载地址: http://www.igniterealtime.org/downloads/index.jsp webchat 源码SVN地址:http://svn.igniterealtime.org/svn/repos/fastpath/webchat/trunk/ 直接运行安装openfire_3_7_1.exe 安装成功界面 点”stop”,然后点“start”,等重启动成功后点”Launch Admin”,进入登录页面: 到 http://www.igniterealtime.org/projects/openfire/plugins.jsp ,下载fastpath.jar,之后开始安装: 安装之前,如果你以前安装过enterprise.jar,那要把它删除(按照以下步骤),否则,在运行openfire时,fastpath.jar会被重命名。如果之前没装过enterprise.jar只需要执行第1步和第5步就行了,详细如下: 1、 停掉openfire服务器 2、 删除enterprise.jar及enterprise文件夹 3、 到openfire

通过XMPP协议实现即时通讯介绍

为君一笑 提交于 2019-11-30 08:23:30
四种即时通讯协议 概述 目前IM有四种协议:即时信息和空间协议( IMPP )、空间和即时信息协议( PRIM )、针对即时通讯和空间平衡扩充的进程开始协议 SIP (SIMPLE)以及 XMPP 。PRIM与XMPP、 SIMPLE类似,但已经不再使用了。 在这四种协议中,XMPP是最灵活的。XMPP是一种基于XML的协议,它继承了在XML环境中灵活的发展性。因此,基于 XMPP的应用具有超强的可扩展性 。经过扩展以后的XMPP可以通过发送扩展的信息来处理用户的需求,以及在XMPP的顶端建立如内容发布系统和基于地址的服务等应用程序。而且,XMPP包含了针对服务器端的软件协议,使之能与另一个进行通话,这 使得开发者更容易建立客户应用程序或给一个配好系统添加功能 。 采用XMPP协议的即时通信应用,当数google吧,Google Talk是基于XMPP协议,而且 它还允许其它IM自由使用XMPP协议 。如此一来, 任何IM供应商在遵循XMPP协议的前提下,都可以随时与Google Talk实现免费连接 . XMPP协议 什么是IMPP ? XMPP的前身是Jabber, 一个开源形式组织产生的网络即时通信协议 。XMPP目前被IETF国际标准组织完成了标准化工作。标准化的核心结果分为两部分:核心的XML流传输协议、基于XML流传输的即时通讯扩展应用 XMPP的核心XML流 传输协议

XMPP学习笔记-LESSON-001: run on eclipse

自古美人都是妖i 提交于 2019-11-30 08:23:16
之前也一直研究openfire,不过更多的是根据实际情况做些具体修改,以及具体操作,比如用户整合,服务器设置等,闲散的弄了几月,最近考虑系统的学习xmpp。 在学习本章之前,先看了一周的xmpp协议,呆滞了解了一下xmpp数据传输格式和规范。 如果想更好的学习openfire,我还建议先了解im历史,mima框架,可能更有助学习openfire。 今天开始看openfire源码。 首先需要在eclipse上配置,我这里以3.8.2源码为例,目前3.9alpha已经出来了,有兴趣的可以看看。 如何配置我就不多说了,网上文字很多: 1,主类: org.jivesoftware.openfire.starter.ServerStarter 2,参数配置: -DopenfireHome="${workspace_loc:openfire-3.8.2}/target/openfire" 3,选择debug+run 就可以启动openfire了。好像只支持jdk1.6 or + . 记得缺少几个jar,需要自己去找,很早前配过,忘了。 如果出现Admin console listening at http://127.0.0.1:9090 那么恭喜你,你已经运行openfire了。 来源: oschina 链接: https://my.oschina.net/u/927877/blog

openfire如何整合spring mvc

拥有回忆 提交于 2019-11-30 08:22:52
Openfire 的 web 服务器使用的是 jetty , jetty 启动的类是 AdminConsolePlugin ,至于该类是何时调用的就不再赘述。 Openfire 整合 spring MVC 的关键点在于你是在何时初始化 DispatcherServlet 。如果你要把 spring mvc 整合在 openfire 项目中那么直接配在 openfire 的 web.xml 就行了,但是如果你是想把它配置在一个插件中,那么下面的配置过程可能就会对你有那么一点帮助。所需要用的 jar 包在网上去下载。 1) 创建 openfire 插件项目,网上有大把的例子。 2) 配置 web-custom.xml ,注意 contextConfigLocation 的路径地址,根据你自己路径更改。 3)spring-actions.xml 配置,需要扫描的包路径根据你自己的路径更改。 4)Action 类, spring mvc 的 action 注解类怎么写就不啰嗦了,这里需要注意的一点就是, @RequestMapping(value=”/eraplugins/”) 这里一定要加上你的插件名路径,不然 spring mvc 找不到这个 mapping 。 5) 到此插件这块就差不多配置好了,然后 build 出来先放一边,接下来修改 openfire 这边的一些东西。 6)

XMPP学习笔记-LESSON-007:XMPPServer.java之Plugin开发

眉间皱痕 提交于 2019-11-30 08:22:41
网上关于openfire开发的文字非常多,在这里推荐一篇文章: http://redhacker.iteye.com/blog/1919329 openfire插件开发之完美开发 这是单独开发openfire插件的的一个实例。 不过我个人还是建议在原有的openfire源码上,保持源码结构的形式来开发openfire插件。这样在编译或者修改插件的时候,可以直接用openfire的编译命令来编译,更有利于源码库的管理。当然这是个人之见。 下面还是讲讲如何从代码层面开发of插件吧。 前一章,我们讲过插件管理器,初步了解了插件管理器的作用和生命周期,现在我们来看一下插件到底是什么? 插件就是Plugin(废话),plugin是插件的接口,这个接口定义了2个方法,初始化和注销。这在上一节插件管理器启动的时候有所提及,这也是插件的生命周期。简单来说,实现了这两个接口的对象就是一个of插件组件了。具体如何管理和运行,这就不用插件开发人员管了?想想,这里存在什么设计模式呢?模板?开发android的都知道,类似activity,activity可以说是集设计模式之大成者,改天会具体聊聊。 言归正传! 查看pluginmanager,loadPlugin: 首先载入plugin.xml , 这是插件的入口,来看看plugin.xml的配置,这也是很关键的地点: 以fastpath为例: <!-

XMPPFramework - Retrieving Openfire Message Archives

本秂侑毒 提交于 2019-11-30 07:52:59
Spent hours trying to solve this problem and I'm stumped! Trying to grab the Chat History between 2 users on my OpenFire server and I read that I plugin was needed to do this. So, I installed the 'Open Archive' plugin on my OpenFire server and send the following XML (as per the XMPP-0136 protocol documentation): <iq type="get" id="page1"> <retrieve xmlns="urn:xmpp:archive" with="username@server.com" start="1469-07-21T02:56:15Z"> <set xmlns="http://jabber.org/protocol/rsm"> <max>100</max> </set> </retrieve> </iq> In code, this is achieved via the following: NSXMLElement *iQ = [NSXMLElement