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

martes, 16 de agosto de 2011

Configuración Tarjetas para Asterisk - Parte 1 TDM410, AEX410

En esta ocasión voy a dar un pequeña guía para configurar tarjetas digium o similares para Asterisk, modelos TDM410, AEX410, TE121 TE122, etc.

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.