[Asterisk-Users] CAPI problems when loading chan_capi.so

Martin List-Petersen martin at list-petersen.net
Tue Mar 30 19:56:30 MST 2004


Hi Martin,

Have you checked the rights of your /dev/capi20* interfaces ? 
Do you run asterisk as a user or root ?

Either capi is not installed correctly (check with capiinfo) or you have not
given the user asterisk is using rights to access the capi devices.

/Martin

Citat Martin Mielke <martin.mielke at thales-is.com>:

> Hi all,
> 
> I compiled/installed chan_capi.so without problems. When I launch 
> Asterisk, I get the following error:
> 
> ---
> 
>  [chan_capi.so] => (Common ISDN API for Asterisk)
>   == Parsing '/etc/asterisk/capi.conf': Found
> Mar 30 19:47:52 NOTICE[16384]: chan_capi.c:2338 mkif: 
> ast_capi_pvt(91xxxxxx,*,pstn,0x2,2) (1,2,64) (0)(0.800000/0.800000) 0
> Mar 30 19:47:52 NOTICE[16384]: chan_capi.c:2338 mkif: 
> ast_capi_pvt(91xxxxxx,*,pstn,0x2,2) (1,2,64) (0)(0.800000/0.800000) 0
> Mar 30 19:47:52 NOTICE[16384]: chan_capi.c:2675 load_module: CAPI not 
> installed!
> Mar 30 19:47:52 WARNING[16384]: loader.c:312 ast_load_resource: 
> chan_capi.so: load_module failed, returning -1
> Mar 30 19:47:52 WARNING[16384]: chan_capi.c:2762 unload_module: Unable 
> to unregister from CAPI!
>   == Unregistered channel type 'CAPI'
> Mar 30 19:47:52 WARNING[16384]: loader.c:358 load_modules: Loading 
> module chan_capi.so failed!
> 
> ---
> 
> To test, I just modified the default MSN (50) to a real one (91xxxxxx 
> <-- faked here).
> 
> My capi.conf:
> ---
> pbx:/etc/asterisk # cat capi.conf
> ;
> ; CAPI config
> ;
> ;
> [general]
> nationalprefix=0
> internationalprefix=00
> rxgain=0.8
> txgain=0.8
> 
> [interfaces]
> 
> msn=91xxxxxxx
> incomingmsn=*
> controller=1
> softdtmf=1
> accountcode=
> context=pstn
> ;echosquelch=1
> ;echocancel=yes
> ;echotail=64
> callgroup=1
> deflect=91xxxxxxx
> devices=2
> 
> 
> ;PointToPoint (55512-0)
> ;for outgoing calls use example 5551212
> ;and in dialplan you can use callerid like
> ;exten => _0XXX.,1,StripMSD,1
> ;exten => _XXX.,2,Dial,CAPI/55512${CALLERIDNUM}:bBYEXTENSION
> ;============================================================
> mode=immediate
> ;isdnmode=ptp
> ;msn=55512
> ;controller=2
> ;devices=30
> 
> ---
> 
> 
> The messege "CAPI not installed" is weird because CAPI *is* installed:
> ---
> pbx:~ # rpm -qa | grep capi
> avmfritzcapi-1.0-194
> capisuite-0.4.3-52
> capi4linux-2003.9.17-7
> ---
> 
> In this sense: do I need any other special package?
> 
> 
> TIA,
> Martin
> 
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 


-- 
Training is everything.  The peach was once a bitter almond; cauliflower is
nothing but cabbage with a college education.
		-- Mark Twain, "Pudd'nhead Wilson's Calendar"




More information about the asterisk-users mailing list