BUENAS TARDES...
Soy novato en este foro, y llevo algunas horas dandole vueltas al google sobre un problema que me acontecion ayer yque no soy capaz de resolver. A ver is me podeis ayudar vosotros.
Resulta que cuando realizo una llamada a traves de un canal dhadi me
sale el siguiente error en CLI>:
-- Executing [0655550097@from-sip:1] Dial("SIP/101-08ea9498",
"DAHDI/2/655550097") in new stack
[Jan 20 02:13:31] WARNING[7465]: app_dial.c:1275 dial_exec_full:
Unable to create channel of type 'DAHDI' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
== Auto fallthrough, channel 'SIP/101-08ea9498' status is
'CHANUNAVAIL'
Al ver esto me cerciore de que todo estaba bien, pero al introducir el
comando DAHDI SHOW CHANNELS en la consola de CLI> me encuantro con que
no hay ningun canal activo:
Chan Extension Context Language MOH Interpret
pseudo default default
Al ver esto me fui a ver fisicamente si las luces de la tarjeta TDM400
estan encendidas y efectivamentes asi es... Asi que lo siguiente que
se me ocurre hacer es comprobar que todo esta bien:
#dahdi_hardware
#cat /proc/dahdi/*
#dahdi_scan
#dahdi_cfg -vv
E incluso me cercioro de que los archivos relacionados con la
instalacion de DAHDI esten bien:
#nano /etc/dahdi/modules
#nano /etc/dahdi/system.conf
#nano /etc/asterisk/dahdi-channels.conf
Y hasta el include en chan_dahdi.conf
#nano /etc/asterisk/chan_dahdi.conf
Todo lo veo correcto, con los valores que deben tener... sin embargo
en el EXTENSIONS.CONF en el apartado de llamadas a moviles lo tengo
bien configurado:
[...]
[moviles]
exten=>_06XXXXXXXX,1,Dial(DAHDI/2/${EXTEN:1})
[...]
Alguien me puede orientar de que puede estar pasando...
Os pongo tambien la configuracion de los comandos y archivos de configuracion por si veis algo raro...
# dahdi_hardware
pci:0000:02:09.0 wctdm+ e159:0001 Wildcard TDM400P REV I
# dahdi_scan
[1]
active=yes
alarms=OK
description=Wildcard TDM400P REV I Board 5
name=WCTDM/4
manufacturer=Digium
devicetype=Wildcard TDM400P REV I
location=PCI Bus 02 Slot 10
basechan=1
totchans=4
irq=21
type=analog
port=1,FXS
port=2,FXO
port=3,none
port=4,none
# cat /proc/dahdi/*
Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)
1 WCTDM/4/0 FXOKS (SWEC: MG2)
2 WCTDM/4/1 FXSKS (SWEC: MG2)
3 WCTDM/4/2
4 WCTDM/4/3
# dahdi_cfg -vv
DAHDI Tools Version - 2.2.0
DAHDI Version: 2.2.0.2
Echo Canceller(s): MG2
Configuration
======================
Channel map:
Channel 01: FXO Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 02)
2 channels to configure.
Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
Los modulos cargados en el archivo /etc/dahdi/modules son estos:
# Digium TE205P/TE207P/TE210P/TE212P: PCI dual-port T1/E1/J1
# Digium TE405P/TE407P/TE410P/TE412P: PCI quad-port T1/E1/J1
# Digium TE220: PCI-Express dual-port T1/E1/J1
# Digium TE420: PCI-Express quad-port T1/E1/J1
# wct4xxp
# Digium TE120P: PCI single-port T1/E1/J1
# Digium TE121: PCI-Express single-port T1/E1/J1
# Digium TE122: PCI single-port T1/E1/J1
# wcte12xp
# Digium T100P: PCI single-port T1
# Digium E100P: PCI single-port E1
# wct1xxp
# Digium TE110P: PCI single-port T1/E1/J1
# wcte11xp
# Digium TDM2400P/AEX2400: up to 24 analog ports
# Digium TDM800P/AEX800: up to 8 analog ports
# Digium TDM410P/AEX410: up to 4 analog ports
# wctdm24xxp
# X100P - Single port FXO interface
# X101P - Single port FXO interface
wcfxo
# Digium TDM400P: up to 4 analog ports
wctdm
# Digium B410P: 4 NT/TE BRI ports
# wcb4xxp
# Digium TC400B: G729 / G723 Transcoding Engine
# wctc4xxp
# Xorcom Astribank Devices
# xpp_usb
La edicion del archivo /etc/dahdi/system.conf es la siguiente:
# Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)
fxoks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2
# channel 3, WCTDM/4/2, no module.
# channel 4, WCTDM/4/3, no module.
# Global data
loadzone=es
defaultzone=es
El archivo /etc/asterisk/dahdi-channels.conf tiene esta pinta:
; Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)
;;; line="1 WCTDM/4/0 FXOKS (SWEC: MG2)"
signalling=fxo_ks
callerid="Channel 1" <4001>
mailbox=4001
group=5
context=from-internal
channel => 1
callerid=
mailbox=
group=
context=default
;;; line="2 WCTDM/4/1 FXSKS (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 2
callerid=
group=
context=default
Y al final de la edicion del archivo /etc/asterisk/chan_dahdi.conf
tengo añadida la linea include:
#include dahdi-channels.conf
GRACIAS...
UN SALUDO...
Isaac