[Asterisk-Users] Asterisk connected with CAPI

Patrick asterisk at puzzled.xs4all.nl
Fri Nov 4 05:09:38 MST 2005


On Fri, 2005-11-04 at 03:55 -0800, richard Coco wrote:
> Hi all,
> 
> i'm trying to install a EICON DIVA 4BRI (on CentOS 4.1
>  2.6.9-22.0.1.EL)  using latest package from
> sourceforge (chan_capi-cm-0.6.tar.gz).
> I have installed divactrl_2.1.tar.gz and untared
> protocols_all.tar.bz2 in /usr/share/eicon.
> -------------------------------------------------------
> lsmod gives me the following...
> Module                  Size  Used by
> divacapi              157937  0
> capi                   18177  0
> capifs                  5961  2 capi
> kernelcapi             44641  2 divacapi,capi
> md5                     4033  1
> ipv6                  234881  12
> lp                     12077  0
> autofs4                23237  0
> i2c_dev                11329  0
> i2c_core               22081  1 i2c_dev
> sunrpc                159269  1
> microcode               6881  0
> button                  6481  0
> battery                 8901  0
> ac                      4805  0
> uhci_hcd               31065  0
> parport_pc             24577  0
> parport                37129  2 lp,parport_pc
> divas                  76345  0
> divadidd               13081  2 divacapi,divas
> e100                   41793  0
> mii                     4673  1 e100
> floppy                 58481  0
> dm_snapshot            16901  0
> dm_zero                 2369  0
> dm_mirror              27825  0
> ext3                  116809  2
> jbd                    71385  1 ext3
> dm_mod                 56661  6
> dm_snapshot,dm_zero,dm_mirror
> -------------------------------------------------------
>    
> 
> 
> Starting divactrl
> ---------------------------------------------------
> [root at kingcoco asterisk]# divactrl load -c 1 -f ETSI
> Start adapter Nr:1 - 'Diva Server 4BRI-8M 2.0 PCI',
> SN: 7113 ... OK
> [root at kingcoco asterisk]#
> ----------------------------------------------------
> 
> but the /var/log/asterisk/messages gives me following
> errors when i try to start asterisk:
> Nov  4 12:25:45 WARNING[2658]: CAPI not installed,
> CAPI disabled!
> Nov  4 12:25:45 WARNING[2658]: chan_capi.so:
> load_module failed, returning -1
> Nov  4 12:25:45 WARNING[2658]: Loading module
> chan_capi.so failed!
> 
> Is CAPI really not installed or have i forgotten
> something? Here my capi.conf and modules.conf
> ;
> ; CAPI config
> ;
> ;
> 
> ; general section
> 
> [general]
> nationalprefix=0
> internationalprefix=00
> rxgain=0.8
> txgain=0.8
> 
> 
> [EICON]
> controller=1,2,3,4
> isdnmode=msn
> incomingmsn=*
> softdtmf=on
> relaxdtmf=on
> accountcode=
> context=incoming
> echocancel=yes
> devices=2
> group=1
> 
> ;
> ; Asterisk configuration file
> ;
> ; Module Loader configuration file
> ;
> 
> [modules]
> autoload=yes
> noload => pbx_gtkconsole.so
> noload => pbx_kdeconsole.so
> noload => app_intercom.so
> load => chan_modem.so
> load => res_musiconhold.so
> load => chan_capi.so
> noload => chan_alsa.so
> [global]
> chan_modem.so=yes
> chan_capi.so=yes
> 
> 
> thx in advance

Iirc CentOS 4.1 uses udev so you have to add the proper udev rules so
the capi devices are properly created Stick the following lines in a
file called e.g. 10-capi.rules and add it to /etc/udev/rules.d:

SYSFS{dev}="68:0",		NAME="capi20"
SYSFS{dev}="191:[0-9]*",        NAME="capi/%n"

Use tabs between the , and NAME!

Once you have done this as root do udevstart. Unload all the capi
modules and load them again. With capiinfo you can check if it all went
well (it should give output). If it doesn't work then reboot the box.

Regards,
Patrick



More information about the asterisk-users mailing list