xmpp

TURN Connection using the iOS XMPPFramework and an OpenFire Server

你离开我真会死。 提交于 2019-12-12 02:35:40
问题 Problem : How can I get a successful TURN Connection using the iOS XMPPFramework and an OpenFire Server. I want to be able to send and recieve files. 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/ Update 13th April 2012 : After more research, I think the real relevant code I need to display in this question is this ... This is where the TURNSocket attempts to connect XMPPJID *jid = [XMPPJID

mod_zeropush not working with ejabberd 16.03

戏子无情 提交于 2019-12-12 02:18:38
问题 I am working with mod_zeropush and i was working fine with 15.07 until i switched to the ejabberd version 16.03. I am using Ubuntu OS 14.04 Copied all beam files again to ebin directory it iis last error === 2016-05-12 15:40:08.706 [error] <0.499.0>@ejabberd_hooks:run1:332 {undef,[{xml,get_tag_attr_s,[<<"type">>,{xmlel,<<"message">>,[{<<"type">>, <<"chat">>},{<<"image">>,<<"http://example.com/web-services/user_images /personal_image/support_team_01.03.2016.png">>},{<<"id">>, <<

ejabberd can not set nickname when add roster sometimes

你。 提交于 2019-12-12 02:14:00
问题 I am using iOS xmppframework and ejabberd as the xmpp server.When I add rosters with nickname, sometimes I can set the nick, sometimes I can not set nick. The packets I sent to the server are: 2015-07-03 10:19:24:144 pigai[36644:3a0b] The nick is songxiao 2015-07-03 10:19:24:144 pigai[36644:3a0b] SEND: <iq type="set" xmlns="jabber:client" id="roster-remotely-managed"><query xmlns="jabber:iq:roster"><item jid="xh1@192.168.1.67" name="songxiao"/></query></iq> 2015-07-03 10:19:24:144 pigai[36644

sending and receiving message through xmpp on android

非 Y 不嫁゛ 提交于 2019-12-12 01:55:02
问题 I am a beginner for chatting app. I searched and studied xmpp servers. I installed openfire xmpp server. The connection with xmpp server, registration and login tasks are done. Now i am trying to send and receive message. After user gets login and after that as user enters text to send. I used this code to send message ChatManager chatmanager; chatmanager = connection.getChatManager(); Chat newChat = chatmanager.createChat("cac6ba9dc9c6ac67"+"@pc", FirstPage.this); try { newChat.sendMessage(

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

Smack - When to call MultiUserChat.Join(…)

社会主义新天地 提交于 2019-12-12 01:47:01
问题 I'm a bit confused and can't find the answer in the docs. I'm developing a simple chat app for Android. I've created a group (muc) and everything works, but do I have to keep calling join() everytime I open the app? I've noticed that it doesn't work otherwise.. Don't understand why since the server knows that my jabberID is connected to this muc. Hope my question is clear enough. Thanks. 回答1: A (I Hope) complete explanation: short answer is yes. When a persistent room is created on your

XMPP for PHP (how to do it)

血红的双手。 提交于 2019-12-12 01:34:54
问题 First I'll outline my problem. What I want to do is create a site. When a client connects, every second or so a number will be broadcast by him. This is done by everybody on the site. So every second every client receives every other clients number. My Solution (that isn't currently making sense) I thought of using XMPP and an OpenFire server to do this, but I can't seem to make it work with PHP. Finally the question Is there a better way to solve my problem than the one I outlined? Another

XMPP Spring Integration Property or field 'json' cannot be found

巧了我就是萌 提交于 2019-12-12 01:24:40
问题 I tried to implement XMPP with Spring Integration using the following tutorial: https://grokonez.com/spring-framework/spring-integration/firebase-cloud-messaging-xmpp-server-example-receive-upstream-messages-spring-integration However I am getting the following error: org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'json' cannot be found on object of type 'org.jivesoftware.smack.packet.StandardExtensionElement' - maybe not public or not valid? at org

User is still Online although user is not connected to the server. And failed to reconnecting to the server

拟墨画扇 提交于 2019-12-12 01:22:32
问题 I am using smack client in my chat application. Everything is going to be fine but when connection aborted for some reason, my server is showing online for that user JID. My problem is that how to reconnect to the server again after disconnecting. I am able to catch for connection using connection.isAuthenticated() method in my service thread. But unable to reconnect to the server. 回答1: you can enable mod_ping module on server side (ejabberd) to overcome online issue if client disconnect but

XMPP:BOSH client session getting closed randomly while connecting to openfire

老子叫甜甜 提交于 2019-12-12 01:21:40
问题 I get this message after sometime. org.jivesoftware.openfire.http.HttpSession - Request 3436024236568502 > 3436024236568501, ending session. Basically I send around 1,00,000 messages/queue/hour each of 400 bytes. I see that only this session is terminated . What does this message indicate and what s the possible solution? 回答1: You run into the following constraint else if (rid > (lastRequestID + maxRequests)) { Log.warn("Request " + rid + " > " + (lastRequestID + maxRequests) + ", ending