xmpp

extending ejabberd with modules for custom mysql schema?

天涯浪子 提交于 2019-12-22 17:59:08
问题 Instead of ejabberd.sql,I am using a custom MySQL schema(because of legacy reasons). I will be doing some DB operations on certain activities like Ping,Pong,Msg deliverd,Msg read and most importantly getting/setting roster list and announcing presence(all of these on my own schema). However,ejabberd seems to use ejabberd.sql all throughout and its source code is pretty much dependent on it.Fiddling with the source code is the last thing I would do since I am not aware of its dependencies.

How to send a broadcast message with SmackAPI?

回眸只為那壹抹淺笑 提交于 2019-12-22 15:54:06
问题 We're developing special devices that uses XMPP to talk to each other. A new API i am developing now, should talk to these devices too. The problem i am facing - all these devices are building little groups - for each customer we have... so we will have a chat-room for each group of devices, or, for each of our customer with his bunch of devices ;) But now.. the api should be able to talk to every device that is connected. I don't need a real broadcast-mechanism - in the end, i will send a

ejabberd MAM does not work for MUC

守給你的承諾、 提交于 2019-12-22 13:11:27
问题 xep-0313 works for rosters, but does not work for room chat. I can get archive message for the rosters, but I can not get archive message for the room, why? <iq type='set' id='juliet1'> <query xmlns='urn:xmpp:mam:0'> <x xmlns='jabber:x:data' type='submit'> <field var='FORM_TYPE' type='hidden'> <value>urn:xmpp:mam:0</value> </field> <field var='with'> <value>roomJid@conference.host</value> </field> </x> </query> </iq> The receive message is: <message xmlns="jabber:client" from="test3@192.168.1

How can I transfer a file via XMPP using Python?

China☆狼群 提交于 2019-12-22 11:30:15
问题 I'm using xmpppy library for my jabber remote administration bot, but I can't find how to send/receive a file and save it inside the directory specified. The documentation is poor and there isn't any examples, but I really want to make it. Can anyone show some examples or some links about it? Or maybe I should use an alternative xmpp bindings? 回答1: There are two XEP's (XMPP Extensions) that cover file transfer: XEP-0096 http://xmpp.org/extensions/xep-0096.html (called SI (Stream Initiated)

Google Talk receiving messages with different jid resource

若如初见. 提交于 2019-12-22 11:28:19
问题 I think I'm doing something wrong. I want to send a XMPP message to my GTalk id but I don't want that the GTalk app receives the message so I'm changing the resource of the recipient JID. My problem is that GTalk is receiving all the messages although thay have different resource. My code: public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { // Parse incoming message XMPPService xmpp = XMPPServiceFactory.getXMPPService(); Message msg = xmpp.parseMessage

XMPP: retrieving BOSH Session ID and RID

心不动则不痛 提交于 2019-12-22 11:06:56
问题 Please tell me how to retrieve the SID and JID. I am using Strophe JS. <body rid='489923353' xmlns='http://jabber.org/protocol/httpbind' sid='ab7f5957' to='127.0.0.1' xml:lang='en' xmpp:restart='true' xmlns:xmpp='urn:xmpp:xbosh'/> var conn = new Strophe.Connection(bosh_service); However, conn.sid or conn.rid is not returning the same numbers. 回答1: After this and that, I think I found the answer! else if(status === Strophe.Status.CONNECTED){ //get roster var iq = $iq({type: 'get'}).c('query',

Send XMPP (Smack) Message

梦想的初衷 提交于 2019-12-22 09:59:51
问题 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);

Could Not Connect XMPP Server with smack : EOF Exception when implementing GCM XMPP-based App Server

痴心易碎 提交于 2019-12-22 09:54:38
问题 java.io.EOFException: no more data available - expected end tag </stream:stream> to close start tag <stream:stream> from line 1, parser stopped on END_TAG seen ...</mechanisms></stream:features>... @1:344 at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3035) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144) at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java

Session resume problem with Strophe attach and Ejabberd

不问归期 提交于 2019-12-22 09:14:15
问题 I'm having a lot of difficulty getting strophe's 'attach()' function working. I am working on a social network where users will be surfing pages and at the same time keep their chat connection on. I don't want to reconnect/reauthorize on every page so as per this link, http://groups.google.com/group/strophe/browse_thread/thread/430da5e788278f3a/93c48c88164f382f?show_docid=93c48c88164f382f&fwc=1, i am storing the SID and RID into a cookie onunload. On the next page when i try to use the new

using XMPP for user location

僤鯓⒐⒋嵵緔 提交于 2019-12-22 08:35:06
问题 I want to create an application for Android that enables me to get the geolocation of a user. This has to be made as a client-server app and for the server side I'm using OpenFire. For getting the user's location I would have to use XEP-0080, right? And SmackAPI also? I'm completely new to XMPP and Smack, so if anyone could get me a few pointers or maybe examples or any kind of documentation about this I'd be very grateful. Thanks in advance for any help. 回答1: An Android project I’m currently