ISDN and asterisk with active PCI card (AVM C2 - or B1, C4)

Hello,
is someone running asterisk with ISDN support using an active AVM card?
I would appreciate any info about a working configuration…

Using ISDN I stuck with asterisk 1.4 using chan_capi and AVM B1.
I wanted now to do a new recent setup using a new server with an AVM C2
card.
I managed to get capi working. but old chan_capi is not supported by
recent asterisk versions. (fails to build, old module fails to load).
Next idea was to try mISDN. But I do not get it work… Which module of
mISDN do I have to use? none seems to work…

lspci -kv
03:02.0 I2O: Digital Equipment Corporation StrongARM DC21285 (rev 04)
(prog-if 01) Subsystem: AVM GmbH Device 1100
Flags: bus master, medium devsel, latency 32, IRQ 19
Memory at fe7ffc00 (32-bit, non-prefetchable) [size=128]
I/O ports at dc80 [size=128]
Capabilities: [70] Power Management version 2
Kernel driver in use: c4
Kernel modules: c4

whatever modules I load/unload (with or without capi started) I get

/usr/sbin/misdn_cleanl2

0 controllers found

from my last tries, dmesg:
[ 249.339116] delete_channel: no stack
[ 262.528936] b1: revision 1.1.2.2
[ 264.178867] base_sock_release(ffff880216e1d080) sk=ffff880213b5f000
[ 264.178947] delete_channel: no stack
[ 288.681649] c4 0000:03:02.0: PCI IRQ 35 -> rerouted to legacy IRQ 19
[ 288.681666] c4: PCI BIOS reports AVM-C2 at i/o 0xdc80, irq 19, mem 0xfe7ffc00
[ 288.720037] kcapi: controller [001]: c2-dc80 attached
[ 288.720043] kcapi: controller [002]: c2-dc80 attached
[ 288.720045] c4: AVM C2 at i/o 0xdc80, irq 19, mem 0xfe7ffc00
[ 288.720093] c4: revision 1.1.2.2
[ 292.874849] base_sock_release(ffff880215c9bd00) sk=ffff88021642d000
[ 292.874949] delete_channel: no stack
[ 300.589793] base_sock_release(ffff880216f08d00) sk=ffff8800d9e0a000
[ 306.910189] CAPI 2.0 started up with major 68 (middleware)
[ 308.513576] base_sock_release(ffff880216f08d00) sk=ffff8800dafed800
[ 329.130575] c2-dc80: card 1 “C2” ready.
[ 329.130580] c2-dc80: card 1 Protocol: DSS1
[ 329.130581] c2-dc80: card 1 Linetype: point to multipoint
[ 329.130582] c2-dc80: C2-card (3.11-04) now active
[ 329.130584] kcapi: controller [001] “c2-dc80” ready.
[ 329.130616] c2-dc80: card 2 “C2” ready.
[ 329.130618] c2-dc80: card 2 Protocol: DSS1
[ 329.130620] c2-dc80: card 2 Linetype: point to multipoint
[ 329.130621] c2-dc80: C2-card (3.11-04) now active
[ 329.130622] kcapi: controller [002] “c2-dc80” ready.
[ 341.947080] base_sock_release(ffff880215d39080) sk=ffff880206845000
[ 341.947177] delete_channel: no stack
[ 344.645799] base_sock_release(ffff880215d39080) sk=ffff880206845000
[ 621.257771] base_sock_release(ffff880216dd7a80) sk=ffff8802156ea000
[ 742.384927] base_sock_release(ffff8800db5d5d00) sk=ffff8800d14a3c00
[ 742.385080] delete_channel: no stack
[ 749.965853] base_sock_release(ffff8800db5d5d00) sk=ffff8800d14a3c00
[ 749.966398] delete_channel: no stack
[ 770.765820] base_sock_release(ffff8800db5d8a80) sk=ffff8800d14a3400
[ 770.766363] delete_channel: no stack
[ 771.953617] base_sock_release(ffff8800da415080) sk=ffff8800d14a3c00
[ 771.953794] delete_channel: no stack
[ 928.481518] ISDN subsystem Rev: 1.1.2.3/1.1.2.2/1.1.2.3/1.1.2.2/1.1.2.2 loaded
[ 937.685544] base_sock_release(ffff880207fb2300) sk=ffff8802088d5400
[ 937.685709] delete_channel: no stack
[ 946.271279] base_sock_release(ffff880216ff9300) sk=ffff8802088e1c00
[ 946.271822] delete_channel: no stack
[ 960.835955] mISDNipac module version 2.0
[ 960.839868] AVM Fritz PCI driver Rev. 2.3
[ 966.596767] base_sock_release(ffff880215930080) sk=ffff880206844c00
[ 966.596938] delete_channel: no stack
[ 989.678237] DSP module 2.0
[ 989.678242] mISDN_dsp: DSP clocks every 64 samples. This equals 2 jiffies.
[ 999.589819] base_sock_release(ffff8800db5d9a80) sk=ffff8800d1585400
[ 999.590368] delete_channel: no stack
[ 1142.349278] perf interrupt took too long (2509 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
[ 1339.657873] base_sock_release(ffff8800db672d00) sk=ffff88003646a000
[ 1339.658413] delete_channel: no stack

I am running a fresh openSUSE leap 42.3 install…

rpm -qa | grep -iE ‘i4l|capi|isdn’

capi4linux-2011.8.29-93.1.x86_64
libmisdn1-2.1.0-34.1.x86_64
mISDNuser-debuginfo-2.1.0-34.1.x86_64
libcapi20-2-2011.8.29-93.1.x86_64
mISDNuser-2.1.0-34.1.x86_64
mISDNuser-devel-2.1.0-34.1.x86_64
i4lfirm-2011.8.29-93.1.x86_64
mISDNuser-debugsource-2.1.0-34.1.x86_64
i4l-base-2011.8.29-25.25.x86_64
libcapi20-3-2011.8.29-93.1.x86_64
i4l-isdnlog-2011.8.29-93.1.x86_64
libmisdn1-debuginfo-2.1.0-34.1.x86_64
capi4linux-devel-2011.8.29-93.1.x86_64

Thank you

Paul

Years ago this was already difficult to get to work. My understanding is that AVM is popular in Germany, so if you are in Germany and your telco is German Telekom, then you could ask them to switch to one of their ALL IP products. According to their webpage, ISDN will be shut down soon anyway. I guess the other telcos are not much different.

Thank you. Yes AVM is here very popular. But I ordered other ISDN
hardware, to give them a try (Junghanns, Eicon and other HFC-cards).
I was able to compile chan_capi-HEAD against asterisk 13.
My provider promises to keep ISDN and does a lot of advertisment to
that.
I also have IP telephony and very glad, I made faxing work through
SIP. struggled long with it. But I do need backup in case of internet or
power failure.

Do not try to use Cologne Chip based cards, or you’ll regret it with newer Asterisk system…

Fax is still popular in Germany, so I would base everything on a better hybrid card from Digium or Sangoma. The Sangoma B700 with hardware echo cancellation is an excellet product, but again, ISDN will go away this or next year.