[asterisk-users] mISDN & Asterisk 1.4: HFC-S card not responsive

Arik Raffael Funke arik at funke.eu
Tue Jul 24 13:32:15 CDT 2007


Hi,

I have installed Asterisk 1.4 with mISDN with the 
install-asterisk.tar.gz script from beronet.com. On my system I have two 
cards, one a AVM Frit!Card Pci 2.0 and one HFC-S chip. I know both to 
work well with mISDN on my system from a previous installation.

Now however, the AVM card works well at first glance, i.e. it 
"registers" incoming calls and works through the asterisk dialplan. 
Calls on the hfc card however seem to be completely ignored. There is 
not the slightest indication in asterisk that call come in. The CLI 
stays completely silent even for debug and verbose levels of 100 for 
core and misdn!

The HFC-S card however does seem to be not completely ignored by 
asterisk: if I plug-in or remove connection with a high misdn debug 
level, it shows the "usual" messages - as it also does for the AVM card. 
Only incoming calls are ignored - n.b. outgoing do not work either...

Below are outputs from the CLI (misdn show config, misdn show stacks, 
pluggin in cable, removing cable), dmesg and lspci -v. I hope somebody 
could give me a hint as to what could be the problem. The system is 
freshly installed and both cards are configured identically.

Cheers,
Arik



===== CLI: misdn show config ===== (n.b. port 1=hfcpci; port 2=avmfritz)
*CLI> misdn show config
Misdn General-Config:
  -> misdn_init: /etc/misdn-init.conf -> debug: 0
  -> tracefile: /var/log/asterisk/misdn.log -> bridging: no 

  -> stop_tone_after_first_digit: yes -> append_digits2exten: yes
  -> dynamic_crypt: no                -> crypt_prefix: **
  -> crypt_keys: test,muh             -> ntdebugflags: 0
  -> ntdebugfile: /var/log/misdn-nt.log

[PORT 1]
  -> name: intern                     -> allowed_bearers: all
  -> far_alerting: no                 -> rxgain: 0
  -> txgain: 0                        -> te_choose_channel: no
  -> pmp_l1_check: no                 -> reject_cause: 16
  -> block_on_alarm: no               -> hdlc: no
  -> context: Intern                  -> language: en
  -> musicclass: default              -> callerid:
  -> method: standard                 -> dialplan: 0
  -> localdialplan: 0                 -> cpndialplan: 0
  -> nationalprefix: 0                -> internationalprefix: 00
  -> presentation: -1                 -> screen: -1
  -> always_immediate: no             -> nodialtone: no
  -> immediate: no                    -> senddtmf: yes
  -> hold_allowed: no                 -> early_bconnect: yes
  -> incoming_early_audio: no         -> echocancel: 0
  -> need_more_infos: no              -> noautorespond_on_setup: no
  -> nttimeout: no                    -> bridging: yes
  -> jitterbuffer: 4000               -> jitterbuffer_upper_threshold: 0
  -> callgroup:                       -> pickupgroup:
  -> max_incoming: -1                 -> max_outgoing: -1
  -> l1watcher_timeout: 0             -> overlapdial: 0
  -> msns: *                          -> faxdetect: no
  -> faxdetect_context:               -> faxdetect_timeout: 5
  -> ptp: no

[PORT 2]
  -> name: intern                     -> allowed_bearers: all
  -> far_alerting: no                 -> rxgain: 0
  -> txgain: 0                        -> te_choose_channel: no
  -> pmp_l1_check: no                 -> reject_cause: 16
  -> block_on_alarm: no               -> hdlc: no
  -> context: Intern                  -> language: en
  -> musicclass: default              -> callerid:
  -> method: standard                 -> dialplan: 0
  -> localdialplan: 0                 -> cpndialplan: 0
  -> nationalprefix: 0                -> internationalprefix: 00
  -> presentation: -1                 -> screen: -1
  -> always_immediate: no             -> nodialtone: no
  -> immediate: no                    -> senddtmf: yes
  -> hold_allowed: no                 -> early_bconnect: yes
  -> incoming_early_audio: no         -> echocancel: 0
  -> need_more_infos: no              -> noautorespond_on_setup: no
  -> nttimeout: no                    -> bridging: yes
  -> jitterbuffer: 4000               -> jitterbuffer_upper_threshold: 0
  -> callgroup:                       -> pickupgroup:
  -> max_incoming: -1                 -> max_outgoing: -1
  -> l1watcher_timeout: 0             -> overlapdial: 0
  -> msns: *                          -> faxdetect: no
  -> faxdetect_context:               -> faxdetect_timeout: 5
  -> ptp: no
*CLI>



===== CLI: misdn show stacks =====
*CLI> misdn show stacks
BEGIN STACK_LIST:
   * Port 1 Type TE Prot. PMP L2Link DOWN L1Link:UP Blocked:0  Debug:1
   * Port 2 Type TE Prot. PMP L2Link DOWN L1Link:DOWN Blocked:0  Debug:1
*CLI>


===== CLI: when plugging in hfc card =====
*CLI> misdn set debug 100
changing debug level for all ports to 100
*CLI>
*CLI> P[ 0] Got empty Msg..
P[ 0] MGMT: Short status dinfo 1000001
P[ 0] MGMT: SSTATUS: L1_ACTIVATED
P[ 0] Got empty Msg..
*CLI>



===== CLI: removing cable from hfc card =====
*CLI> P[ 0] Got empty Msg..
P[ 0] MGMT: Short status dinfo 1000000
P[ 0] MGMT: SSTATUS: L1_DEACTIVATED
P[ 1] $$$ find_chan: No channel found for oad: dad:
P[ 0] get_index: event not found!
P[ 1] I IND :CLEAN_UP oad: dad: pid:0 state:none
P[ 1] empty_chan_in_stack: 1
P[ 1] Idx:0 stack->cchan:0 in_use:0 Chan:1
P[ 1] Idx:1 stack->cchan:0 in_use:0 Chan:2
P[ 1] Idx:2 stack->cchan:0 in_use:0 Chan:3
P[ 1] $$$ CLEANUP CALLED pid:0
P[ 1] $$$ Already cleaned up bc with stid :0
P[ 1] $$$ find_chan: No channel found for oad: dad:
P[ 0] get_index: event not found!
P[ 1] I IND :CLEAN_UP oad: dad: pid:0 state:none
P[ 1] empty_chan_in_stack: 2
P[ 1] Idx:0 stack->cchan:0 in_use:0 Chan:1
P[ 1] Idx:1 stack->cchan:0 in_use:0 Chan:2
P[ 1] Idx:2 stack->cchan:0 in_use:0 Chan:3
P[ 1] $$$ CLEANUP CALLED pid:0
P[ 1] $$$ Already cleaned up bc with stid :0
P[ 1] $$$ find_chan: No channel found for oad: dad:
P[ 0] get_index: event not found!
P[ 1] I IND :CLEAN_UP oad: dad: pid:0 state:none
P[ 1] empty_chan_in_stack: 3
P[ 1] Idx:0 stack->cchan:0 in_use:0 Chan:1
P[ 1] Idx:1 stack->cchan:0 in_use:0 Chan:2
P[ 1] Idx:2 stack->cchan:0 in_use:0 Chan:3
P[ 1] $$$ CLEANUP CALLED pid:0
P[ 1] $$$ Already cleaned up bc with stid :0
P[ 0] Got empty Msg..

*CLI>




===== Output from lspci -v =====
[root at odysseus install-asterisk]# lspci -v
00:00.0 Network controller: AVM Audiovisuelles MKTG & Computer System 
GmbH A1 ISDN [Fritz] (rev 02)
         Subsystem: AVM Audiovisuelles MKTG & Computer System GmbH 
FRITZ!Card ISDN Controller
         Flags: medium devsel, IRQ 22
         Memory at fdc00000 (32-bit, non-prefetchable) [size=32]
         I/O ports at d400 [size=32]

00:01.0 Network controller: Cologne Chip Designs GmbH ISDN network 
controller [HFC-PCI] (rev 02)
         Subsystem: Cologne Chip Designs GmbH ISDN Board
         Flags: bus master, medium devsel, latency 16, IRQ 18
         I/O ports at c400 [disabled] [size=8]
         Memory at fd800000 (32-bit, non-prefetchable) [size=256]
         Capabilities: [40] Power Management version 1

[root at odysseus install-asterisk]#




===== Output from /etc/init.d/misdn-init scan, config and start =====
[root at odysseus asterisk-1.4.8]# service misdn-init scan
[OK] found the following devices:
card=1,hfcpci
card=2,avmfritz
[ii] run "/usr/sbin/misdn-init config" to store this information to 
/etc/misdn-init.conf

[root at odysseus asterisk-1.4.8]# service misdn-init config
[OK] /etc/misdn-init.conf created. It's now safe to run 
"/usr/sbin/misdn-init start"
[ii] make your ports (1-2) available in asterisk by editing 
"/etc/asterisk/misdn.conf"

[root at odysseus asterisk-1.4.8]# service misdn-init start
CAPI Subsystem Rev 1.1.2.8
capifs: Rev 1.1.2.3
capi20: Rev 1.1.2.7: started up with major 68 (middleware+capifs)
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
  [<c1005d3a>] show_trace_log_lvl+0x1a/0x2f
  [<c10062e3>] show_trace+0x12/0x14
  [<c100635e>] dump_stack+0x16/0x18
  [<c10363c7>] __lock_acquire+0x118/0x835
  [<c1036de1>] lock_acquire+0x61/0x80
  [<c11f58b7>] _spin_lock_irqsave+0x33/0x43
  [<c11f54f6>] __down+0x3c/0xbf
  [<c11f5332>] __down_failed+0xa/0x10
  [<cd3bb083>] init_module+0x11b/0x15c [mISDN_core]
  [<c103d23c>] sys_init_module+0x173e/0x1899
  [<c1005540>] syscall_call+0x7/0xb
  =======================
mISDNd: kernel daemon started (current:c6912030)
mISDNd: test event done
ISDN L1 driver version 1.20
ISDN L2 driver version 1.32
mISDN: DSS1 Rev. 1.47
mISDN Capi 2.0 driver file version 1.21
-----------------------------------------
  Loading module(s) for your misdn-cards:
-----------------------------------------
/sbin/modprobe --ignore-install hfcpci protocol=0x2 layermask=0xf
HFC card c0abe800 dch c0abe87c bch1 c0abea18 bch2 c0abebb4
mISDN: HFC-PCI driver Rev. 1.49
PCI: Enabling device 0000:00:01.0 (0000 -> 0003)
mISDN: HFC-PCI card manufacturer: CCD/Billion/Asuscom card name: 2BD0
HFC-PCI: defined at mem 0xcd324000 fifo 0xc0650000(0x1a650000) IRQ 18 HZ 250
reset_hfcpci: entered
HFC_PCI: resetting HFC ChipId(30)
HFC-PCI status(2) before reset
HFC-PCI status(2) after reset
HFC-PCI status(2) after 50000us
init_card: entered
inithfcpci: entered
HFC PCI: IRQ 18 count 19
HFC card c8554800 dch c855487c bch1 c8554a18 bch2 c8554bb4
mISDN: HFC-PCI driver Rev. 1.49
HFC-PCI: No more PCI cards found
HFC 1 cards installed
/sbin/modprobe --ignore-install avmfritz protocol=0x2 layermask=0xf
ISAC module $Revision: 1.18 $
AVM Fritz PCI/PnP driver Rev. 1.43
PCI: Enabling device 0000:00:00.0 (0000 -> 0003)
mISDN_fcpcipnp: found adapter Fritz!Card PCI at 0000:00:00.0
fritz card c8554800 dch c85548a0 bch1 c8554a3c bch2 c8554bd8
AVM PCI: stat 0x3020a
AVM PCI: Class A Rev 2
AVM PnP: HDLC version 1
mISDN: AVM Fritz!PCI config irq:22 base:0xD400
AVM PCI/PnP: reset
AVM PCI/PnP: S0/S1 7/0
Fritz1 ISAC STAR 48
Fritz1 ISAC MODE 0
Fritz1 ISAC ADF2 0
Fritz1 ISAC ISTA 0
Fritz1 ISAC CIR0 7c
mISDN_isac_init: ISAC version (0): 2086/2186 V1.1
Fritz1 HDLC 1 STA 81000000
Fritz1 HDLC 2 STA 0
AVM Fritz!PCI: IRQ 22 count 2
fritz 1 cards installed
/sbin/modprobe mISDN_dsp debug=0x0 options=0 poll=128 dtmfthreshold=100
mISDN_dsp: Audio DSP  Rev. 1.29 (debug=0x0) EchoCancellor MG2 
dtmfthreshold(100)
mISDN_dsp: DSP clocks every 128 samples. This equals 4 jiffies.
[i] creating device node: /dev/mISDN
[root at odysseus asterisk-1.4.8]#



===== dmesg output after loading mISDN =====
audit(1185291518.207:3): avc:  denied  { search } for  pid=2482 
comm="ldconfig" name="libpri-1.4.1" dev=dm-0 ino=140180 
scontext=root:system_r:ldconfig_t:s0-s0:c0.c1023 
tcontext=root:object_r:src_t:s0 tclass=dir
audit(1185291518.207:4): avc:  denied  { getattr } for  pid=2482 
comm="ldconfig" name="libpri-1.4.1" dev=dm-0 ino=140180 
scontext=root:system_r:ldconfig_t:s0-s0:c0.c1023 
tcontext=root:object_r:src_t:s0 tclass=dir
audit(1185291518.207:5): avc:  denied  { read } for  pid=2482 
comm="ldconfig" name="libpri-1.4.1" dev=dm-0 ino=140180 
scontext=root:system_r:ldconfig_t:s0-s0:c0.c1023 
tcontext=root:object_r:src_t:s0 tclass=dir
audit(1185291518.207:6): avc:  denied  { read } for  pid=2482 
comm="ldconfig" name="libpri.so.1.0" dev=dm-0 ino=140218 
scontext=root:system_r:ldconfig_t:s0-s0:c0.c1023 
tcontext=root:object_r:src_t:s0 tclass=file
audit(1185291518.207:7): avc:  denied  { getattr } for  pid=2482 
comm="ldconfig" name="libpri.so.1.0" dev=dm-0 ino=140218 
scontext=root:system_r:ldconfig_t:s0-s0:c0.c1023 
tcontext=root:object_r:src_t:s0 tclass=file
CAPI Subsystem Rev 1.1.2.8
SELinux: initialized (dev capifs, type capifs), uses genfs_contexts
capifs: Rev 1.1.2.3
capi20: Rev 1.1.2.7: started up with major 68 (middleware+capifs)
Modular ISDN Stack core version (1_1_5) revision ($Revision: 1.40 $)
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
  [<c1005d3a>] show_trace_log_lvl+0x1a/0x2f
  [<c10062e3>] show_trace+0x12/0x14
  [<c100635e>] dump_stack+0x16/0x18
  [<c10363c7>] __lock_acquire+0x118/0x835
  [<c1036de1>] lock_acquire+0x61/0x80
  [<c11f58b7>] _spin_lock_irqsave+0x33/0x43
  [<c11f54f6>] __down+0x3c/0xbf
  [<c11f5332>] __down_failed+0xa/0x10
  [<cd3bb083>] init_module+0x11b/0x15c [mISDN_core]
  [<c103d23c>] sys_init_module+0x173e/0x1899
  [<c1005540>] syscall_call+0x7/0xb
  =======================
mISDNd: kernel daemon started (current:c6912030)
mISDNd: test event done
ISDN L1 driver version 1.20
ISDN L2 driver version 1.32
mISDN: DSS1 Rev. 1.47
mISDN Capi 2.0 driver file version 1.21
HFC card c0abe800 dch c0abe87c bch1 c0abea18 bch2 c0abebb4
mISDN: HFC-PCI driver Rev. 1.49
PCI: Enabling device 0000:00:01.0 (0000 -> 0003)
mISDN: HFC-PCI card manufacturer: CCD/Billion/Asuscom card name: 2BD0
HFC-PCI: defined at mem 0xcd324000 fifo 0xc0650000(0x1a650000) IRQ 18 HZ 250
reset_hfcpci: entered
HFC_PCI: resetting HFC ChipId(30)
HFC-PCI status(2) before reset
HFC-PCI status(2) after reset
HFC-PCI status(2) after 50000us
init_card: entered
inithfcpci: entered
HFC PCI: IRQ 18 count 19
HFC card c8554800 dch c855487c bch1 c8554a18 bch2 c8554bb4
mISDN: HFC-PCI driver Rev. 1.49
HFC-PCI: No more PCI cards found
HFC 1 cards installed
ISAC module $Revision: 1.18 $
AVM Fritz PCI/PnP driver Rev. 1.43
PCI: Enabling device 0000:00:00.0 (0000 -> 0003)
mISDN_fcpcipnp: found adapter Fritz!Card PCI at 0000:00:00.0
fritz card c8554800 dch c85548a0 bch1 c8554a3c bch2 c8554bd8
AVM PCI: stat 0x3020a
AVM PCI: Class A Rev 2
AVM PnP: HDLC version 1
mISDN: AVM Fritz!PCI config irq:22 base:0xD400
AVM PCI/PnP: reset
AVM PCI/PnP: S0/S1 7/0
Fritz1 ISAC STAR 48
Fritz1 ISAC MODE 0
Fritz1 ISAC ADF2 0
Fritz1 ISAC ISTA 0
Fritz1 ISAC CIR0 7c
mISDN_isac_init: ISAC version (0): 2086/2186 V1.1
Fritz1 HDLC 1 STA 81000000
Fritz1 HDLC 2 STA 0
AVM Fritz!PCI: IRQ 22 count 2
fritz 1 cards installed
mISDN_dsp: Audio DSP  Rev. 1.29 (debug=0x0) EchoCancellor MG2 
dtmfthreshold(100)
mISDN_dsp: DSP clocks every 128 samples. This equals 4 jiffies.




More information about the asterisk-users mailing list