Код: Выделить всё
hs1# dahdi_scan
[1]
active=yes
alarms=OK
description=Wildcard TDM410P Board 1
name=WCTDM/0
manufacturer=Digium
devicetype=Wildcard TDM410P (VPM100M)
location=PCI Bus 07 Slot 09
basechan=1
totchans=4
irq=18
type=analog
port=1,FXO
port=2,FXS
port=3,none
port=4,none
Код: Выделить всё
hs1# dahdi_cfg -vv
DAHDI Tools Version - 2.4.0-rc1
DAHDI Version: 2.4.0-rc5
Echo Canceller(s): MG2
Configuration
======================
Channel map:
Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)
Channel 02: FXO 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
hs1#
Код: Выделить всё
hs1# cat /usr/local/etc/dahdi/system.conf
fxsks=1
fxoks=2
echocanceller=mg2,1-2
loadzone = ru
defaultzone = ru
hs1#
Код: Выделить всё
;
; DAHDI telephony
;
; Configuration file
[trunkgroups]
[channels]
switchtype => euroisdn
language=ru
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=yes
group=1
callgroup=1
pickupgroup=1
callprogress=yes
progzone=us
tonezone = 0 ; 0 is US
jbenable = yes
;;;[home-phones]
context=out ; Uses the [internal] context in extensions.conf
signalling=auto ; fxo_ks Use FXO signalling for an FXS channel - as set in sytem.conf.conf
busydetect=yes
callprogress => yes
channel => 1 ; Telephone attached to port 1
;dahdichan => 1
group=2
;;;[pstn]
context=home ; Incoming calls go to [incoming-pstn-line] in extensions.conf
signalling=auto ; fxs_ks Use FXS signalling for an FXO channel - use as set in system.conf
faxdetect=incoming
busydetect=yes
channel => 2
;dahdichan => 2 ; PSTN attached to port 2
Код: Выделить всё
exten=> _7XXXXXXXXXX,1,Dial(SIP/${EXTEN}@multifon-out,30,r)
exten=> _8XXXXXXXXXX,1,Dial(SIP/${EXTEN}@sipnet,30,r)
exten=> _9XXXXXXX,1,Dial(Dahdi/1/${EXTEN:1})
Код: Выделить всё
hs1*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo default default In Service
1 out ru default In Service
2 home ru default In Service
hs1*CLI>
[Nov 4 12:21:47] WARNING[1710]: app_dial.c:2198 dial_exec_full: Unable to create channel of type 'Dahdi' (cause 17 - User busy)
Код: Выделить всё
hs1*CLI> dahdi show version
DAHDI Version: SVN-trunk-r10321 Echo Canceller: MG2