Здравствуйте!
Установлен Asterisk 1.8.15-cert4, плата YEALINK TDM400P, определяется
как Wildcard S400P Prototype Board 5, 2 FXO, 2FXS порта. Используется
пока только два FXO-транка c городской АТС.
Если звонить с разных типов внутренних и внешних телефонов на sip-телефон
то все ок,при звонке именно с sip-телефона наружу тишина в трубке, звонок
приходит и если положить трубку отбой срабатывает.
/etc/dahdi/system.conf
/# Span 1: WCTDM/4 "Wildcard S400P Prototype Board 5" (MASTER)
fxsks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2
fxoks=3
echocanceller=mg2,3
fxoks=4
echocanceller=mg2,4
# Global data
loadzone = ru
defaultzone = ru
dahdi-channels.conf
-------------------
; Span 1: WCTDM/4 "Wildcard S400P Prototype Board 5" (MASTER)
;;; line="1 WCTDM/4/0 FXSKS (In use)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default
;;; line="2 WCTDM/4/1 FXSKS (In use)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 2
callerid=
group=
context=default
;;; line="3 WCTDM/4/2 FXOKS (In use)"
signalling=fxo_ks
callerid="Channel 3" <4003>
mailbox=4003
group=5
context=from-internal
channel => 3
callerid=
mailbox=
group=
context=default
;;; line="4 WCTDM/4/3 FXOKS (In use)"
signalling=fxo_ks
callerid="Channel 4" <4004>
mailbox=4004
group=5
context=from-internal
channel => 4
callerid=
mailbox=
group=
context=default
chan_dahdi.conf
---------------
[trunkgroups]
[channels]
usecallerid => yes
hidecallerid => no
progzone => ru
language => ru
cidstart => polarity
cidsignalling => bell
relaxdtmf => yes
busydetect => yes
callprogress => yes
callwaiting => no
threewaycalling => yes
transfer => yes
echocancel => yes
echotraining => 800
context=incoming
group=0
channel => 1
channel => 2
context=from-internal
group=1
busydetect => yes
callprogress => yes
channel => 3
channel => 4
extensions.conf
---------------
[globals]
OUTBOUNDTRUNK1=DAHDI/1
OUTBOUNDTRUNK2=DAHDI/2
TLPHONE=981111111111
[general]
autofallthrough=yes
[default]
[incoming]
exten => s,1,Answer()
exten => s,n,Dial(dahdi/3&dahdi/4&sip/1001&sip/1004&sip/1005,10,m)
exten => s,n,Goto(forwarding,${TLPHONE},1)
exten => s,n,Hangup()
[from-internal]
include=cause-codes
exten => _9XXXXXX,1,Dial(${OUTBOUNDTRUNK1}&${OUTBOUNDTRUNK2}/${EXTEN:1})
exten => _9XXXXXX,n,Congestion()
exten => _9XXXXXX,n,Hangup()
exten => _9XXXXXXXXXXX,1,Dial(${OUTBOUNDTRUNK1}&${OUTBOUNDTRUNK2}/${EXTEN:1})
exten => _9XXXXXXXXXXX,n,Congestion()
exten => _9XXXXXXXXXXX,n,Hangup()
exten=>1001,1,Dial(SIP/1001)
exten=>1001,n,hangup()
exten=>1002,1,Dial(dahdi/3/${EXTEN:3})
exten=>1002,n,hangup()
exten=>1003,1,Dial(dahdi/4/${EXTEN:4})
exten=>1003,n,hangup()
exten=>1004,1,Dial(SIP/1004)
exten=>1004,n,hangup()
exten=>1005,1,Dial(SIP/1005)
exten=>1005,n,hangup()
[forwarding]
exten => ${TLPHONE},1(forward),Dial(${OUTBOUNDTRUNK1}&${OUTBOUNDTRUNK2}/${EXTEN:1})
exten => ${TLPHONE},n,Hangup()
[cause-codes]
exten => i,1,Playback(invalid)
exten => i,n,Hangup()
sip.conf
--------
[general]
nat=no
localnet=192.168.1.0/255.255.255.0
tcpenable=yes
context=default
allowoverlap=yes
bindport=5060
bindaddr=192.168.1.5
srvlookup=yes
disallow=all
canreinvite=no
allowguest=yes
permit=192.168.1.0/24
[1001]; Grandstream GXP1160
type=friend
host=dynamic
username=1001
secret=password
canreinvite=no
context=from-internal
callerid="1001" <1001>
disallow=all
dtmfmode=rfc2833
allow=alaw
allow=ulaw
allow=gsm
[1004]; Grandstream DP715
type=friend
host=dynamic
username=1004
secret=password
canreinvite=no
context=from-internal
callerid="1004" <1004>
disallow=all
dtmfmode=rfc2833
allow=alaw
allow=ulaw
allow=gsm
[1005]; Grandstream DP710
type=friend
host=dynamic
username=1005
secret=password
nat=no
canreinvite=no
context=from-internal
callerid="1005" <1005>
disallow=all
dtmfmode=rfc2833
allow=alaw
allow=ulaw
allow=gsm