ztdummy
Created by: tucker,Last modification on 12 Jun 2006 [09:43 UTC]
ztdummy Installation Walkthrough
ztdummy is a kernel module that is used in place of Digium hardware as a timeing device. Installing ztdummy and zaptel is mandatory to use IAX or conferencing without Digium hardware.
I will go thro the steps to install zaptel and ztdummy on CentOS 4.3(linux2.6), adapt it to your distro.
Getting the zaptel source code
cd /usr/src
wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.2.6.tar.gz
tar xzf zaptel-1.2.6.tar.gz
rm -f zaptel-1.2.6.tar.gz
wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.2.6.tar.gz
tar xzf zaptel-1.2.6.tar.gz
rm -f zaptel-1.2.6.tar.gz
Patching the source code
cd zaptel-1.2.6
mv ztdummy.c ztdummy.c.orig
sed "s/if 0/if 1/" < ztdummy.c.orig > ztdummy.c
mv ztdummy.c ztdummy.c.orig
sed "s/if 0/if 1/" < ztdummy.c.orig > ztdummy.c
If you are on CentOS 4.3, the kernel source have a small bug you must fix.
cd /usr/src/kernels/2.6.9-34.EL-i686/include/linux/
mv spinlock.h spinlock.h.orig
sed "s/rw_lock_t/rwlock_t/" < spinlock.h.orig > spinlock.h
cd /usr/src/zaptel
mv spinlock.h spinlock.h.orig
sed "s/rw_lock_t/rwlock_t/" < spinlock.h.orig > spinlock.h
cd /usr/src/zaptel
Compiling Zaptel
make linux26
make install
make config
make install
make config
Run
modprobe zaptel
modprobe ztdummy
modprobe ztdummy
if it gives you an error stop here and try to fix it before moving on.
Starting at boot
echo "modprobe ztdummy" >> /etc/rc.d/rc.local
Asterisk Configuration
Add this to zapata.confnano -w /etc/asterisk/zapata.conf
[channels]
language=en
language=en
- include zapata_additional.conf
Done!
You are done configureing zaptel and ztdummy, so skip over any other instructions on zaptel.