Materiel utilisé (carte ISDN) Carte Eicon DIVA 4BRI-8
A télécharger chez Eicon, driver pour Linux Diva4Linux_installer_9.6-111-82.bin (dernière version actuellement)
Dans la version de FreePBX que j'ai installé (version 2.9.0.7) il faut aussi ajouter quelques packages : ncurses-devel, et kernel-headers , le tout correspondant à la version déja installé.
Dans la version Trixbox que j'ai aussi testé, il faut ajoutr bien plus de package, car il n'y a rien pour compiler.. (même pas GCC...)

Pour FreePBX, voici ce qui tourne chez moi Asterisk version 1.8 (+ packages intégré par FreePBX et le package "asterisk18.devel" correspondant, obligatoire pour compiler la partie CAPI).

Une fois tout les packages installés, on peut lancer l'installation du driver Eicon, et tout doit être finis avant de lancer quoi que ce soit comme config sur Asterisk.

J'ai lu beaucoup de post qui recommande l'installation du chan_capi fournis par un autre site, mais pour ma part, celui-ci n'apporte rien de plus.

Mon fichier capi.conf (généré par la carte Eicon, via l'interface web) :

Code:
; ----------------------------------------------------------------------
;  CONFIGURATION SCRIPT FOR DIALOGIC DIVA ISDN ADAPTERS
;  THIS SCRIPT WAS GENERATED AUTOMATICALLY BY
;  /usr/lib/eicon/divas/Config
; ----------------------------------------------------------------------

[general]
; ----------------------------------------------
; /usr/lib/eicon/divas/chancapi.general
; ----------------------------------------------
nationalprefix=0        ; or for example "+49"
internationalprefix=00  ; or for example "+"
;subscriberprefix=+4969 ; prefix including area code (some lines need this)
rxgain=1.0       ;linear receive gain, 1.0 = no change, use Diva rxdgain and rxagc for gain control
txgain=1.0       ;linear transmit gain, 1.0 = no change, use Diva txdgain and txagc for gain control
language=de      ;set default language
;ulaw=yes        ;set this, if you live in u-law world instead of a-law

;jb.....         ;with Asterisk 1.4 you can configure jitterbuffer,
                 ;see Asterisk documentation for all jb* setting available.
;mohinterpret=default ;Asterisk 1.4: default music on hold class when placed on hold.


[ISDN1]
ntmode=yes
isdnmode=msn
immediate=yes
incomingmsn=* ;Use Diva MSN settings
group=1
controller=1
softdtmf=off
relaxdtmf=off
faxdetect=both
faxdetecttime=0
accountcode=
context=from-internal
holdtype=local
echocancelold=no
bridge=yes
devices=2
echocancel=no
echocancelnlp=0
econtransitconn=0
divaqsig=on
allow=all

[ISDN2]
ntmode=yes
isdnmode=msn
immediate=yes
incomingmsn=* ;Use Diva MSN settings
group=1
controller=2
softdtmf=off
relaxdtmf=off
faxdetect=off
faxdetecttime=0
accountcode=
context=from-internal
holdtype=local
echocancelold=no
bridge=yes
devices=2
echocancel=no
echocancelnlp=0
econtransitconn=0
divaqsig=on
allow=all

[ISDN3]
ntmode=yes
isdnmode=msn
immediate=yes
incomingmsn=* ;Use Diva MSN settings
group=1
controller=3
softdtmf=off
relaxdtmf=off
faxdetect=off
faxdetecttime=0
accountcode=
context=from-internal
holdtype=local
echocancelold=no
bridge=yes
devices=2
echocancel=no
echocancelnlp=0
econtransitconn=0
divaqsig=on
allow=all

[ISDN4]
ntmode=yes
isdnmode=msn
immediate=yes
incomingmsn=* ;Use Diva MSN settings
group=1
controller=4
softdtmf=off
relaxdtmf=off
faxdetect=off
faxdetecttime=0
accountcode=
context=from-internal
holdtype=local
echocancelold=no
bridge=yes
devices=2
echocancel=no
echocancelnlp=0
econtransitconn=0
divaqsig=on
allow=all
J'ai quand même changé le context du fichier capi.conf, car impossible de mettre le context voulu via l'interface web de Eicon (c'est une liste déroulante non éditable).

Si besoin de plus, dites moi :