Page 74 - Asterisk™: The Future of Telephony
P. 74
Many older systems (and some newer ones) use an OHCI USB controller
chip, which is incompatible with ztdummy. However, if you’re using a
2.6 kernel there is no need to worry about which USB controller chip
your system has.
The driver looks to see that the usb-uhci module is loaded and that the kernel version
is at least 2.4.5. Older kernel versions are incompatible with ztdummy.
On a 2.6 kernel-based distribution, ztdummy does not require the use of the USB con-
‖
troller. (As of v2.6.0, the kernel now provides 1 kHz timing with which the driver can
interface; thus, the USB controller hardware requirement is no longer necessary.)
The Zapata Telephony Drivers
Compiling the Zapata telephony drivers for use with your Digium hardware is straight-
forward; however, the method employed between the 1.2 and 1.4 versions is slightly
different due to the new build environment. First we need to run ./configure in order
to determine what applications and libraries are installed on the system. This will ensure
that everything Zaptel needs is installed. The following commands will build Zaptel
and its modules:
# cd /usr/src/zaptel-version
# make clean
# ./configure
# make menuselect
# make
# make install
While running make clean is not always necessary, it’s a good idea to
run it before recompiling any of the modules, as it will remove the com-
piled binary files from within the source code directory. You can also
use it to clean up after installing if you don’t like to leave the compiled
binaries floating around. Note that this removes the binaries only from
the source directory, not from the system.
In addition to the executables, make clean also removes the intermediary
files (i.e., the object files) after compilation. You don’t need them oc-
cupying space on your hard drive.
If you’re using a system that makes use of the /etc/rc.d/init.d/ or /etc/init.d/ directories
(such as CentOS and other Red Hat-based distros), you may wish to run the make con
‖ Note that this is configurable in the kernel, so it is possible certain distributions may not have this set to 1,000
Hz; CentOS, however, does have this set at the correct frequency.
46 | Chapter 3: Installing Asterisk