How to build the zaptel (FXO/FXS hardware for Asterisk) modules on Debian using the debian kernel source package.
- apt-get install kernel-source-<kernel-version>
- apt-get install kernel-patch-scripts
- apt-get install kernel-package
- cd /usr/src
- tar -jxf kernel-source-<kernel-version>.bz2
- ln -s kernel-source-<kernel-version> linux
- cp /boot/config-<kernel -version> /usr/src/linux/.config
- cd linux
- make-kpkg
- cd <source directory>
- export CVSROOT=:pserver:anoncvs@cvs.digium.com:
/usr/cvsroot - cvs login
- cvs checkout zaptel
- cd zaptel
- make
- su
- make install
If you’re planning on using the ztdummy module, edit the zaptel Makefile before compiling. Remove the # in front of ztdummy in the modules= declaration.