openfire

difference between XMPP servername and XMPP servicename?

不羁岁月 提交于 2019-12-04 21:44:43
问题 In Smack API, there is a configuration class for connection, described at this page ConnectionConfiguration I am confused about the distinction between service name and server name. Suppose I have a computer named "mybox.mydomain.com", and I have ejabberd on it with a configured host called "myhost" (using the line {hosts, ["myhost"]}. in ejabbed.cfg), what is the host name, server name and service name in this case? 回答1: myhost: service name (or XMPP domain) mybox.mydomain.com: hostname and

File transfer using XMPP (Extension XEP-0065)

孤街浪徒 提交于 2019-12-04 21:17:03
Not sure why I am getting turn socket failed (turnSocketDidFail called). Anybody can help me in figure out this? Please point me what am I doing wrong here. I know there are lots of question like this and I have already checked all of these and from that I have taken little help already. One of client is Spark and other is simulator. Settings: Server: testXyz Senderjid: user1@testXyz Receiverjid: user2@testXyz XMPPJID *jid = [XMPPJID jidWithString:Receiverjid]; [TURNSocket setProxyCandidates:[NSArray arrayWithObjects:Receiverjid, nil]]; TURNSocket *turnSocket = [[TURNSocket alloc]

Delete a Friend from Roster in Xmpp/Openfire

这一生的挚爱 提交于 2019-12-04 19:14:58
In my chat application. I am using smack library , with the help of Subscription Management I have done the part of adding a friend to the Roster of a particular person. Now I want that when some person denies the friend request, I send a UNSUBSCRIBE PACKET to the other user for the same, the friend is not deleted from the roster of the other user. It simply shows NONE subscription. CODE: Presence unsubscribe = new Presence(Presence.Type.unsubscribe); unsubscribe.setTo(ABC@ABC.COM); connection.sendPacket(unsubscribe); How can I delete the user from the Roster of the friend. I can do it from

在OpenFire的基础上安装JWChat 1.0

Deadly 提交于 2019-12-04 18:14:02
OpenFire 安装好后,我又安装了 JWChat 做为 Client ,目前 OpenFire 已经支持 HTTP Binding ,因此 JWChat 不用再依赖 JHB ( JabberHTTPBinding ),但是在实际安装时还是遇到一些问题,这里记录一下: 1. 首先是下载 JWChat 1.0 , http://blog.jwchat.org/jwchat/download/ ; 2. 直接解压安装包(不是安装)到自己的目录; 3. 这里要注意解压后的文件不能直接使用,需要把所有以“ .js.js” 结尾的文件改为“ .js ”文件,把“ .html.html ”结尾的文件改为“ .html ”文件; Linux 下运行如下命令修改文件名: rename “.js.js” “.js” *.js.js rename “.html.html” “.html” *.html.html 另外压缩包里提供了多语言版本,不过需要我们手工改变其扩展名,如想要中文界面则需修改“ .zh_CN” 结尾的文件名 rename “.js.zh_CN” “.js” *.js.zh_CN rename “.html.zh_CN” “.html” *.html.zh_CN 4. 检查 Apache 2 的 /usr/local/apache2/modules 目录下是否包含 mod_proxy

Openfire server, multiple connection, route.all-resources doesn't work

久未见 提交于 2019-12-04 17:36:25
We use http-bind with BOSH and Openfire (3.8.2) as backend and Strophe library (JS) on frontend for our chat application. Every user gets a specified unique resource by connection. That means, that a user can be logged in different devices/browsers at once (multiple connection, e.g user@example.com/resource1 , user@example.com/resource2 etc.). Ideally, we want messages to be sent to all connected resources. We set route.all-resources setting="true" and the connection priority is equal for all user resources, but behavior hasn't changed at all (chat messages received only last connected user

即时通信系统IM--XMPP

点点圈 提交于 2019-12-04 15:36:53
即时通讯(Instant Messaging)是目前Internet上最为流行的通讯方式,各种各样的即时通讯软件也层出不穷;服务提供商也提供了越来越丰富的通讯服务功能。 不容置疑,Internet已经成为真正的信息高速公路。从实际工程应用角度出发,以计算机网络原理为指导,结合当前网络中的一些常用技术,编程实现基于C/S架构的网络聊天工具是切实可行的。月工资发放总额、月考勤罚款统计、参保金额统计、公积金金额统计。 实时通信(Instant Messaging,简称IM)是一个实时通信系统,允许两人或多人使用网络实时的传递文字消息、文件、语音与视频交流。 即时通讯的安全威胁包括:ID被盗、隐私威胁、病毒威胁等,下面是即时通讯用户应该遵循的一些安全准则,以保护自身的网络安全和隐私。 即时通讯安全准则主要包括:不随意泄露即时通讯的用户名和密码;不在第三方网站登录网页版即时通讯软件;定期更改密码;谨慎使用未经认证的即时通讯插件;在即时通讯设置中开启文件自动传输病毒扫描选项;不接收来历不明或可疑的文件和网址链接。 系统的逻辑视图 C-XX:用户端使用自己定义的协议与NAS、ACS进行通信,提供IM的基本功能。 NAS:为用户C-XX分配ACS服务器,在用户登录时进行。NAS简单的采用轮转的方式,依次分配系统中存在的ACS给登陆的用户。 ACS:为用户提供IM服务端功能,主要有用户信息的修改

Online and Offline users using strophe.js in real time

社会主义新天地 提交于 2019-12-04 13:13:09
I am using strophe.js javascript client library for connecting to xmpp server( openfire ) using below code. var BOSH_SERVICE = 'http://127.0.0.1:7070/http-bind/'; connection = new Strophe.Connection(BOSH_SERVICE); connection.connect("jid", "password", onConnect); and callback function(onConnect) as below : function onConnect(status) { if (status == Strophe.Status.CONNECTING) { log('Strophe is connecting.'); } else if (status == Strophe.Status.CONNFAIL) { log('Strophe failed to connect.'); $('#connect').get(0).value = 'connect'; } else if (status == Strophe.Status.DISCONNECTING) { log('Strophe

How to add more attributes to Openfire MySQL database?

风格不统一 提交于 2019-12-04 12:53:41
I setup a Openfire server with external MySQL database using the openfire_mysql.sql file from the openfire installation directory to populate the database, the connection and everything basic seems to be ok. However I need to add another attribute of a User instead of just "name", "email", I need to add "phone" and a long text field for users to save some notes. Actually using the Smack API there are already enough attributes that can be stored in a User's data based on the API doc: http://docs.jivesoftware.com/smack/latest/javadoc/org/jivesoftware/smack/AccountManager.html

Retrieving offline messages using asmack

吃可爱长大的小学妹 提交于 2019-12-04 10:47:52
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 (XMPPException ex) { setConnection(null); } try { connection.login(username, password); try {

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

流过昼夜 提交于 2019-12-04 09:38:29
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].xmppStream.myJID.user history:nil password:nil]; XMPPMUC * xmppMUC = [[XMPPMUC alloc]