ejabberd-contrib/mod_post_log
Holger Weiss 315d66868f Update mod_post_log to work with ejabberd 15.06 2015-06-26 00:04:26 +02:00
..
src Update mod_post_log to work with ejabberd 15.06 2015-06-26 00:04:26 +02:00
COPYING Add README and license to mod_post_log 2015-02-25 15:43:22 -03:00
Emakefile Import mod_post_log from 2.1.x branch 2014-10-30 17:54:26 -04:00
README.md Add README and license to mod_post_log 2015-02-25 15:43:22 -03:00
build.sh Import mod_post_log from 2.1.x branch 2014-10-30 17:54:26 -04:00

README.md

mod_post_log - Logs messages to an HTTP API

Homepage: https://github.com/processone/ejabberd-contrib/tree/master/mod_post_log Author: Tim Stewart, Mojo Lingo LLC Requirements: ejabberd 14.07 or later

This module implements logging of all messages sent (chat and groupchat) via an HTTP API.

CONFIGURATION

Add the module to your ejabberd.yml, in the modules section:

modules:
  ...
  mod_post_log:
    url: http://foo.bar.com/messages
  ...

API example

POST /messages HTTP/1.0
HTTP-X-MESSAGE-FROM: doo@dah.com
HTTP_X_MESSAGE_TO: foo@bar.com
Content-Type: application/xml
Content-Length: 122

<message to='foo@bar.com' from='doo@dah.com' type='chat'>
  <body xmlns='jabber:client'>Hello there Foo!</body>
</message>