[Asterisk-Users] chan_capi & Eicon Diva problem

Patrick idefix at puzzled.xs4all.nl
Fri Dec 19 07:54:43 MST 2003


Answers at the end.


On Fri, 2003-12-19 at 14:37, Daniel ANDRE wrote:
> Hi Patrick,
>=20
> I have exactly the same problem with diva BRI-2M. Did you solve it?
>=20
> Regards,
>=20
> Daniel
>=20
>=20
> Patrick a =C3=A9crit:
>=20
> >Hello,
> >
> >I have an issue getting the chan_capi module to load in asterisk cvs
> >from today. Plain 2.4.20 kernel with melware patches for the Eicon Diva
> >Server Bri card.
> >
> >I load the modules with: modprobe -v divas divacapi
> >I load the firmware with: divactrl load -c 1 -f ETSI -vd6
> >
> >Output in /var/log/messages is:
> >Nov  9 19:26:26 voice kernel: Eicon DIVA - DIDD table
> >(http://www.melware.net)
> >Nov  9 19:26:26 voice kernel: divadidd: Rel:2.0  Rev:1.13=20
> >Build:102-51(local)
> >Nov  9 19:26:26 voice kernel: Eicon DIVA Server driver
> >(http://www.melware.net)
> >Nov  9 19:26:26 voice kernel: divas: Rel:2.0  Rev:1.45  Build:
> >102-52(local)
> >Nov  9 19:26:26 voice kernel: divas: support for: BRI/PCI PRI/PCI
> >adapters
> >Nov  9 19:26:26 voice kernel: divas: Diva Server BRI-2M PCI bus:
> >00000000 fn: 00000048 insertion.
> >Nov  9 19:26:26 voice kernel: PCI: Found IRQ 14 for device 00:09.0
> >Nov  9 19:26:26 voice kernel: PCI: Sharing IRQ 14 with 00:04.2
> >Nov  9 19:26:26 voice kernel: PCI: Sharing IRQ 14 with 00:06.0
> >Nov  9 19:26:26 voice kernel: divas: bus: 00000000 fn: 00000048 fix
> >latency.
> >Nov  9 19:26:26 voice kernel: divas: Diva Server BRI-2M PCI IRQ:14
> >SerNo:1884
> >Nov  9 19:26:26 voice kernel: divas: started with major 254
> >Nov  9 19:26:26 voice kernel: divas: thread started with pid 18151
> >
> >chan_capi-0.3.0 is properly installed. When I start asterisk I get in
> >/var/log/messages: Nov  9 19:27:21 voice modprobe: modprobe: Can't
> >locate module char-major-68
> >
> >And the asterisk console says:
> >[chan_capi.so] =3D> (Common ISDN API for Asterisk)
> >  =3D=3D Parsing '/etc/asterisk/capi.conf': Found
> >NOTICE[16384]: File chan_capi.c, Line 2646 (load_module): CAPI not
> >installed!
> >WARNING[16384]: File loader.c, Line 305 (ast_load_resource):
> >chan_capi.so: load_module failed, returning -1
> >WARNING[16384]: File chan_capi.c, Line 2733 (unload_module): Unable to
> >unregister from CAPI!
> >WARNING[16384]: File loader.c, Line 351 (load_modules): Loading module
> >chan_capi.so failed!
> >
> >I have /dev/capi20 and /dev/capi20.00-19 devices with major 68. But I
> >also have /dev/Divas with major 254
> >crw-------    1 root     root      68,   0 Jan 30  2003 capi20
> >crw-r--r--    1 root     root     254,   0 Nov  9 19:26 Divas
> >
> >
> >Any ideas?
> >
> >TIA,
> >Patrick
> >

Hi Daniel,

Make sure your card is not fighting over shared IRQs with one or more
other cards. Move it around in available PCI slots to see if you can get
the card its own IRQ. Turn off hardware you do not use (Parallel port,
usb, serial ports, on board sound, midi/game controllers) to free up
IRQs. The get yourself a plain vanilla 2.4.20 kernel from a kernel.org
mirror.

Here are the kernel build settings for ISDN:

<< ISDN subsystem >>
ISDN support                                    M
Support synchronous PPP                         Y
Use VJ-compression with synchronous PPP         Y
Support generic MP (RFC 1717)                   Y
Support BSD compression                         Y
Support audio via ISDN                          Y
Support AT-Fax Class 1 and 2 commands           Y

<< Active ISDN cards >>
CAPI2.0 support                                 M
Verbose reason code reporting (kernelsize +=3D7k) Y
CAPI2.0 Middleware support (EXPERIMENTAL)       Y
CAPI2.0 /dev/capi support                       M
CAPI2.0 filesystem support                      Y
Eicon DIVA active card support                  M
DIVA Server BRI/PCI support                     Y
DIVA i4l support                                M
DIVA Capi2.0 interface support                  M
Diva User-IDI interface support                 M
DIVA Maint driver support                       M

(all other options were "N")

Build the kernel, install, then load the following modules:
/sbin/modprobe -v kernelcapi
/sbin/modprobe -v capi
/sbin/modprobe -v capifs
/sbin/modprobe -v divadidd
/sbin/modprobe -v divas
/sbin/modprobe -v divacapi
/sbin/modprobe -v diva_idi

Check the output in /var/log/messages to see if everything loaded ok.

I have Basic Rate EuroISDN and load the firmware on the card with the
following command (get the firmware from ftp.isdn4linux.org iirc)
/usr/sbin/divactrl load -c 1 -f ETSI -vd6

Check the output in /var/log/messages to see if this went ok.

You can monitor the activity on the D channel with the following command
(get divactrl from mmm.metlware.de, needs diva_idi module loaded!)
divactrl dchannel -c 1 -xlog -dmonitor

Armin Schindler (author of the patches) told me that kernel 2.6 has
native capi support for the Eicon cards. Very nice. When zaptel and *
build on 2.6 I am definitely going to try this.

Good luck,
Patrick




More information about the asterisk-users mailing list