Asterisk - AVM ISDN FritzCard PCI - chan_capi-1.1.1


I can’t put chan_capi to work with asterisk!
I’m trying to get chan_capi to work with asterisk 1.6 and no matter how I try different compilations, it never loads.
Tried chan_capi-0.6.4, chan_capi-1.0.1, chan_capi-HEAD, but it never loads.

Any help would be apreciated.

Here is a some information that might help, if additional info is required, just ask away.

Many thanks

uname -a
Linux pbx 2.6.22-15-386 #1 Wed Aug 20 18:11:25 UTC 2008 i686 GNU/Linux

asterisk -rvvvvvvvvvvv
Asterisk, Copyright © 1999 - 2008 Digium, Inc. and others.

lspci -v -v -v | grep -A 10 AVM
00:0a.0 Network controller: AVM Audiovisuelles MKTG & Computer System GmbH Fritz!PCI v2.0 ISDN (rev 02)
Subsystem: AVM Audiovisuelles MKTG & Computer System GmbH Fritz!PCI v2.0 ISDN
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- SERR- <PERR-
Interrupt: pin A routed to IRQ 19
Region 0: Memory at debff400 (32-bit, non-prefetchable) [size=32]
Region 1: I/O ports at bc00 [size=32]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1- D2+ AuxCurrent=55mA PME(D0-,D1-,D2-,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:0b.0 Network controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface

Number of Controllers : 1
Controller 1:
Manufacturer: AVM GmbH
CAPI Version: 2.0
Manufacturer Version: 3.11-07 (49.23)
Serial Number: 1000001
BChannels: 2
Global Options: 0x00000039
internal controller supported
DTMF supported
Supplementary Services supported
channel allocation supported (leased lines)
B1 protocols support: 0x4000011f
64 kbit/s with HDLC framing
64 kbit/s bit-transparent operation
V.110 asynconous operation with start/stop byte framing
V.110 synconous operation with HDLC framing
T.30 modem for fax group 3
Modem asyncronous operation with start/stop byte framing
B2 protocols support: 0x00000b1b
ISO 7776 (X.75 SLP)
LAPD with Q.921 for D channel X.25 (SAPI 16)
T.30 for fax group 3
ISO 7776 (X.75 SLP) with V.42bis compression
V.120 asyncronous mode
V.120 bit-transparent mode
B3 protocols support: 0x800000bf
T.90NL, T.70NL, T.90
ISO 8208 (X.25 DTE-DTE)
X.25 DCE
T.30 for fax group 3
T.30 for fax group 3 with extensions

[ 0.000000] Linux version 2.6.22-15-386 (buildd@terranova) (gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 Wed Aug 20 18:11:25 UTC 2008 (Ubuntu 2.6.22-15.58-386)
[ 32.006031] CAPI Subsystem Rev
[ 32.061107] fcpci: module license ‘Proprietary’ taints kernel.
[ 32.062569] fcpci: AVM FRITZ!Card PCI driver, revision 0.7.2
[ 32.062576] fcpci: (fcpci built on Oct 14 2008 at 17:45:31)
[ 32.062578] fcpci: – 32 bit CAPI driver –
[ 32.062683] ACPI: PCI Interrupt 0000:00:0a.0[A] -> GSI 18 (level, low) -> IRQ 19
[ 32.062691] fcpci: AVM FRITZ!Card PCI found: port 0xbc00, irq 19
[ 32.062693] fcpci: Loading…
[ 32.062697] fcpci: Driver ‘fcpci’ attached to fcpci-stack. (152)
[ 32.293168] fcpci: Stack version 3.11-07
[ 32.475349] kcapi: Controller [001]: fcpci-bc00-19 attached
[ 32.475355] kcapi: card [001] “fcpci-bc00-19” ready.
[ 32.475417] fcpci: Loaded.
[ 35.367813] ISDN subsystem Rev: loaded
[ 35.384910] capifs: Rev
[ 35.470799] capi20: Rev started up with major 68 (middleware+capifs)
[ 35.485723] capidrv-1: now up (2 B channels)
[ 35.485729] capidrv-1: D2 trace enabled
[ 35.485740] capidrv: Rev loaded

asterisk -> modules.conf
noload =>
noload =>
load =>
noload =>
load =>


ls /usr/lib/asterisk/modules/ (chan_capi-1.1.1)
-rwxr-xr-x 1 root root 552040 2008-10-16 15:36

cat /var/log/asterisk
NOTICE[17259] indications.c: Removed default indication country 'us’
NOTICE[17261] manager.c: Invalid keyword = in manager.conf [general]
NOTICE[17261] cdr.c: CDR simple logging enabled.
NOTICE[17261] loader.c: 149 modules will be loaded.
WARNING[17261] loader.c: Module ‘’ does not provide a description.
WARNING[17261] loader.c: Module ‘’ could not be loaded.

NOTICE[17261] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
ERROR[17261] res_phoneprov.c: Unable to load config phoneprov.conf
WARNING[17261] pbx.c: Unable to register extension ‘_0031.’, priority 5 in ‘default’, already in use
NOTICE[17261] app_queue.c: No queuerules.conf file found, queues will not follow penalty rules
NOTICE[17261] pbx_ael.c: Starting AEL load process.
NOTICE[17261] pbx_ael.c: AEL load process: parsed config file name ‘/etc/asterisk/extensions.ael’.
NOTICE[17261] pbx_ael.c: AEL load process: checked config file name ‘/etc/asterisk/extensions.ael’.
NOTICE[17261] pbx_ael.c: AEL load process: compiled config file name ‘/etc/asterisk/extensions.ael’.
NOTICE[17261] pbx_ael.c: AEL load process: merged config file name ‘/etc/asterisk/extensions.ael’.
NOTICE[17261] pbx_ael.c: AEL load process: verified config file name ‘/etc/asterisk/extensions.ael’.
NOTICE[17261] chan_sip.c: The ‘username’ field for sip peers has been deprecated in favor of the term 'defaultuser’
WARNING[17261] app_minivm.c: Failed to load configuration file. Module activated with default settings.
ERROR[17261] chan_unistim.c: Unable to load config unistim.conf
WARNING[17261] translate.c: plc_samples 160 format f

asterisk -> capi.conf
rxgain=1.0 ;linear receive gain (1.0 = no change)
txgain=1.0 ;linear transmit gain (1.0 = no change)
language=en ;set default language
[ISDN1] ;this example interface gets name ‘ISDN1’ and may be any
;name not starting with ‘g’ or ‘contr’.
;Use one interface section for each isdn port!
isdnmode=msn ;‘MSN’ (point-to-multipoint) or ‘DID’ (direct inward dial)
;when using NT-mode, ‘DID’ should be set in any case
incomingmsn=* ;allow incoming calls to this list of MSNs/DIDs, * = any
controller=1 ;capi controller number of this interface/port
group=1 ;dialout group
softdtmf=on ;enable/disable software dtmf detection, recommended for AVM cards
relaxdtmf=on ;in addition to softdtmf, you can use relaxed dtmf detection
faxdetect=off ;enable faxdetection and redirection to EXTEN ‘fax’ for incoming and/or
;outgoing calls. (default=‘off’, possible values: ‘incoming’,‘outgoing’,‘both’)
accountcode= ;PBX accountcode to use in CDRs
context=isdn-in ;context for incoming calls
echocancelold=yes;use facility selector 6 instead of correct 8 (necessary for older eicon drivers)
devices=2 ;number of concurrent calls (b-channels) on this controller

capiinit show
driver firmware proto io irq mem cardnr options
fcpci - - - - - -

capiinit status
1 fcpci running fcpci-bc00-19 A1 3.11-07 0xbc00 19

isdnlog: isdnlog Version 4.71 starting
isdnlog: Holiday Version loaded [10 entries from /usr/share/isdn/holiday-pt.dat]
isdnlog: Dest V1.01: File ‘/usr/share/isdn/dest.cdb’ opened fine - Dest 1.0 int (+h) AT DE NL CH BE
isdnlog: Zone V1.25: Provider 0 File ‘/usr/share/isdn/zone-default-x.cdb’ opened fine - V1.25 K2 C1 N1 T1 O1 L3
isdnlog: Rates Version 0.01-default [2001/10/10] loaded [1 Providers, 0 skipped, 1 Zones, 1 Areas, 0 Services, 0 Comments, 0 eXceptions, 0 Redirects, 2 Rates from /usr/share/isdn/rate-pt.dat]
isdnlog: (ISDN subsystem with ISDN_MAX_CHANNELS > 16 detected, ioctl(IIOCNETGPN) is available)
isdnlog: isdn.conf:2 active channels, 0 MSN/SI entries
isdnlog: (Data versions: iprofd=0x06 net_cfg=0x06 /dev/isdninfo=0x01)
isdnlog: Everything is fine, isdnlog-4.71 is running in full featured mode.
isdnlog: Got signal 15
isdnlog: exit now 7
isdnlog: File /var/run/ removed!
isdnlog: File /var/lock/LCK…isdnctrl0 removed!