3.4.2. The Zapata Telephony Drivers

Compiling the Zapata telephony drivers for use with your Digium hardware is straightforward, 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 wil 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
[Tip] Tip

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 compiled 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 occupying 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 RedHat based distros), you may wish to run the make config 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
[Tip] Tip

The Debian equivalent of chkconfig is update-rc.d.