Sjur Eivind Usken
2004-Jan-16 07:07 UTC
[Asterisk-Users] CAPI not installed, after changed from i4l to CAPI
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@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@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@voipgk chan_capi-0.3.0]# rpm -e xisdnload [root@voipgk chan_capi-0.3.0]# rpm -e isdn4k-utils-devel [root@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@voipgk chan_capi-0.3.0]# cd [root@voipgk root]# rpm -i capi-0208190200-5.i686.rpm warning: capi-0208190200-5.i686.rpm: V3 DSA signature: NOKEY, key ID e01260f1 [root@voipgk root]# rpm -qa | grep capi capi-0208190200-5 [root@voipgk root]# [root@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@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@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@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@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@voipgk root]# cd /usr/local/src/ [root@voipgk src]# cd chan_capi-0.3.0/ [root@voipgk chan_capi-0.3.0]# make clean rm -f *.so *.o [root@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
Maciej Kietlinski
2004-Jan-16 08:31 UTC
[Asterisk-Users] CAPI not installed, after changed from i4l to CAPI
> 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.What is your ISDN card? Installing CAPI be sure to read HOWTO for your ISDN hardware. Maciej Kietlinski
Matteo Brancaleoni
2004-Jan-16 08:34 UTC
[Asterisk-Users] CAPI not installed, after changed from i4l to CAPI
don't u think that may need a CAPI enabled isdn card? you're running with a hisax driver, that means you don't have a capi card... get an avm or eicon card. Matteo. Il ven, 2004-01-16 alle 15:07, Sjur Eivind Usken ha scritto:> 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@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@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@voipgk chan_capi-0.3.0]# rpm -e xisdnload > [root@voipgk chan_capi-0.3.0]# rpm -e isdn4k-utils-devel [root@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@voipgk chan_capi-0.3.0]# cd [root@voipgk root]# rpm -i > capi-0208190200-5.i686.rpm > warning: capi-0208190200-5.i686.rpm: V3 DSA signature: NOKEY, key ID > e01260f1 [root@voipgk root]# rpm -qa | grep capi > capi-0208190200-5 > [root@voipgk root]# > [root@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@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@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@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@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@voipgk root]# cd /usr/local/src/ > [root@voipgk src]# cd chan_capi-0.3.0/ > [root@voipgk chan_capi-0.3.0]# make clean rm -f *.so *.o [root@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...-- Matteo Brancaleoni Espia System Administrator Email : mbrancaleoni@espia.it Web : http://www.espia.it Phone : +39 02 70633354 - ext 201 IAX(2): guest@213.140.14.155 - ext 201 Iaxtel: 1-700-56-62458 - ext 201
Sjur Eivind Usken
2004-Jan-16 14:33 UTC
[Asterisk-Users] CAPI not installed, after changed from i4l to CAPI
> 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 and install the capi libraries.The ISDN card is an Eicon Divas PCI 2.01 passive card, and some have pointed out to me that it has no CAPI support. While installing the CAPI drivers, I noted that there might be IRQ problems, even though it's a PCI card. It shared IRQ with the primary IDE and the USB. I've disabled in the BIOS all COM and Printer ports, so I used IRQ 5 then for the ISDN card. (used the bios) But I still have the same problem, that when calling out, it hangs up after a random time. All from 10 seconds to 10-20 minutes into the call. My Asterisk shows me this: -- Executing Dial("SIP/57966-8eb5", "modem/g1:097167465||") in new stack -- Executing Dial("SIP/57966-8eb5", "modem/g1:097167465||") in new stack -- Called g1:097167465 -- Called g1:097167465 -- Modem[i4l]/ttyI1 answered SIP/57966-8eb5 -- Modem[i4l]/ttyI1 answered SIP/57966-8eb5 -- Hungup 'Modem[i4l]/ttyI1' -- Hungup 'Modem[i4l]/ttyI1' I will post all my findings on my website: http://www.uninett.no/voip so others can follow this nice software! -- With kind regards / Med vennlig hilsen Sjur Eivind Usken Hospitant i testnett gruppa Uninett AS +47 91772027
I am trying to set up meetme functionality but am unsuccessful so far. When I dial the extension, an announcement says, "That is not a valid conference number, please try again." I have the following in my extensions.conf exten => 5551000,1,Meetme,1000 exten => 5551001,1,Meetme,1001 and my meetme.conf ; Configuration file for MeetMe simple conference rooms ; for Asterisk of course. ; [rooms] ; ; Usage is conf => confno ; conf => 1000 conf => 1001 Is there something more I need to do here? Paul
How do you enable music on hold?
Hi> I am trying to set up meetme functionality but am unsuccessful so far.have you zaptel hw in your box, or at least ztdummy loaded? zaptel timing is needed for conference> > I have the following in my extensions.conf > > exten => 5551000,1,Meetme,1000 > exten => 5551001,1,Meetme,1001mmh... use exten => 5551000,1,Meetme(1000) exten => 5551001,1,Meetme(1001) matteo. -- Brancaleoni Matteo <mbrancaleoni@espia.it> Espia - Emmegi Srl
add an mp3 to the path specified be sure to have mpg123 installed (and not mpg321 or some link that point mpg123 to mpg321...) matteo. Il sab, 2004-01-17 alle 00:39, Paul ha scritto:> How do you enable music on hold? > > From the little bit I found on the * site, it looks like all you do is > uncomment one of the lines in musiconhold.conf > > What else is to be done? > > ~paul > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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-- Brancaleoni Matteo <mbrancaleoni@espia.it> Espia - Emmegi Srl