[Asterisk-Users] CAPI not installed, after changed from i4l to CAPI

Sjur Eivind Usken Sjur.Usken at uninett.no
Fri Jan 16 07:07:02 MST 2004


I had unexpected hangups from my asterix box using the i4l driver. (SIP 
<-> SIP calls worked execellent, but SIP<->ISDN didn't.)

Then I changed the i4l driver in modem.conf with the chan_capi from 
jungham. (http://www.junghanns.net/asterisk)

I followed his instructions in the INSTALL file, and first encountered 
some errors compiling it. It help by deinstalling several isdn4linux 
packages (se bottom for full info) and install the capi libraries.

running "asterisk -vvvvvv &" from bash

  == Registered application 'Wait'
Asterisk Dynamic Loader Starting:
  == Parsing '/etc/asterisk/modules.conf': Found
 [chan_capi.so] => (Common ISDN API for Asterisk)
  == Parsing '/etc/asterisk/capi.conf': Found
Jan 16 13:44:48 NOTICE[16384]: chan_capi.c:2312 mkif: 
ast_capi_pvt(50,*,demo,0x2,2) (1,2,64) (0)(0.800000/0.800000)
Jan 16 13:44:48 NOTICE[16384]: chan_capi.c:2312 mkif: 
ast_capi_pvt(50,*,demo,0x2,2) (1,2,64) (0)(0.800000/0.800000)
Jan 16 13:44:48 NOTICE[16384]: chan_capi.c:2646 load_module: CAPI not 
installed!
Jan 16 13:44:48 WARNING[16384]: loader.c:312 ast_load_resource: 
chan_capi.so: load_module failed, returning -1
Jan 16 13:44:48 WARNING[16384]: chan_capi.c:2733 unload_module: Unable to 
unregister from CAPI!
  == Unregistered channel type 'CAPI'
Jan 16 13:44:48 WARNING[16384]: loader.c:358 load_modules: Loading module 
chan_capi.so failed!

The ISDN card worked with i4l driver, but then the call got hung up with 
random time.. form 10 seconds to several minutes..

I've loaded the following modules:
Module                  Size  Used by    Not tainted
hisax                 551748   0  (unused)
isdn                  138112   0  [hisax]
slhc                    6756   0  [isdn]
capi                   20992   0 
kernelcapi             34080   1  [capi]
capiutil               24896   0  [kernelcapi]
capifs                  5388   0  [capi]

I've done the following:

[root at voipgk chan_capi-0.3.0]# rpm -qa | grep isdn
isdn4k-utils-3.1-58
isdn4k-utils-devel-3.1-58
xisdnload-1.38-58
[root at voipgk chan_capi-0.3.0]# rpm -e isdn4k-utils
error: Failed dependencies:
        isdn4k-utils is needed by (installed) xisdnload-1.38-58
        isdn4k-utils = 3.1 is needed by (installed) 
isdn4k-utils-devel-3.1-58 [root at voipgk chan_capi-0.3.0]# rpm -e xisdnload 
[root at voipgk chan_capi-0.3.0]# rpm -e isdn4k-utils-devel [root at voipgk 
chan_capi-0.3.0]# rpm -e isdn4k-utils
warning: /etc/isdn/isdn.conf saved as /etc/isdn/isdn.conf.rpmsave

-----installing Capi, capi-lib and capi-dev---- 

[root at voipgk chan_capi-0.3.0]# cd [root at voipgk root]# rpm -i 
capi-0208190200-5.i686.rpm
warning: capi-0208190200-5.i686.rpm: V3 DSA signature: NOKEY, key ID 
e01260f1 [root at voipgk root]# rpm -qa | grep capi
capi-0208190200-5
[root at voipgk root]#
[root at voipgk root]# rpm -i capi-devel-0208190200-5.i686.rpm
warning: capi-devel-0208190200-5.i686.rpm: V3 DSA signature: NOKEY, key ID 
e01260f1
error: Failed dependencies:
        capi-libs = 0208190200 is needed by capi-devel-0208190200-5 
[root at voipgk root]# rpm -i capi-libs-static-0208190200-5.i686.rpm
warning: capi-libs-static-0208190200-5.i686.rpm: V3 DSA signature: NOKEY, 
key ID e01260f1
error: Failed dependencies:
        isdn4k-utils-devel = 0208190200 is needed by 
capi-libs-static-0208190200-5

I had some problems with static libraries to the isdn4l driver, but didn't 
get it using the dynamic. This could be a problem, but I don't know.. 

[root at voipgk root]# rpm -i capi-libs-
capi-libs-0208190200-5.i386.rpm         
capi-libs-static-0208190200-5.i386.rpm
capi-libs-0208190200-5.i686.rpm         
capi-libs-static-0208190200-5.i686.rpm
[root at voipgk root]# rpm -i capi-libs-0208190200-5.i686.rpm
warning: capi-libs-0208190200-5.i686.rpm: V3 DSA signature: NOKEY, key ID 
e01260f1 [root at voipgk root]# rpm -i capi-devel-0208190200-5.i686.rpm
warning: capi-devel-0208190200-5.i686.rpm: V3 DSA signature: NOKEY, key ID 
e01260f1

---then compiling the chan_capi.. (and after I've done a make install ; 
make config)

[root at voipgk root]# cd /usr/local/src/
[root at voipgk src]# cd chan_capi-0.3.0/
[root at voipgk chan_capi-0.3.0]# make clean rm -f *.so *.o [root at voipgk 
chan_capi-0.3.0]# make
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g  
-I/usr/include/asterisk -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686  
-DNEVER_EVER_EARLY_B3_CONNECTS -DFORCE_SOFTWARE_DTMF -DCAPI_ULAW 
-DCAPI_GAIN -DDEFLECT_ON_CIRCUITBUSY -DCAPI_SYNC -Wno-missing-prototypes 
-Wno-missing-declarations -DCRYPTO   -c -o chan_capi.o chan_capi.c
chan_capi.c: In function `capi_detect_dtmf':
chan_capi.c:206: warning: unused variable `error'
chan_capi.c:207: warning: unused variable `CMSG'
chan_capi.c:208: warning: unused variable `buf'
chan_capi.c: In function `capi_send_digit':
chan_capi.c:253: warning: unused variable `error'
chan_capi.c:254: warning: unused variable `CMSG'
chan_capi.c:255: warning: unused variable `buf'
gcc -shared -Xlinker -x -o chan_capi.so chan_capi.o -lcapi20
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g  
-I/usr/include/asterisk -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686  
-DNEVER_EVER_EARLY_B3_CONNECTS -DFORCE_SOFTWARE_DTMF -DCAPI_ULAW 
-DCAPI_GAIN -DDEFLECT_ON_CIRCUITBUSY -DCAPI_SYNC -Wno-missing-prototypes 
-Wno-missing-declarations -DCRYPTO   -c -o app_capiCD.o app_capiCD.c
gcc -shared -Xlinker -x -o app_capiCD.so app_capiCD.o
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g  
-I/usr/include/asterisk -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686  
-DNEVER_EVER_EARLY_B3_CONNECTS -DFORCE_SOFTWARE_DTMF -DCAPI_ULAW 
-DCAPI_GAIN -DDEFLECT_ON_CIRCUITBUSY -DCAPI_SYNC -Wno-missing-prototypes 
-Wno-missing-declarations -DCRYPTO   -c -o app_capiHOLD.o app_capiHOLD.c
gcc -shared -Xlinker -x -o app_capiHOLD.so app_capiHOLD.o
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g  
-I/usr/include/asterisk -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686  
-DNEVER_EVER_EARLY_B3_CONNECTS -DFORCE_SOFTWARE_DTMF -DCAPI_ULAW 
-DCAPI_GAIN -DDEFLECT_ON_CIRCUITBUSY -DCAPI_SYNC -Wno-missing-prototypes 
-Wno-missing-declarations -DCRYPTO   -c -o app_capiRETRIEVE.o 
app_capiRETRIEVE.c
gcc -shared -Xlinker -x -o app_capiRETRIEVE.so app_capiRETRIEVE.o
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g  
-I/usr/include/asterisk -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686  
-DNEVER_EVER_EARLY_B3_CONNECTS -DFORCE_SOFTWARE_DTMF -DCAPI_ULAW 
-DCAPI_GAIN -DDEFLECT_ON_CIRCUITBUSY -DCAPI_SYNC -Wno-missing-prototypes 
-Wno-missing-declarations -DCRYPTO   -c -o app_capiECT.o app_capiECT.c
gcc -shared -Xlinker -x -o app_capiECT.so app_capiECT.o
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g  
-I/usr/include/asterisk -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686  
-DNEVER_EVER_EARLY_B3_CONNECTS -DFORCE_SOFTWARE_DTMF -DCAPI_ULAW 
-DCAPI_GAIN -DDEFLECT_ON_CIRCUITBUSY -DCAPI_SYNC -Wno-missing-prototypes 
-Wno-missing-declarations -DCRYPTO   -c -o app_capiMCID.o app_capiMCID.c
gcc -shared -Xlinker -x -o app_capiMCID.so app_capiMCID.o rm app_capiCD.o 
app_capiECT.o app_capiMCID.o app_capiHOLD.o app_capiRETRIEVE.o


Any suggestions.. and sorry for a very long posting...


-- 


With kind regards / Med vennlig hilsen


Sjur Eivind Usken
Hospitant i testnett gruppa

Uninett AS
+47 91772027






More information about the asterisk-users mailing list