ejabberd

Does ejabberd support offline file transfers? [closed]

别等时光非礼了梦想. 提交于 2019-12-21 17:00:01
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am working on an XMPP client, using ejabberd as server. My question is how can I support offline file transferring? I only want to do the offline file transferring for image files. For example, I can transfer an image to John even if he is offline. When John comes back online, the server will send him the

getting “XMPPException$XMPPErrorException: XMPPError: service-unavailable - cancel” while creating group using XMPP (4.1.3)

别说谁变了你拦得住时间么 提交于 2019-12-21 12:18:33
问题 I am facing issue while creating chat group using XMPP(4.1.3). My code is try{ // Get the MultiUserChatManager MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(ClosrrService.xmppConnection); Log.e("Connection : ", ClosrrService.xmppConnection.toString()); // Get a MultiUserChat using MultiUserChatManager MultiUserChat muc = manager.getMultiUserChat("dayaroom@conference."+Constants.HOST); // Create the room and send an empty configuration form to make this an instant room muc

How make video call with ejabberd?

一世执手 提交于 2019-12-21 04:57:21
问题 How make video call with ejabberd ( like msn and skype ) ? 回答1: ejabberd doesn't handle audio/video natively. Audio and video is handled through the Jingle (XEP-0166), which is client-to-client. If you want to place audio or video calls you should make sure both clients support Jingle through normal serivce discover means (see section 11 of XEP-0166). There aren't a lot of clients that do this right now, but Psi, at least, supports it in more recent builds. 回答2: You can try using Jingle Nodes

ejabberd and Push Notification

北战南征 提交于 2019-12-20 09:21:58
问题 I have integrate chat system in my iOS and Android app using XMPP. I have used ejabberd 2 in the server side. Chatting sytem works fine. I want to integrate push notification in my chating using APNS and GCM. How can I send a push notification with each chat message ? ejabberd 2 has any API or extensions available to implement this feature ? Help is highly appreciable, 回答1: Please use the below blog , it is very simple and useful, it is works fine for me. http://symmetricinfinity.com/2013/01

ejabberd 16.06 + mysql 5.5.50, message history is not saved

喜你入骨 提交于 2019-12-20 07:28:44
问题 I use ejabberd 16.06 + mysql 5.5.50, message history is not saved. My ejabberd.yml: ## MySQL server: odbc_type: mysql odbc_server: "freldo" odbc_port: 3306 odbc_database: "ejabberd" odbc_username: "ejabberd" odbc_password: "ejabberd" modules: ... mod_mam: db_type: odbc default: always for the formation of the database structure, I used: mysql.sql I get an error: @ejabberd_sql:check_error:1039 SQL query 'SELECT timestamp, xml, peer, kind, nick FROM (SELECT timestamp, xml, peer, kind, nick FROM

ejabberd how to compile new module

谁说胖子不能爱 提交于 2019-12-19 12:22:21
问题 Here I found the code: erlc -I ~/ejabberd-2.1.13/lib/ejabberd-2.1.13/include -pa ~/ejabberd-2.1.13/lib/ejabberd-2.1.13/ebin mod_my.erl But it did not work? 回答1: Here are steps to add your custom module into ejabberd put your module into ejabberd/src folder. come to ejabberd directory in terminal and run command $ sudo make it will show you that your module is compiled. Now run $ sudo make install Add your module into config file at /etc/ejabberd/ejabberd.yml restart your ejabberd and your

What do I need for integrating XMPP into Rails?

烈酒焚心 提交于 2019-12-18 17:13:32
问题 Here's what I have so far. XMPP Server - Ejabberd or Vine XMPP Library in Rails - Blather XMPP Library on Client - Strophe.js Is this what I need to integrate chat into my rails app? EDIT: from the creator of Vine. "It's probably safer to use ejabberd, since its a more full-featured server than vines." 回答1: I would have add a comment but unfortunately I don't have enough reputation yet. If you want to do your chat client side, Strophe is recommended. If you want to store some conversations,

I am unable to use `ejabberd_auth` in my **helloworld** project

只愿长相守 提交于 2019-12-18 08:48:53
问题 I am unable to use ejabberd_auth in my helloworld project. -behaviour(ejabberd_auth). ... .... try_register(<<"username">>, <<"example.com">>, <<"secret_password">>). With that I get the error warning: helloworld.erl:15: Warning: behaviour ejabberd_auth undefined -import(ejabberd_auth, [try_register/3]). ... .... try_register(<<"username">>, <<"example.com">>, <<"secret_password">>). With this I get: exception error: undefined function ejabberd_auth:try_register/3 Why am I unable to access

Create ejabberd user from PHP

本小妞迷上赌 提交于 2019-12-17 22:44:36
问题 I need to create an ejabberd user from a PHP script. I also need to be able to add the new user to a predefined shared roster. Should I just call ejabberdctl using exec() or is there a better way? 回答1: ejabberdctl is by far the easiest in this specific case. The other options are: Implement a full client XMPP in PHP (!) Implement a module in Erlang that proxies the requests: the PHP<-->Erlang communication would need to be through a socket and lots of marshaling would be involved (!) 回答2:

How to filter messages in Ejabberd

安稳与你 提交于 2019-12-17 18:37:47
问题 I have Ejabberd up and running with test users, and its working fine. I want to write a module that can intercept messages and modify them, as follows : intercept "messages" send them to a php file get the result from the same php file (immediate) Modify the message stanza and send it down the wire to the recipient The ejabberd documentation is weak and tutorials are non-existent. Can you give me some sample code that does this. I can then figure how to configure it for my needs. Thanks a