Skip to content

Zaptel

digium cards and zaptel driver

installation

changetitle
1
2
3
4
5
apt-get install zaptel-source
cd /usr/src/
tar -jxvf zaptel.tar.bz2
cd modules/zaptel 
apt-get install asterisk

etch

The last time i had to install a zap card on etch, not everything went automatically, so here is a small guide : The main problem seems to be that etch is installed with a 2.6.17 kernel, but all headers and sources you can install through apt are 2.6.18. So either you find a site where the correct headers are presented or if you are lazy like me you install the new kernel through apt-get. Not however that you need the package linux-image-2.6.18-4-486 not kernel-2.6.18-4 etc. After installation /upgrade you have to reboot, so take a quick look at /boot/grub/menu.lst to see if the installation created the correct entries there. After reboot you can now install the zaptel drivers :

changetitle
1
2
3
4
5
apt-get install zaptel-source
cd /usr/src
tar -jxvf zaptel.tar.bz2
cd modules/zaptel
m-a

M-a is the module assistant, it gives you a graphical menu where you can get the needed headers and build the modules. I did it through the menu, but i would guess that :

changetitle
m-a prepare zaptel
m-a build zaptel 

Probably works !?

troubleshooting

symptom

two digium cards interconnected constantly say Master Changed to WTC1/1 (WTC1/0)

cause

they are constantly miss timing

cure

set only one of these cards to be the timing source in /etc/zaptel.conf, in the line span=1,1,0,ccs,hdb3,crc4 the second '1' says it is the main timing source, the other span should have a zero there (span=2,0,...)

symptom

cat /proc/zaptel/1 lists only 24 channels

cause

driver thinks this is an American (T1) card

cure

digium quad cards are delivered in the t1 state, it can be switched by setting 4 jumpers on the card to E1, the European standard