[chan-capi-users] asterisk breaks with capi not installed

Rainer Maier RaMaierLug1 at gmx.de
Wed Mar 24 23:36:40 CET 2010


-------- Original-Nachricht --------
> Datum: Wed, 24 Mar 2010 19:37:44 +0100 (CET)
> Von: Armin Schindler <armin at melware.de>
> An: chan-capi users <chan-capi-users at lists.melware.net>
> Betreff: Re: [chan-capi-users] asterisk breaks with capi not installed

> 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.

I inserted the chan_capi.so=yes in a global section in modules.conf
no change.

> 
> > 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?

I was running asterisk as root in this case.
crw-rw----  1 root dialout  68,   0 19. Mär 22:24 capi20

> 
> >   Do I need the isdn section in the kernel?
> 
> No, only capi if you don't use diva-optimized capi.

I compiled chan_capi without any special optimisation, I think.
Is there a way I could find it out?
I kept all output of the compiles and install.

> 
> >   As modules ?
> 
> Your choice.

Ok, then I would leave them out.

> 
> >   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)?

after I started the diva driver again with 
/usr/lib/divas/divas_cfg.rc

I got the output
---------------
sv3000:# capiinfo
Number of Controllers : 4
Controller 1:
Manufacturer: Eicon Networks
CAPI Version: 2.0
Manufacturer Version: 3.0
Serial Number: 1266
BChannels: 2
Global Options: 0x000003f9
   internal controller supported
   DTMF supported
   Supplementary Services supported
   channel allocation supported (leased lines)
B1 protocols support: 0x000003df
   64 kbit/s with HDLC framing
   64 kbit/s bit-transparent operation
   V.110 asynconous operation with start/stop byte framing
   V.110 synconous operation with HDLC framing
   T.30 modem for fax group 3
   56 kbit/s bit-transparent operation
   Modem with all negotiations
   Modem asyncronous operation with start/stop byte framing
   Modem syncronous operation with HDLC framing
B2 protocols support: 0x00001fdf
   ISO 7776 (X.75 SLP)
   Transparent
   SDLC
   LAPD with Q.921 for D channel X.25 (SAPI 16)
   T.30 for fax group 3
   Transparent (ignoring framing errors of B1 protocol)
   Modem error correction and compression (V.42bis or MNP5)
   ISO 7776 (X.75 SLP) with V.42bis compression
   V.120 asyncronous mode
   V.120 asyncronous mode with V.42bis compression
   V.120 bit-transparent mode
   LAPD with Q.921 including free SAPI selection
B3 protocols support: 0x000000bf
   Transparent
   T.90NL, T.70NL, T.90
   ISO 8208 (X.25 DTE-DTE)
   X.25 DCE
   T.30 for fax group 3
   T.30 for fax group 3 with extensions
   Modem

  0100
  0200
  f9030000
  df030000
  df1f0000
  bf000000
  2029dcce 449e84cf 23ad29c0 14000000 46020000 f0550000
  fb010000 00000000 00000000 00000000 00000000
FAC REQ - Illegal application number (0x1101)

Controler 2:
..
..
---------------
nearly equal for all 4 controllers.

I then stared asterisk again:
asterisk -vvvgc

Here is the output:

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
                          .
                          .
                          . 

  == Registered translator 'g722tolin' from format g722 to slin, cost 1999
  == Registered translator 'lintog722' from format slin to g722, cost 1000
[Mar 24 23:26:24] WARNING[16178]: translate.c:654 __ast_register_translator: plc_samples 160 format f
  == Registered translator 'g722tolin16' from format g722 to slin16, cost 2999
  == Registered translator 'lin16tog722' from format slin16 to g722, cost 3000
 codec_g722.so => (ITU G.722-64kbps G722 Transcoder)
  == Parsing '/etc/asterisk/capi.conf':   == Found

That is the last line, then asterisk deos not react any more.
I then can only kill asterisk.

Any idea ?

Thank you very much for your help
Best regards
Rainer


> 
> > 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.
sv3000:/dev# capiinfo
capi not installed - No such device or address (6)
> 
> Armin
> _______________________________________________
> Chan-capi-users mailing list
> Chan-capi-users at lists.melware.net
> http://lists.melware.net/mailman/listinfo/chan-capi-users

-- 
GMX DSL: Internet, Telefon und Entertainment für nur 19,99 EUR/mtl.!
http://portal.gmx.net/de/go/dsl02


More information about the Chan-capi-users mailing list