IMPORTANTE!!!! questa procedura non è standard e non è da fornire direttamente ad un rivenditore ma da utilizzare solamente nel caso in cui ci venga richiesto di configurare schede digium dietro accordi specifici.
Per verificare che la scheda venga visualizzata a livello hardware:
~]# dahdi_hardware pci:0000:0a:00.0 wcte13xp+ d161:800a Wildcard TE131/TE133
wcte13xp indica il modulo del kernel necessario alla scheda
Verificare che il dahdi sia caricato su asterisk con il comando seguente:
*CLI> module show like chan_dahdi.so Module Description Use Count Status Support Level chan_dahdi.so DAHDI Telephony w/PRI & SS7 & MFC/R2 0 Running core
se non dovesse essere caricato lo si può caricare con questo comando:
*CLI> module load chan_dahdi.so
se si ha questo errore:
*CLI> module load chan_dahdi.so Unable to load module chan_dahdi.so Command 'module load chan_dahdi.so' failed. [2021-04-09 10:37:55] WARNING[18244]: loader.c:581 load_dlopen: Error loading module 'chan_dahdi.so': libopenr2.so.3: cannot open shared object file: No such file or directory [2021-04-09 10:37:55] WARNING[18244]: loader.c:1184 load_resource: Module 'chan_dahdi.so' could not be loaded.
installare libopenr2.x86_64 con il seguente comando:
yum -y install libopenr2.x86_64
a questo punto rilanciare il comando seguente sulla console di asterisk:
*CLI> module load chan_dahdi.so
creare il seguente script e inserire il contenuto indicato con il seguente comando:
cat > /etc/sysconfig/modules/dahdi.modules<<EOF #!/bin/bash logger -t dahdi "loading modules..." /sbin/modprobe wcte13xp dahdi_cfg EOF
dare i permessi di esecuzione allo script:
chmod +x /etc/sysconfig/modules/dahdi.modules
Abilitare la modalità E1 (Metodo Raccomandato) includendo nel file seguente /etc/modprobe.d/dahdi.conf la seguente impostazione:
options wcte13xp default_linemode=e1
Caricare i moduli del kernel:
modprobe wcte13xp
effettuare scansione delle configurazione con il comando:
~]# dahdi_scan [1] active=yes alarms=UNCONFIGURED description=Wildcard TE131/TE133 Card 0 name=WCT13x/0 manufacturer=Digium devicetype=Wildcard TE131/TE133 (VPMOCT032) location=PCI Bus 10 Slot 01 basechan=1 totchans=31 irq=0 type=digital-E1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=AMI,HDB3 framing_opts=CCS,CRC4 coding= framing=CAS
generare la configurazione del dahdi con i comandi seguenti:
~]# dahdi_genconf
e
~]# dahdi_cfg -v DAHDI Tools Version - 2.11.1 DAHDI Version: 2.11.1 Echo Canceller(s): HWEC, MG2, SEC, SEC2, KB1, JPAH Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) 31 channels to configure. Setting echocan for channel 1 to mg2 Setting echocan for channel 2 to mg2 Setting echocan for channel 3 to mg2 Setting echocan for channel 4 to mg2 Setting echocan for channel 5 to mg2 Setting echocan for channel 6 to mg2 Setting echocan for channel 7 to mg2 Setting echocan for channel 8 to mg2 Setting echocan for channel 9 to mg2 Setting echocan for channel 10 to mg2 Setting echocan for channel 11 to mg2 Setting echocan for channel 12 to mg2 Setting echocan for channel 13 to mg2 Setting echocan for channel 14 to mg2 Setting echocan for channel 15 to mg2 Setting echocan for channel 16 to none Setting echocan for channel 17 to mg2 Setting echocan for channel 18 to mg2 Setting echocan for channel 19 to mg2 Setting echocan for channel 20 to mg2 Setting echocan for channel 21 to mg2 Setting echocan for channel 22 to mg2 Setting echocan for channel 23 to mg2 Setting echocan for channel 24 to mg2 Setting echocan for channel 25 to mg2 Setting echocan for channel 26 to mg2 Setting echocan for channel 27 to mg2 Setting echocan for channel 28 to mg2 Setting echocan for channel 29 to mg2 Setting echocan for channel 30 to mg2 Setting echocan for channel 31 to mg2
editare il seguente file /etc/asterisk/chan_dahdi.conf e inserire l'incude a dahdi-channels.conf:
#include /etc/asterisk/dahdi-channels.conf
Ora riavviare asterisk con il comando:
asterisk -rx "core restart now"
entrare nella console di asterisk e verificare che ora il modulo dahdi veda correttamente la scheda con il comando seguente:
centralino*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked In Service Description
pseudo default default Yes
1 from-pstn default Yes
2 from-pstn default Yes
3 from-pstn default Yes
4 from-pstn default Yes
5 from-pstn default Yes
6 from-pstn default Yes
7 from-pstn default Yes
8 from-pstn default Yes
9 from-pstn default Yes
10 from-pstn default Yes
11 from-pstn default Yes
12 from-pstn default Yes
13 from-pstn default Yes
14 from-pstn default Yes
15 from-pstn default Yes
17 from-pstn default Yes
18 from-pstn default Yes
19 from-pstn default Yes
20 from-pstn default Yes
21 from-pstn default Yes
22 from-pstn default Yes
23 from-pstn default Yes
24 from-pstn default Yes
25 from-pstn default Yes
26 from-pstn default Yes
27 from-pstn default Yes
28 from-pstn default Yes
29 from-pstn default Yes
30 from-pstn default Yes
31 from-pstn default Yes A questo punto per poter utilizzare la scheda bisogna configurare un fascio di tipo dahdi su freepbx su g0.