System information

Asterisk has the ability to use XMPP PubSub to distribute device state information. One
of the nice things about using XMPP to accomplish this is that it works very well for
geographically distributed Asterisk servers.
Installation
To distribute device states using XMPP, you will need an XMPP server that supports
PubSub. One such server that has been successfully tested against Asterisk is Tigase.
The Tigase website has instructions for installing and configuring the Tigase server.
We suggest that you follow those instructions (or the instructions provided for what-
ever other server you may choose to use) and come back to this book when you’re ready
to work on the Asterisk-specific parts.
On the Asterisk side of things, you will need to ensure that you have installed the
res_jabber module. You can check to see if it is already loaded at the Asterisk CLI:
*CLI> module show like jabber
Module Description Use Count
res_jabber.so AJI - Asterisk Jabber Interface 0
1 modules loaded
If you are using a custom /etc/asterisk/modules.conf file that lists only specific modules
to be loaded, you can also check the filesystem to see if the module was compiled and
installed:
$ ls -l /usr/lib/asterisk/modules/res_jabber.so
-rwxr-xr-x 1 root root 837436 2010-11-12 15:33 /usr/lib/asterisk/modules/res_jabber.so
If you do not yet have res_jabber installed, you will need to install the iksemel and
OpenSSL libraries. Then, you will need to recompile and reinstall Asterisk. Start by
running the Asterisk configure script, which is responsible for inspecting the system
and locating optional dependencies, so that the build system knows which modules
can be built:
$ cd /path/to/asterisk
$ ./configure
After running the configure script, run the menuselect tool to ensure that Asterisk has
been told to build the res_jabber module. This module can be found in the Resource
Modules section of menuselect:
$ make menuselect
Finally, compile and install Asterisk:
$ make
$ sudo make install
Distributed Device States | 315