04f4489427 | ||
---|---|---|
.. | ||
conf | ||
src | ||
COPYING | ||
README.md | ||
mod_post_log.spec |
README.md
mod_post_log - Logs messages to an HTTP API
- 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>