ejabberd

Ejabberd s2s out remote server not found

两盒软妹~` 提交于 2019-12-13 05:17:40
问题 I have received an error in ejabberd S2S remote server.I am using ejabberd-14.0.7 Error: ejabberd_s2s_out:log_s2s_out:1315 Trying to open s2s connection: domainname.com -> 192.168.1.2 with TLS=false ejabberd_s2s_out:open_socket:271 s2s connection: domainname.com -> 192.168.1.2 (remote server not found) How will I change the IPaddress. Now, it shows my local IP insteadof domain-IP 回答1: There is two possible issues there: To support federation / s2s, an XMPP server must be available on the

Ejabberd trying to subscribe a user through api

萝らか妹 提交于 2019-12-13 04:01:18
问题 I am trying to subscribe a test user to a test room using the Ejabberd API. I am sure I just misconfigured something but I can't seem to find the issue. I am running Ejabberd 16.09 and trying to use mod_http_api My configuration is the following: hosts: - "localhost" - "my.personal.host" listen: - port: 5285 module: ejabberd_http request_handlers: "/api": mod_http_api acl: admin: user: - "@localhost" modules: mod_muc: mam: true default_room_options: allow_subscription: true access: - allow

How to retrieve Chat history with android smack client

北战南征 提交于 2019-12-13 02:05:56
问题 I'm developing a chatting application where we have deployed the eJabberd on server and using smack library client for android. Now the problem is i was not able to get the previous chat history to show. Please help me out in getting the chat history. 回答1: Chat history (latest x messages) are retrieved as defined in XEP-0045 Multi-User Chat. Message Archive are retrieved as defined in XEP-0313 Message Archive Management. Use one of those specifications. 来源: https://stackoverflow.com/questions

offline chat messages giving service-unavailable error when receiver comes online

我的未来我决定 提交于 2019-12-12 18:13:40
问题 I am getting following error message when recipient is offline and become online. I expect receiver to receive the offline message but it seems something is wrong. 2015-11-07 19:25:16.583 [debug] <0.748.0>@ejabberd_c2s:send_text:1892 Send XML on stream = <<"<message from='+999999@abc.example.com' to='+888888@abc.example.com/+888888' type='error' xml:lang='en' id='uGWtv-18'> <body>gwtnwf </body><thread>608802ea-265e-4ec4-a39a-408fd75dc268</thread> <x xmlns='jabber:x:oob'><file1url

ejabberd: is there a way to configure a different “cookie” than “ejabberd”?

谁都会走 提交于 2019-12-12 18:00:56
问题 I am building an ejabberd module. I require this module to perform RPC calls to another node on the same LAN (sname). From what I understand, ejabberd configures it owns "cookie" which, of course, will differ from the cookie I use for my other nodes. Is there a way to force ejabberd to use another cookie? EDIT: ejabberd starts its daemon under the "ejabberd" username. EDIT: even when creating /home/ejabberd/.erlang.cookie (username: ejabberd, group: ejabberd) with an appropriate cookie it

XMPP push notifications causing problems (delay + duplications) in messages

拈花ヽ惹草 提交于 2019-12-12 17:23:11
问题 XMPP push notifications causing problems (delay + duplications) in messages. I have successfully created a chat application using XMPP + Ejabberd. Without Push Notifications: Both single and group chat messages are working perfectly. With Push Notifications: Sometimes everything works perfectly.Notifications are triggered and messages are received with out any delay or duplications. Sometimes no notifications are triggered (while app in background) but messages are received perfectly.

ejabberd supervisor module

家住魔仙堡 提交于 2019-12-12 17:23:00
问题 I need to keep a gen_mod process running as it loops every minute and does some cleanup. However once every few days it will crash and I'll have to manually start it back up again. I could use a basic example of implementing a supervisor into ejabberd_sup so it can keep going. I am struggling to understand the examples that use gen_server. Thanks for the help. 回答1: Here's an example module combining ejabberd's gen_mod and OTP's gen_server . Explanation is inlined in the code. -module(cleaner)

Search for users on Ejabberd2 using smack, fails

这一生的挚爱 提交于 2019-12-12 11:49:43
问题 Server: ejabberd2 XMPP: smack 3.3.1 The goal is to design a chat engine. The user, by entering a username should be able to find out if the entered username is registered on the server. The Smack Javadocs can be found here I am using UserSearch classes found in the Smack library. I can connect to the server. I can login using a username and password. I can add/sign up new users into the server. I want to find if a username already exists on the server. The code that I have used and its

How to implement FCM push notification in ejabberd XMPP server

好久不见. 提交于 2019-12-12 10:40:05
问题 I have implemented apns notification using ejabberd, for apns we need to use mod_apns.erl file only. I want to implement push notification in android device using FCM as GCM is deprecated. previously mod_gcm.erl file available for GCM push notification. Please help me to integrate FCM push notification in ejabberd . Installed Ejabberd Version: 16.09 来源: https://stackoverflow.com/questions/49608100/how-to-implement-fcm-push-notification-in-ejabberd-xmpp-server

ejabberdctl command “create_room” not known

蓝咒 提交于 2019-12-12 09:25:11
问题 I wanted to setup a simple jabber server to enable chat with my team. Everything went smoothly until the point I wanted to create conference rooms. When I run ejabberdctl with no parameters, the option create_room does not appear in the list, and if I run ejabberdctl create_room test I get the following response: Error: command "create_room" not known. My config file (/etc/ejabberd/ejabberd.cfg) is as following: %% Admins of this server are also admins of MUC service: {access, muc_admin, [