it works from version 20 to 21 (actually)
- see: github
- see: stackoverflow
And Update to the latest version and works with Content-Type: application/json
- Locate The Ejabberd-contrib-module on your system:
- some examples of where it might be found are:
- if you installed ejabberd from the github repository or the website:
/opt/ejabberd-19.02/.ejabberd-module/
- If you installed Ejabberd via the RPM or APT package:
-
/var/lib/ejabberd/.ejabberd-modules/
-
NOTE: If you installed ejabberd from the package manager of your linux architecture (RPM, APT ...) and you cannot get the folder, you must do some extra steps:
- Install the ejabberd-contrib-module package:
- on Debian/Ubuntu:
sudo apt-get install ejabberd-contrib
- on Debian/Ubuntu:
- then you must install any package so that the folder is created for you, I recommend you follow this tutorial, which is extremely simple
- Install the ejabberd-contrib-module package:
-
- if you installed ejabberd from the github repository or the website:
- some examples of where it might be found are:
- Enter to the source directory and make git clone of the repository:
root@server:/var/lib/ejabberd/.ejabberd-modules/sources/# git clone https://github.com/Carlososuna11/mod_offline_http_post.git
-
install module:
- if you installed ejabberd from the github repository or the website:
root@server:opt/ejabberd-19.02/.ejabberd-module/bin/# ejabberdctl module_install mod_offline_http_post
- If you installed Ejabberd via the RPM or APT package:
root@server:~# ejabberdctl module_install mod_offline_http_post
-
restart ejabberd
NOTE: If you have problems installing since it appears that you cannot create or write a file in the ebin folder, simply in the folder that we have cloned we create the ebin folder and we give it permissions that anyone can create / modify it:
sudo chmod a+rwx ebin/