[Asterisk-Users] Asterisk connected with CAPI

2005-11-04 Thread richard Coco

Hi all,

i'm trying to install a EICON DIVA 4BRI (on CentOS 4.1
 2.6.9-22.0.1.EL)  using latest package from
sourceforge (chan_capi-cm-0.6.tar.gz).
I have installed divactrl_2.1.tar.gz and untared
protocols_all.tar.bz2 in /usr/share/eicon.
---
lsmod gives me the following...
Module  Size  Used by
divacapi  157937  0
capi   18177  0
capifs  5961  2 capi
kernelcapi 44641  2 divacapi,capi
md5 4033  1
ipv6  234881  12
lp 12077  0
autofs423237  0
i2c_dev11329  0
i2c_core   22081  1 i2c_dev
sunrpc159269  1
microcode   6881  0
button  6481  0
battery 8901  0
ac  4805  0
uhci_hcd   31065  0
parport_pc 24577  0
parport37129  2 lp,parport_pc
divas  76345  0
divadidd   13081  2 divacapi,divas
e100   41793  0
mii 4673  1 e100
floppy 58481  0
dm_snapshot16901  0
dm_zero 2369  0
dm_mirror  27825  0
ext3  116809  2
jbd71385  1 ext3
dm_mod 56661  6
dm_snapshot,dm_zero,dm_mirror
---
   


Starting divactrl
---
[EMAIL PROTECTED] asterisk]# divactrl load -c 1 -f ETSI
Start adapter Nr:1 - 'Diva Server 4BRI-8M 2.0 PCI',
SN: 7113 ... OK
[EMAIL PROTECTED] asterisk]#


but the /var/log/asterisk/messages gives me following
errors when i try to start asterisk:
Nov  4 12:25:45 WARNING[2658]: CAPI not installed,
CAPI disabled!
Nov  4 12:25:45 WARNING[2658]: chan_capi.so:
load_module failed, returning -1
Nov  4 12:25:45 WARNING[2658]: Loading module
chan_capi.so failed!

Is CAPI really not installed or have i forgotten
something? Here my capi.conf and modules.conf
;
; CAPI config
;
;

; general section

[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8


[EICON]
controller=1,2,3,4
isdnmode=msn
incomingmsn=*
softdtmf=on
relaxdtmf=on
accountcode=
context=incoming
echocancel=yes
devices=2
group=1

;
; Asterisk configuration file
;
; Module Loader configuration file
;

[modules]
autoload=yes
noload = pbx_gtkconsole.so
noload = pbx_kdeconsole.so
noload = app_intercom.so
load = chan_modem.so
load = res_musiconhold.so
load = chan_capi.so
noload = chan_alsa.so
[global]
chan_modem.so=yes
chan_capi.so=yes


thx in advance



__ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs
___
--Bandwidth and Colocation sponsored by Easynews.com --

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


Re: [Asterisk-Users] Asterisk connected with CAPI

2005-11-04 Thread Patrick
On Fri, 2005-11-04 at 03:55 -0800, richard Coco wrote:
 Hi all,
 
 i'm trying to install a EICON DIVA 4BRI (on CentOS 4.1
  2.6.9-22.0.1.EL)  using latest package from
 sourceforge (chan_capi-cm-0.6.tar.gz).
 I have installed divactrl_2.1.tar.gz and untared
 protocols_all.tar.bz2 in /usr/share/eicon.
 ---
 lsmod gives me the following...
 Module  Size  Used by
 divacapi  157937  0
 capi   18177  0
 capifs  5961  2 capi
 kernelcapi 44641  2 divacapi,capi
 md5 4033  1
 ipv6  234881  12
 lp 12077  0
 autofs423237  0
 i2c_dev11329  0
 i2c_core   22081  1 i2c_dev
 sunrpc159269  1
 microcode   6881  0
 button  6481  0
 battery 8901  0
 ac  4805  0
 uhci_hcd   31065  0
 parport_pc 24577  0
 parport37129  2 lp,parport_pc
 divas  76345  0
 divadidd   13081  2 divacapi,divas
 e100   41793  0
 mii 4673  1 e100
 floppy 58481  0
 dm_snapshot16901  0
 dm_zero 2369  0
 dm_mirror  27825  0
 ext3  116809  2
 jbd71385  1 ext3
 dm_mod 56661  6
 dm_snapshot,dm_zero,dm_mirror
 ---

 
 
 Starting divactrl
 ---
 [EMAIL PROTECTED] asterisk]# divactrl load -c 1 -f ETSI
 Start adapter Nr:1 - 'Diva Server 4BRI-8M 2.0 PCI',
 SN: 7113 ... OK
 [EMAIL PROTECTED] asterisk]#
 
 
 but the /var/log/asterisk/messages gives me following
 errors when i try to start asterisk:
 Nov  4 12:25:45 WARNING[2658]: CAPI not installed,
 CAPI disabled!
 Nov  4 12:25:45 WARNING[2658]: chan_capi.so:
 load_module failed, returning -1
 Nov  4 12:25:45 WARNING[2658]: Loading module
 chan_capi.so failed!
 
 Is CAPI really not installed or have i forgotten
 something? Here my capi.conf and modules.conf
 ;
 ; CAPI config
 ;
 ;
 
 ; general section
 
 [general]
 nationalprefix=0
 internationalprefix=00
 rxgain=0.8
 txgain=0.8
 
 
 [EICON]
 controller=1,2,3,4
 isdnmode=msn
 incomingmsn=*
 softdtmf=on
 relaxdtmf=on
 accountcode=
 context=incoming
 echocancel=yes
 devices=2
 group=1
 
 ;
 ; Asterisk configuration file
 ;
 ; Module Loader configuration file
 ;
 
 [modules]
 autoload=yes
 noload = pbx_gtkconsole.so
 noload = pbx_kdeconsole.so
 noload = app_intercom.so
 load = chan_modem.so
 load = res_musiconhold.so
 load = chan_capi.so
 noload = chan_alsa.so
 [global]
 chan_modem.so=yes
 chan_capi.so=yes
 
 
 thx in advance

Iirc CentOS 4.1 uses udev so you have to add the proper udev rules so
the capi devices are properly created Stick the following lines in a
file called e.g. 10-capi.rules and add it to /etc/udev/rules.d:

SYSFS{dev}=68:0,  NAME=capi20
SYSFS{dev}=191:[0-9]*,NAME=capi/%n

Use tabs between the , and NAME!

Once you have done this as root do udevstart. Unload all the capi
modules and load them again. With capiinfo you can check if it all went
well (it should give output). If it doesn't work then reboot the box.

Regards,
Patrick
___
--Bandwidth and Colocation sponsored by Easynews.com --

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


Re: [Asterisk-Users] Asterisk connected with CAPI

2005-11-04 Thread Sergio Chersovani

richard Coco ha scritto:


i'm trying to install a EICON DIVA 4BRI (on CentOS 4.1
2.6.9-22.0.1.EL)  using latest package from
 


Maybe you just need to check for the libcapi20 and /dev/capi20 device

Anyway you can compile a fresh libcapi from here
ftp://ftp.isdn4linux.de/pub/isdn4linux/CVS-Snapshots/isdn4k-utils-CVS-2005-10-28.tar.bz2

tar xjf  isdn4k-utils-CVS-2005-10-28.tar.bz2
cd isdn4k*
./configure
make clean
make install
ldconfig

Sergio
___
--Bandwidth and Colocation sponsored by Easynews.com --

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


Re: [Asterisk-Users] Asterisk connected with CAPI

2005-11-04 Thread Nardis Dome

Hi Patrick,

i've absolutly no idea what these magic lines do but
it WORKS!!! ;-)))

so thx for you input...

--- Patrick [EMAIL PROTECTED] wrote:

 On Fri, 2005-11-04 at 03:55 -0800, richard Coco
 wrote:
  Hi all,
  
  i'm trying to install a EICON DIVA 4BRI (on CentOS
 4.1
   2.6.9-22.0.1.EL)  using latest package from
  sourceforge (chan_capi-cm-0.6.tar.gz).
  I have installed divactrl_2.1.tar.gz and untared
  protocols_all.tar.bz2 in /usr/share/eicon.
 

---
  lsmod gives me the following...
  Module  Size  Used by
  divacapi  157937  0
  capi   18177  0
  capifs  5961  2 capi
  kernelcapi 44641  2 divacapi,capi
  md5 4033  1
  ipv6  234881  12
  lp 12077  0
  autofs423237  0
  i2c_dev11329  0
  i2c_core   22081  1 i2c_dev
  sunrpc159269  1
  microcode   6881  0
  button  6481  0
  battery 8901  0
  ac  4805  0
  uhci_hcd   31065  0
  parport_pc 24577  0
  parport37129  2 lp,parport_pc
  divas  76345  0
  divadidd   13081  2 divacapi,divas
  e100   41793  0
  mii 4673  1 e100
  floppy 58481  0
  dm_snapshot16901  0
  dm_zero 2369  0
  dm_mirror  27825  0
  ext3  116809  2
  jbd71385  1 ext3
  dm_mod 56661  6
  dm_snapshot,dm_zero,dm_mirror
 

---
 
  
  
  Starting divactrl
 
 ---
  [EMAIL PROTECTED] asterisk]# divactrl load -c 1 -f
 ETSI
  Start adapter Nr:1 - 'Diva Server 4BRI-8M 2.0
 PCI',
  SN: 7113 ... OK
  [EMAIL PROTECTED] asterisk]#
 
 
  
  but the /var/log/asterisk/messages gives me
 following
  errors when i try to start asterisk:
  Nov  4 12:25:45 WARNING[2658]: CAPI not installed,
  CAPI disabled!
  Nov  4 12:25:45 WARNING[2658]: chan_capi.so:
  load_module failed, returning -1
  Nov  4 12:25:45 WARNING[2658]: Loading module
  chan_capi.so failed!
  
  Is CAPI really not installed or have i forgotten
  something? Here my capi.conf and modules.conf
  ;
  ; CAPI config
  ;
  ;
  
  ; general section
  
  [general]
  nationalprefix=0
  internationalprefix=00
  rxgain=0.8
  txgain=0.8
  
  
  [EICON]
  controller=1,2,3,4
  isdnmode=msn
  incomingmsn=*
  softdtmf=on
  relaxdtmf=on
  accountcode=
  context=incoming
  echocancel=yes
  devices=2
  group=1
  
  ;
  ; Asterisk configuration file
  ;
  ; Module Loader configuration file
  ;
  
  [modules]
  autoload=yes
  noload = pbx_gtkconsole.so
  noload = pbx_kdeconsole.so
  noload = app_intercom.so
  load = chan_modem.so
  load = res_musiconhold.so
  load = chan_capi.so
  noload = chan_alsa.so
  [global]
  chan_modem.so=yes
  chan_capi.so=yes
  
  
  thx in advance
 
 Iirc CentOS 4.1 uses udev so you have to add the
 proper udev rules so
 the capi devices are properly created Stick the
 following lines in a
 file called e.g. 10-capi.rules and add it to
 /etc/udev/rules.d:
 
 SYSFS{dev}=68:0,NAME=capi20
 SYSFS{dev}=191:[0-9]*,NAME=capi/%n
 
 Use tabs between the , and NAME!
 
 Once you have done this as root do udevstart. Unload
 all the capi
 modules and load them again. With capiinfo you can
 check if it all went
 well (it should give output). If it doesn't work
 then reboot the box.
 
 Regards,
 Patrick
 ___
 --Bandwidth and Colocation sponsored by Easynews.com
 --
 
 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
 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
___
--Bandwidth and Colocation sponsored by Easynews.com --

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