Ejabberd bosh module

Install xep-0124 bosh module for ejabberd trunk version for ubuntu

Checkout ejabberd and module
cd /to/path/you/want svn co http://svn.process-one.net/ejabberd/trunk ejabberd svn co http://svn.process-one.net/ejabberd-modules/http_bind/trunk http_bind

Patch the source
cp -r http_bind/* ejabberd (The build.sh in http_bind directory didn't work for me)

Compile and install
cd ejabberd/src ./configure make su make install

Config
/etc/ejabberd/ejabberd.cfg

{listen, [... {5280, ejabberd_http, [http_poll, web_admin, {request_handlers, [{["http-bind"], mod_http_bind}]}]}, ...]}.

{modules, [... {mod_http_bind, []}, ...]}. (info also in README.txt available)

Attention: "ejabberd.cfg.example" is probably for an older version of this module. It does not work out of the box.

Start
erl -pa /var/lib/ejabberd/ebin -sname ejabberd -s ejabberd

First look if the ports are open
nmap -p 1-10000 localhost Port 5222,5223,5280 should be open. 5280 by the way is the http port for admin, polling and bosh (binding)

Test Admin interface
http://localhost:5280/admin

Test script for http_bind
ejabberd/util/jhbtest.pl