Вот и пришел черед моих глупых вопросов.
Asterisk 1.8.4.4
Description: Ubuntu 11.10
DAHDI Version: 2.4.1
Поставил я карточку с АлиЕкспресс, о которой сказал выше. Она увиделась в системе
Код: Выделить всё
root@asterisk:~# lspci | grep Digium
03:00.0 Ethernet controller: Digium, Inc. Wildcard TDM410 4-port analog card (rev 11)
Код: Выделить всё
root@asterisk:~# dahdi_scan
[1]
active=yes
alarms=UNCONFIGURED
description=DAHDI_DUMMY/1 (source: HRtimer) 1
name=DAHDI_DUMMY/1
manufacturer=
devicetype=DAHDI Dummy Timing
location=
basechan=1
totchans=0
irq=0
type=analog
[2]
active=yes
alarms=OK
description=Wildcard TDM410P Board 1
name=WCTDM/0
manufacturer=Digium
devicetype=Wildcard TDM410P
location=PCI Bus 03 Slot 01
basechan=1
totchans=4
irq=19
type=analog
port=1,FXO
port=2,FXO
port=3,FXO
port=4,FXO
Дальше, как сказано в мануале у китайцев я сделал
dahdi_genconf и узрел два конфига /etc/dahdi/system.conf и /etc/asterisk/dahdi-channels.conf
Код: Выделить всё
# Autogenerated by /usr/sbin/dahdi_genconf on Thu Jun 19 14:49:35 2014
# 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: DAHDI_DUMMY/1 "DAHDI_DUMMY/1 (source: HRtimer) 1" (MASTER).
# Span 2: WCTDM/0 "Wildcard TDM410P Board 1".
fxsks=1
echocanceller=oslec,1
fxsks=2
echocanceller=oslec,2
fxsks=3
echocanceller=oslec,3
fxsks=4
echocanceller=oslec,4
# Global data
loadzone<------>= us
defaultzone<--->= us
Код: Выделить всё
; Span 1: DAHDI_DUMMY/1 "DAHDI_DUMMY/1 (source: HRtimer) 1" (MASTER).
; Span 2: WCTDM/0 "Wildcard TDM410P Board 1".
;;; line="1 WCTDM/0/0"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default
;;; line="2 WCTDM/0/1"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 2
callerid=
group=
context=default
;;; line="3 WCTDM/0/2"
signalling=fxs_ks
callerid=asreceived
group=0
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
Потом ввел
dahdi_cfg -vvvvvvvvvvvvvvvvv
Код: Выделить всё
root@asterisk:/etc/asterisk# dahdi_cfg -vvvvvvvvvvvvvvvvv
DAHDI Tools Version - 2.4.1
DAHDI Version: 2.4.1
Echo Canceller(s): OSLEC
Configuration
======================
Channel map:
Channel 01: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 02)
Channel 03: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 03)
Channel 04: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 04)
4 channels to configure.
Setting echocan for channel 1 to oslec
Setting echocan for channel 2 to oslec
Setting echocan for channel 3 to oslec
Setting echocan for channel 4 to oslec
А вот в Астериск, по мануалу началась какая-то фигня. Что я делаю не так?
asterisk*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo default default In Service