System information
After running the configure script, run the menuselect tool to ensure that Asterisk has
been told to build the res_ais module (this module can be found in the Resource Mod-
ules section of menuselect):
$ make menuselect
Finally, compile and install Asterisk:
$ make
$ sudo make install
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.
OpenAIS configuration
Now that OpenAIS has been installed, it needs to be configured. There is a configura-
tion file for both OpenAIS and Corosync that must be put in place. Check to see if /etc/
ais/openais.conf and /etc/corosync/corosync.conf exist. If they do not exist, copy in the
sample configuration files:
$ sudo mkdir -p /etc/ais
$ cd openais-1.1.4
$ sudo cp conf/openais.conf.sample /etc/ais/openais.conf
$ sudo mkdir -p /etc/corosync
$ cd corosync-1.2.8
$ sudo cp conf/corosync.conf.sample /etc/corosync/corosync.conf
Next, you will need to edit both the openais.conf and corosync.conf files. There are a
number of options here, but the most important one that must be changed is the
bindnetaddr option in the totem-interface section. This must be set to the IP address
of the network interface that this node will use to communicate with the rest of the
cluster:
totem {
...
interface {
ringnumber: 0
bindnetaddr: 10.24.22.144
mcastaddr: 226.94.1.1
mcastport: 5405
}
}
For detailed documentation on the rest of the options in these configuration files, see
the associated manpages:
$ man openais.conf
$ man corosync.conf
Distributed Device States | 311