I’m trying to install my first Digium card (model TE220B). I downloaded the Zaptel source code (zaptel-1.4.4) and compiled it. Some warnings appeared about deprecated code (looks to be deprecated code in the linux kernel -2.6.22-, not in the Zaptel drive itself).:
warning: 'deprecated_irq_flag' is deprecated (declared at include/linux/interrupt.h:66)
Another more important warning was a complain about implicit declaration of pci_module_init:
wcte12xp.c:2015: warning: implicit declaration of function 'pci_module_init'
I searched throught the linux kernel source and found not such declatarion which made me think something was really wrong.
Still the kernel modules (*ko) were generated and properlly installed.
Then I configured /etc/zaptel.conf and /etc/asterisk/zapata.conf. Started Asterisk and … nothing. When “starting” the module the flashing “red light” in the card changed to green, but that’s all. Then conecting to Asterisk:
~> asterisk -r Connected to Asterisk 1.4.11 currently running on LaPantoja (pid = 20796) LaPantoja*CLI> zap restart [Aug 24 12:21:12] WARNING: chan_zap.c:903 zt_open: Unable to specify channel 1: Device or resource busy [Aug 24 12:21:12] ERROR: chan_zap.c:7160 mkintf: Unable to open channel 1: Device or resource busy here = 0, tmp->channel = 1, channel = 1 [Aug 24 12:21:12] ERROR: chan_zap.c:10466 build_channels: Unable to register channel '1-15' [Aug 24 12:21:12] WARNING: chan_zap.c:9764 zap_restart: Reload channels from zap config failed!
The most curious is that if I try a second time:
LaPantoja*CLI> zap restart [Aug 24 12:30:48] ERROR: chan_zap.c:9355 start_pri: Unable to open D-channel 16 (Device or resource busy) [Aug 24 12:30:48] ERROR: chan_zap.c:11266 setup_zap: Unable to start D-channel on span 1 [Aug 24 12:30:48] WARNING: chan_zap.c:9764 zap_restart: Reload channels from zap config failed!
The error is different and asterisk CPU ussage grows up to 100% until I restart it (I think this is a “marginal” bug in Asterisk, isn’t it?).
Thanks in advance for any help, hint or link!