Page 75 - Asterisk™: The Future of Telephony
P. 75
fig command as well. This will install the startup scripts and configure the system,
using the chkconfig command to load the zaptel module automatically at startup:
# make config
The Debian equivalent of chkconfig is update-rc.d.
While Digium only officially supports Zaptel on Linux, several projects
to port Zaptel to other platforms should be noted:
• Solaris (http://www.solarisvoip.com)
• BSD (http://lists.digium.com/mailman/listinfo/asterisk-bsd)
Using ztcfg and zttool
Two programs installed along with Zaptel are ztcfg and zttool. The ztcfg program is
used to read the configuration in /etc/zaptel.conf to configure the hardware. The
zttool program can be used to check the status of your installed hardware. For instance,
if you are using a T1 card and there is no communication between the endpoints, you
will see a red alarm. If everything is configured correctly and communication is possible,
you should see an “OK.” The zttool application is also useful for analog cards, because
it tells you their current state (configured, off-hook, etc.). The use of these programs
will be explored further in the next chapter.
The libnewt libraries and their development packages (newt-devel on
Red Hat-based distributions) must be installed for zttool to be compiled.
The ztcfg and zttool applications, along with other useful utilities, are
located under the Utilities section of the Zaptel menuselect screen.
Compiling libpri
The libpri libraries do not make use of the autoconf build environment or the menu-
select feature as they are unnecessary; thus, the installation is simplified. libpri is used
by various makers of Time Division Multiplexing (TDM) hardware, but even if you
don’t have the hardware installed, it is safe to compile and install this library. You must
compile and install libpri before Asterisk, as it will be detected and used when Asterisk
is compiled. Here are the commands (replace version with your version of libpri):
# cd /usr/src/libpri-version
# make clean
# make
# make install
Compiling libpri | 47