[Asterisk-Users] struggling with Diva 4BRI and chan_capi
Louis-David Mitterrand
vindex at apartia.org
Tue Apr 22 02:02:42 MST 2003
Hi,
I am trying to configure a Diva Server 4BRI to work with chan_capi. Here
are the steps that I took:
- compiled fresh kernel with new-style CAPI support: i4l_divas_1.2
- got the divactrl_1.2 utilities, configured the card startup scripts,
- rebooted, card firmware loaded properly, "capiinfo" displays detailed
info on 4 controllers, however there is an error message:
FAC REQ - Illegal application number (0x1101)
- capi2i4l (compatibility with isdn4linux) works fine: I can use ipppd,
and dial into the server with minicom,
- here is the "lsmod" output:
Module Size Used by Tainted: P
capidrv 26740 8
isdn 103136 1 [capidrv]
capi 18048 0
divacapi 161884 -28
kernelcapi 30368 -18 [capidrv capi divacapi]
capiutil 22912 0 [capidrv kernelcapi]
diva_idi 15592 0
divas 52392 0
divadidd 10560 0 [divacapi diva_idi divas]
- compiled the latest chan_capi and installed the module in
/usr/lib/asterisk/modules
The strange thing is that compilation of chan_capi.so went fine even
though the paths to asterisk source were wrong in the Makefile. Is
asterisk source really needed ?
Now when starting with "asterisk -vvvc":
Asterisk Dynamic Loader Starting:
== Parsing '/etc/asterisk/modules.conf': Found
[chan_capi.so] => (Common ISDN API for Asterisk)
== Parsing '/etc/asterisk/capi.conf': Found
NOTICE[16384]: File chan_capi.c, Line 1781 (mkif): ast_capi_pvt(50,50,remote,2,2) (1,2,64)
== ast_capi_pvt(50,50,remote,2,2) (1,2,64)
NOTICE[16384]: File chan_capi.c, Line 1781 (mkif): ast_capi_pvt(50,50,remote,2,2) (1,2,64)
== ast_capi_pvt(50,50,remote,2,2) (1,2,64)
NOTICE[16384]: File chan_capi.c, Line 1781 (mkif): ast_capi_pvt(57,57,58,kapejod,2,2) (1,2,64)
== ast_capi_pvt(57,57,58,kapejod,2,2) (1,2,64)
NOTICE[16384]: File chan_capi.c, Line 1781 (mkif): ast_capi_pvt(57,57,58,kapejod,2,2) (1,2,64)
== ast_capi_pvt(57,57,58,kapejod,2,2) (1,2,64)
NOTICE[16384]: File chan_capi.c, Line 1781 (mkif): ast_capi_pvt(56,59,demo,2,2) (1,2,64)
== ast_capi_pvt(56,59,demo,2,2) (1,2,64)
NOTICE[16384]: File chan_capi.c, Line 1781 (mkif): ast_capi_pvt(56,59,demo,2,2) (1,2,64)
== ast_capi_pvt(56,59,demo,2,2) (1,2,64)
NOTICE[16384]: File chan_capi.c, Line 1999 (load_module): unable to listen!
WARNING[16384]: File loader.c, Line 273 (ast_load_resource): chan_capi.so: load_module failed, returning -1
WARNING[16384]: File loader.c, Line 319 (load_modules): Loading module chan_capi.so failed!
"strace asterisk -c" shows the following critical error:
open("/root/.capi20rc", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/capi20.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/dev/capi20", O_RDWR) = 8
ioctl(8, CAPI_INSTALLED, 0) = 0
open("/dev/capi20", O_RDWR|O_NONBLOCK) = 9
ioctl(9, CAPI_REGISTER, 0x4021ce00) = 1
write(9, "\32\0\1\0\5\200\1\0\0\0\0\0\377\3\0\0\377\3\377\37\0\0"..., 26) = -1 EIO (Input/output error)
ioctl(9, CAPI_GET_ERRCODE, 0x4021ce00) = 4353
time([1051002045]) = 1051002045
write(7, "Apr 22 11:00:45 NOTICE[16384]: F"..., 92) = 92
write(1, "NOTICE[16384]: File chan_capi.c,"..., 76NOTICE[16384]: File chan_capi.c, Line 1999 (load_module): unable to listen!
What have I missed? I am using debian sid/unstable with kernel-2.4.20,
asterisk-0.4.0-2
Thanks in advance for any help,
--
ARICIE: On ne m'opposera que trop de résistance.
Tu m'entendras peut-être, humble dans mon ennui,
Gémir du même orgueil que j'admire aujourd'hui.
(Phèdre, J-B Racine, acte 2, scène 1)
More information about the asterisk-users
mailing list