lunes, 12 de diciembre de 2011

Configuración Tarjetas para Asterisk - Parte 2 TE121 TE122

Lo prometido es deuda, segunda parte configuración TE121 / TE122 para líneas digitales E1.

Después de ejecutar

# dahdi_genconf

El cual genera el archivo /etc/dahdi/system.conf con la configuración de las tarjetas. Revisamos la configuración, preocupandonos de eliminar el crc4 (si no es extrictamente necesario).

/etc/dahdi/system.conf

# Autogenerated by /usr/sbin/dahdi_genconf on Mon Nov 16 11:24:12 2009
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: WCT1/0 "Wildcard TE122 Card 0" (MASTER)
span=1,1,0,ccs,hdb3
# termtype: te
bchan=1-15,17-31
dchan=16
echocanceller=oslec,1-15,17-31

# Global data

loadzone = us
defaultzone = us


Luego revisamos el archivo /etc/asterisk/chan_dahdi.conf, esta ves solo agregamos el español.

/etc/asterisk/chan_dahdi.conf

[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=0.0
txgain=0.0
callgroup=1
pickupgroup=1

;Uncomment these lines if you have problems with the disconection of your analog lines
;busydetect=yes
;busycount=3


immediate=no

#include dahdi-channels.conf
#include chan_dahdi_additional.conf


Este es el archivo /etc/asterisk/dahdi-channels.conf para las tarjetas digitales TE121 o TE121.

/etc/asterisk/dahdi-channels.conf

; Autogenerated by /usr/sbin/dahdi_genconf on Mon Nov 16 11:24:12 2009
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;

; Span 1: WCT1/0 "Wildcard TE122 Card 0" (MASTER)
group=0,11
context=from-pstn
switchtype = euroisdn
resetinterval=never
pridialplan=unknown
signalling = pri_cpe
channel => 1-15,17-31
context = default
group = 0


Con esta configuración se habilitan los canales 1-15, 17-31, el canal 16 es para señalización. Utilizamos contexto from-pstn, norma euroisdn, señalización esclavo.

Sólo falta hacer las pruebas necesarias.

Saludos

No hay comentarios: