Tomaremos en cuenta en nuevo driver DAHDI, ya que Zapata está obsoleto.
Teniendo nuestro asterisk instalado, ya sea compilando el código o utilizando una distro (Elastix, Trixbox, AsteriskNow) en la consola digitamos:
# dahdi_genconf
Con esto, le indicamos al sistema que busque hardware compatible. Y genera el archivo /etc/dahdi/system.conf con la configuración de las tarjetas.
El archivo /etc/asterisk/chan_dahdi.conf se configura con los parámetros por defecto para que el hardware funcione. Yo agrego el lenguaje en español, además activo busydetect y busycount para las líneas análogas.
[trunkgroups]
[channels]
language=es
context=from-pstn
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
faxdetect=incoming
echotraining=800
rxgain=1.0
txgain=1.0
callgroup=1
pickupgroup=1
;Uncomment these lines if you have problems with the disconection of your analog lines
busydetect=yes
busycount=6
;answeronpolarityswitch=yes
;hanguponpolarityswitch=yes
immediate=no
#include dahdi-channels.conf
#include chan_dahdi_additional.conf
Para una TDM410 o AEX410 quedaría más menos así el archivo dahdi-channels.conf. Tomando el cuenta 4 FXO.
; Span 1: WCTDM/0 "Wildcard AEX400 Board 1" (MASTER)
;;; line="1 WCTDM/0/0"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
channel => 1
callerid=
group=
context=default
;;; line="2 WCTDM/0/1"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
channel => 2
callerid=
group=
context=default
;;; line="3 WCTDM/0/2"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
channel => 3
callerid=
group=
context=default
;;; line="4 WCTDM/0/3"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 4
callerid=
group=
context=default
Con eso deberían poder tener tono, recibir y hacer llamadas.
Pronto agregaré la configuración para las TE121 TE122.