System information

This is a pretty quick and crude set of instructions for compiling and
installing Asterisk. For a much more complete set of instructions, please
see Chapter 3.
Creating XMPP accounts
Unfortunately, Asterisk is currently not able to register new accounts on an XMPP
server. You will have to create an account for each server via some other mechanism.
The method we used while testing was to use an XMPP client such as Pidgin to complete
the account registration process. After account registration is complete, the XMPP cli-
ent is no longer needed. For the rest of the examples, we will use the following two
buddies, both of which are on the server jabber.shifteight.org:
server1@jabber.shifteight.org/astvoip1
server2@jabber.shifteight.org/astvoip2
Asterisk configuration
The /etc/asterisk/jabber.conf file will need to be configured on each server. We will show
the configuration for a two-server setup here, but the configuration can easily be ex-
panded to more servers as needed. Example 14-2 shows the contents of the configura-
tion file for server 1 and Example 14-3 shows the contents of the configuration file for
server 2. For additional information on the jabber.conf options associated with distrib-
uted device states, see the configs/jabber.conf.sample file that is included in the Asterisk
source tree.
Example 14-2. jabber.conf for server1
[general]
autoregister = yes
[asterisk]
type = client
serverhost = jabber.shifteight.org
pubsub_node = pubsub.jabber.shifteight.org
username = server1@jabber.shifteight.org/astvoip1
secret = mypassword
distribute_events = yes
status = available
usetls = no
usesasl = yes
buddy = server2@jabber.shifteight.org/astvoip2
Example 14-3. jabber.conf for server2
[general]
autoregister = yes
[asterisk]
type = client
316 | Chapter 14:Device States