ejabberd

Get Offline Messages From XMPP Without Becoming Online

泄露秘密 提交于 2019-12-11 00:39:56
问题 We are using ejabberd server for our mobile chat application. And we are using IOS XMPP-Framework for our IOS application ( https://github.com/robbiehanson/XMPPFramework) But we have a problem on implementation that we couldn't find a solution. We've implemented every aspect of XMPP messaging and all works good besides one thing: While our application is on background, our ejabberd server sends us push notifications to inform us about offline messages. (Only sends notification for offline

Ejabberd custom IQ Handler: getting feature-not-implemented or service-unavailable

浪尽此生 提交于 2019-12-10 23:52:44
问题 I stripped mod_last.erl to test the creation of a IQHandler (pasted only the part that matters): start(Host, Opts) -> IQDisc = gen_mod:get_opt(iqdisc, Opts, fun gen_iq_handler:check_type/1, one_queue), gen_iq_handler:add_iq_handler(ejabberd_local, Host, <<"join">>, ?MODULE, process_local_iq, IQDisc). stop(Host) -> gen_iq_handler:remove_iq_handler(ejabberd_local, Host, <<"join">>). process_local_iq(_From, _To, #iq{type = Type, sub_el = SubEl} = IQ) -> case Type of set -> IQ#iq{type = error,

reset the XMPP connection if the page gets refreshed

隐身守侯 提交于 2019-12-10 23:04:44
问题 I am trying to create a strophe connection with XMPP using javascript with my ejabberd server , i am able to make a connection when the page loads and able to disconnect when the disconnect button is clicked. now the problem is , the connection is alive and if a user accidently refresh the page , then my javascript is trying to make the connect again , and in response to that i am getting. (its just because the previous connection might be still alive ) <body xmlns='http://jabber.org/protocol

strophe.js with http-bind failed to load resource 404 not found

时光总嘲笑我的痴心妄想 提交于 2019-12-10 20:05:39
问题 I am trying to connect with ejabberd server using strophe.js, but I got the following error: POST http://localhost/http-bind/ 404 (Not Found) Strophe.Bosh._processRequest.sendFunc @ strophe.js:4614 Strophe.Bosh._processRequest @ strophe.js:4626 Strophe.Bosh._throttledRequestHandler @ strophe.js:4778 Strophe.Bosh._connect @ strophe.js:4177Strophe.Connection.connect @ strophe.js:2335 $scope.login @ app.js:162 fn @ VM165:4 Ic.(anonymous function).compile.d.on.f @ angular.js:23411 $get.n.$eval @

ejabberd and Erlang installation with lager_transform undefined

旧城冷巷雨未停 提交于 2019-12-10 17:56:52
问题 I am new to Erlang, I have been trying to install Erlang and ejabberd on EC2 ubuntu machine, everything went well till I started compiling some external modules in ejabberd. It started throwing error "undefined parse transform 'lager_transform'". I tried everything which is as below : Did rebar get-deps, make clean, make deps, make install. After this I am able to see that lager_transform.beam is made and present in //lib/ folder. Checked rebar.config file, it had lager deps on top, which is

Parsing ASCII characters with Erlang

末鹿安然 提交于 2019-12-10 17:56:12
问题 Confused with what parsing needs to be done and at what end client/server. When i send an Umlaut 'Ö' to my ejabberd, it is received by ejabberd as <<"195, 150">> Following this i send this to my client as Push notifications (via GCM/APNS silently). From there, the client builds by UTF-8 decoding on each numeral one by one (this is wrong). i.e. 195 is first decoded to gibberish character � and so on. This reconstruction needs identification if two bytes are to be entertained or 3 or more. This

How to Integrate FCM with Ejabberd?

瘦欲@ 提交于 2019-12-10 15:39:34
问题 Environment: Ejabberd Version : 16.04 Smack-android-4.1.0 I have created an Android chat application with a XMPP server. However due to Google play permission issue I had to narrow down the feature from app which supported receiving incoming message notifications when the app is in the background. As an alternative I received the following suggestion from GooglePlay Review Team. Once you’ve removed this permission, you might consider using Firebase Cloud Messaging (FCM) if your app’s message

Docker compose error “In file './docker-compose.yml', service 'punjab' must be a mapping not a string.”

◇◆丶佛笑我妖孽 提交于 2019-12-10 13:39:37
问题 I am getting a strange error in my docker-compose.yml file. I have prepared a docker-compose file for the stack punjab connection manager, ejabberd and mysql. Below is the docker-compose.yml file version: '2' services: punjab: image:punjab ports - 5280:5280 links - ejabbberd:ejabberd ejabberd: image: ejabberd depends-on: - mysql links: - mysql:mysql mysql: image:mysql When I run the command docker-compose up from the command line and from the same directory where I have the docker-compose.yml

Ejabberd clustering chat not working

巧了我就是萌 提交于 2019-12-10 12:01:51
问题 I am trying ejabberd clustering i studied lot of material for ejabberd clustering finally i got ejabberd clustering. If i do this in terminal mnesia:info() two erlang running node. When chat with tkabber client i could not get any log for my ejabberd log file is this working. 回答1: You can check http://guntanis.tumblr.com/post/63791220016/ejabberd-2-1-cluster-on-aws-ubuntu It has step by step instructions of clustering once you have ejabberd installed. 来源: https://stackoverflow.com/questions

How to uninstall odbc for Ejabberd?

…衆ロ難τιáo~ 提交于 2019-12-10 11:52:19
问题 I have installed Ejabberd with odbc_mysql before, but I want to use mnesia now, so I removed odbc by: {auth_method, internal}. %% {auth_method, odbc}. But when I close mysql service, and restart ejabberd , I found that there are connection error: E(<0.333.0>:ejabberd_odbc:542) : mysql_conn: post_start error connect_failed So how to removed odbc ? 回答1: I suspect the problem might be due to the fact ejabberd's configuration file is used to bootstrap the "real" configuration storage which uses