[chan-capi-users] asterisk breaks with capi not installed
Armin Schindler
armin at melware.de
Wed Mar 24 19:37:44 CET 2010
On Wed, 24 Mar 2010, Rainer Maier wrote:
> Hi all,
> I always had problems to start former versions of asterisk.
> I now recompiled all I thought I needed.
> Still when I start asterisk it is stuck when it comes to load the capi driver.
>
> First my questions, later the versions and then what I did.
>
> 1. After installing capi_chan you need to set /etc/isdn/capi.conf
> What value do I need for a 'Dialogic Corporation Diva Server 4BRI-8M PCI (rev 01)' ?
> Is that still an issue with Chan_capi and diva drivers or a left over from former installations ?
/etc/isdn/capi.conf has nothing to do with asterisk/chan_capi or diva. You
don't need this file.
> 2. After installing In /etc/asterisk/modules.conf insert the line:
> load => res_features.so
> load => chan_capi.so
>
> and in the [global] section: <: unknown
> chan_capi.so=yes <: unknown
>
> Is the entry in the [global] section of modules.conf still necessary (asterisk-1.6.2.6) ?
> I did not see a global section there for the normal modules.
Maybe there is a change in asterisk-1.6 I don't know, but is was necessary
in the old days.
> 3. When I try to start asterisk it breaks with:
> sv3000:/etc/asterisk# asterisk -vvvgc
> Asterisk 1.6.2.6, Copyright (C) 1999 - 2010 Digium, Inc. and others.
> Created by Mark Spencer <markster at digium.com>
> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
> This is free software, with components licensed under the GNU General Public
> License version 2 and other licenses; you are welcome to redistribute it under
> certain conditions. Type 'core show license' for details.
> =========================================================================
> == Parsing '/etc/asterisk/asterisk.conf': == Found
> == Parsing '/etc/asterisk/extconfig.conf': == Found
> .
> (omitted)
> .
> == Registered translator 'lin16tog722' from format slin16 to g722, cost 2999
> codec_g722.so => (ITU G.722-64kbps G722 Transcoder)
> == Parsing '/etc/asterisk/capi.conf': == Found
> [Mar 24 19:06:31] WARNING[14048]: chan_capi.c:7834 cc_init_capi: CAPI not installed, chan_capi disabled!
> sv3000:/etc/asterisk#
This means chan_capi cannot access /dev/capi20 or there is no controller
added to capi core.
> Any idea?
what permissions does /dev/capi20 has and has the user which is running
asterisk the rw rights?
> Do I need the isdn section in the kernel?
No, only capi if you don't use diva-optimized capi.
> As modules ?
Your choice.
> If yes which part do I need which needs to be left out?
>
> Did I miss something ?
> Is there anywhere an overview which modules one needs ?
> i.e.
> Top: Asterisk
> Mid: chan_capi
> Bot: Diva driver
>
> ------------------------------------------------------------------------------------------
> Here is what I did.
> -----------------------------
> I am running:
> Debian Version 5.0.4 (Lenny).
> With Dialogic Corporation Diva Server 4BRI-8M PCI (rev 01)
>
> 1.0. I compiled a new kernel 2.6.30 without the isdn tree.
> 1.1. I rebooted on the new kernel.
>
> 2.0. I compiled a Melware Diva driver divas4linux-melware-3.1.4-109.75-1
> 2.1. I installed the driver
> 2.2. I configured the driver with its standard values.
> 2.3. I started the cards
Any log messages? Anything about cards registeres to capi (if kernelcapi is
used)?
> 3.0. I compiled chan_capi driver (HEAD downloaded 19.03.2010 last version entry in CHANGES is chan_capi-1.1.4)
> 3.1. I installed the driver.
> 3.2. I configured the driver.
>
> No errors showed.
> I stored all outputs of all compiles, installes and configs.
> I can supply them if they can clarify the situation.
Just check if your /dev/capi20 is correctly available for the asterisk user.
You can also use the user space tool 'capiinfo' to see what is available.
Armin
More information about the Chan-capi-users
mailing list