[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problems with Sarge/mISDN/asterisk



Hello,

I have a (some) problems with a debian sarge/mISDN/asterisk configuration.
Here is a summary of what I've done and where are my problems with this:.

I have the following:
Debian Sarge 3.1, with the following Kernel:
>asterisk:~# uname -a
>Linux asterisk 2.6.14.4 #4 PREEMPT Thu Dec 15 21:50:49 CET 2005 i686 GNU/Linux

This ISDN Card (1 BRI):
>asterisk:~# lspci -v
>...
>0000:01:0b.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 3
>        I/O ports at dff0 [disabled] [size=8]
>        Memory at fc9ffc00 (32-bit, non-prefetchable) [size=256]
>        Capabilities: [40] Power Management version 1
>....

My next steps where:
 - installed sarge
- fetch mISDN-CVS-2005-12-12 from isdn4linux
- compiled
- installed the modules
- loaded the neccessary ones:
>asterisk:~# modprobe mISDN_core
>asterisk:~# modprobe mISDN_capi
>asterisk:~# modprobe hfcpci

I also tried parameters to hfcpci: layermask=0xf and also with protocol=0x22

snip from dmesg:
>Modular ISDN Stack core $Revision: 1.25 $
>mISDNd: kernel daemon started
>CAPI Subsystem Rev 1.1.2.8
>mISDN Capi 2.0 driver file version 1.14
>HFC card c726a040 dch c726a0c8 bch1 c726a248 bch2 c726a3d4
>mISDN: HFC-PCI driver Rev. 1.41
>PCI: Enabling device 0000:01:0b.0 (0000 -> 0003)
>ACPI: PCI Interrupt 0000:01:0b.0[A] -> Link [LNKH] -> GSI 3 (level, low) -> IRQ 3
>mISDN: HFC-PCI card manufacturer: CCD/Billion/Asuscom card name: 2BD0
>HFC-PCI: defined at mem 0xc881ec00 fifo 0xc67d8000(0x67d8000) IRQ 3 HZ 250
>spin_lock_adr=c726a0a4 now(c98cd3e9)
>busy_lock_adr=c726a0a8 now(c98cd3e9)
>reset_hfcpci: entered
>HFC_PCI: resetting HFC ChipId(30)
>HFC-PCI status(4) before reset
>HFC-PCI status(2) after reset
>HFC-PCI status(4) after 5us
>init_card: entered
>inithfcpci: entered
>ISDN L1 driver version 1.11
>ISDN L2 driver version 1.20
>kcapi: Controller 1: mISDN1 attached
>mISDNd: test event done
>HFC PCI: IRQ 3 count 36
>kcapi: card 1 "mISDN1" ready.
>HFC card c132e040 dch c132e0c8 bch1 c132e248 bch2 c132e3d4
>mISDN: HFC-PCI driver Rev. 1.41
>HFC-PCI: No more PCI cards found
>HFC 1 cards installed

The modules:
>asterisk:~# lsmod
>Module                  Size  Used by
>mISDN_l2               36992  0
>mISDN_l1               10632  0
>hfcpci                 29100  0
>mISDN_capi             90432  0
>kernelcapi             47520  1 mISDN_capi
>mISDN_core             74468  4 mISDN_l2,mISDN_l1,hfcpci,mISDN_capi
>ipv6                  235648  19
>pcspkr                  3936  0
>hw_random               5652  0
>uhci_hcd               30736  0
>usbcore               112000  2 uhci_hcd
>mousedev               11424  0
>psmouse                34308  0
>genrtc                  9864  0
>unix                   26800  10


Next I try to compile mISDNuser-CVS-2005-12-17, with following results:
>asterisk:/usr/local/src/mISDNuser-CVS-2005-12-17# make
>make TARGET=all subdirs
>......
>cc -g -Wall -O2 -I /usr/local/src/mISDNuser-CVS-2005-12-17/include -c -o net_l3.o net_l3.c
>net_l3.c:186:2: Warnung: #warning also remove flags:
>net_l3.c:204:2: Warnung: #warning also remove flags:
>net_l3.c: In Funktion »MsgStart«:
>net_l3.c:325: error: structure has no member named `feature'
>net_l3.c:325: error: `FEATURE_NET_CRLEN2' undeclared (first use in this function)
>net_l3.c:325: error: (Each undeclared identifier is reported only once
>net_l3.c:325: error: for each function it appears in.)
>net_l3.c: In Funktion »l3dss1_message«:
>net_l3.c:377: error: structure has no member named `feature'
>net_l3.c:377: error: `FEATURE_NET_CRLEN2' undeclared (first use in this function)
>net_l3.c: In Funktion »l3dss1_get_channel_id«:
>net_l3.c:521: error: structure has no member named `feature'
>.....many more errors

I decided must be solved, but ignoring at the moment and step ahead.

Installing Asterisk via:
apt-get install asterisk
apt-get install asterisk-chan-misdn

starting asterisk:
>asterisk:~# asterisk -vgc
>Asterisk 1.0.7-BRIstuffed-0.2.0-RC7k, Copyright (C) 1999-2004 Digium.
>......many lines.....
> [chan_misdn.so]Jan 18 22:49:26 WARNING[3522]: loader.c:258 ast_load_resource: /usr/lib/asterisk/modules/chan_misdn.so: undefined symbol: clear_bit Jan 18 22:49:26 WARNING[3522]: loader.c:440 load_modules: Loading module chan_misdn.so failed!

I tried also with unstable (asterisk 1.2.1), besides some problems with
dependencies of /etc/asterisk/misdn.conf it gives also a problem in a
ast_<whaterver-i-have-to-look> funktion with chan_misdn.so

So this ist a my problems. Any ideas, help, solution?

1) why did chan_misdn.so did not load even it is a vaild package for the configuration.

2) what is (maybe) the cause of the compiling problem?

3) why is there no actual mISDN package?

I'm aware the the card may not be correct configured, but I didn't find capiinfo. Also I'm not aware what the correct device will be, since at the moment I didn't have a clue about what to do for correct configuring udev with the new mISDN modules.
So if someone can give me advice what else is to do, it will help me also.

So, this is rough the pieces I have at the moment.

What shall I do, where should I look next?
I didn't find more help on pages like asterisk/voip-info/asterisk-guru etc.

If something important is missing, I can deliver it.

One last thing, I'm not on the list, please cc me, tanks.

Regards,

   bernd

--
'Lawyers don't have any better understanding of technology than a cow
does algebra' Phil Leigh.



Reply to: