Tap here to compare the top VoIP providersTap here to hide the top VoIP Providers
Asterisk AVM Fritz CAPI Driver Install
AVM Fritz! CAPI driver
Instructions follow on how to install the CAPI driver for the passive AVM Fritz! ISDN card (also known as the BT speedway card in the UK). Installation of the CAPI driver for other AVM card shouldn't be much different.
In SUSE Linux 8.1 or higher an AVM CAPI4Linux driver is already integrated into the operating system, install the AVM ISDN-Controller by using YaST2.
If you use another distro (I use Debian sid, 2.4.24-K7 kernel), do the following:
- Get linux CAPI driver for the card from http://www.avm.de/ftp/cardware/fritzcrd.pci/linux/ the most up to date driver, that at this moment is for 8.2 SuSE (this will replace the HiSax driver, so unload that if present in your system). There appears to be another driver at http://capi4linux.thepenguin.de/download.shtml but this looks older. Also see here http://opensuse.fltronic.de/
- Become root.
- Download and install your kernel sources, that will be used in the CAPI compilation ($ uname -r for the exact version of your current kernel):
i.e., I use 2.4.24, optimized for K7 CPU:
- apt-get install kernel-source-2.4.24
- /usr/src# tar -jxvf kernel-source-2.4.24.tar.bz2
- apt-get install kernel-headers-2.4.24-1-k7
- Now, download and unpack the Fritz drivers:
- cd /usr/src
- wget ftp://ftp.avm.de/cardware/fritzcrd.pci/linux/suse.82/fcpci-suse8.2-03.11.02.tar.gz
- tar -xzvf fcpci-suse8.2-03.11.02.tar.gz
- cd fritz
- There are two makefile, the one at /usr/src/fritz level, and the most important in the src.drv subdir.
- vi src.drv/makefile
you have to replace:
CARD_PATH = /lib/modules/`uname -r`/misc
CARD_PATH = /lib/modules/$(uname -r)/kernel/drivers/isdn/avmb1
then you find some lines about KRNLINCL. You must test using "ls" which is the correct path for the include. I've uncommented the one that works for me:
KRNLINCL = /usr/src/kernel-headers-`uname -r`/include
- KRNLINCL = /lib/modules/`uname -r`/build/include
- KRNLINCL = /usr/src/linux/include
then you have to change:
DEFINES = -DMODULE -D__KERNEL__ -DNDEBUG \
CCFLAGS = -c $(DEFINES) -O2 -Wall -I $(KRNLINCL)
DEFINES = -DMODULE -DMODVERSIONS -D__KERNEL__ -DNDEBUG \
CCFLAGS = -c $(DEFINES) -march=i686 -O2 -Wall -I $(KRNLINCL) \
(I use -march=K7 since I've a AMD cpu and a K7 optimized kernel)
Save and exit.
Now you have to edit the following file:
- vi src.drv/defs.h
- if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0)
- if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 23)
save and exit.
- Compile the driver using make:
try loading the module as root
- modprobe capi
- insmod ./fcpci.o
- modprobe capi
- modprobe fcpci ; some licensing info shows up on the screen
- lsmod shows the installed drivers.
if the first modprobe fails the kernel needs recompiling with capi support, see step 1 of the CAPI Installation page
It is possible to install two Fritz Cards in one System, see here for instructions:
- A patch based on the information in the second link above is available here: http://sifnt.net.au/files/asterisk/fritz-multicardhack.patch. Once applied, you can use 'make install_multi' to install the f1pci.ko and f2pci.ko modules.
Note: Linux 2.6.17 and up kernels require a patch to compile
- http://opensuse.fltronic.de/ (better link??)
- A patch based on the information at Google Groups is available here: http://sifnt.net.au/files/asterisk/fritz-linux-2.6.17.patch. This patch has been tested on a Gentoo system with a Linux 2.6.18 kernel.
capi4linux utilsThis package provides commands such as "capiinfo" and "capiinit" (this might not be required but it allows checking of the capi driver setup). Install your distro's capi4k-utils package, under debian use:
or download the source code from ftp://ftp.in-berlin.de/pub/capi4linux/. Don't forget to run makedev.sh in the scripts directory to build the /dev/capi* files after compiling capi4linux. Copy the "capi.conf" from this package to "/etc/capi.conf" and make the following the only uncommented line in the file
- apt-get install isdnactivecards
fcpci - - - - - -
"capiinfo" seems to work without this file and should print some details about the card;
Number of Controllers : 1
Manufacturer: AVM GmbH
CAPI Version: 2.0
Manufacturer Version: 3.17-02 (49.18)
Now go on to Step 3 here.
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+