Откуда: Запорожье
Сообщений: 2
|
D-Link7022-Asterisk 1.6
Здравствуйте! Помогите с советом. Установил Asterisk 1.6.2.5, опыта работы с Asterisk нет. Задача: увязать существующий Panasonic KX-TDE 200 с Asterisk через D-Link-7022. Установил Asterisk, прописал D-Link, могу совершать звонки на Asterisk по FXS- без проблем и с Asterisk на FXO с одной проблемой, вначале набор 9 (маршрут на FXO) потом приходиться дожидаться ответа Panasonic, и на клавиатуре добирать номер. Вариант 9XXX не проходит.
extensions.conf
[macro-trunkdial-failover-0.3]
exten = s,1,GotoIf($[${LEN(${FMCIDNUM})} > 6]?1-fmsetcid,1)
exten = s,2,GotoIf($[${LEN(${GLOBAL_OUTBOUNDCIDNAME})} > 1]?1-setgbobname,1)
exten = s,3,Set(CALLERID(num)=${IF($[${LEN(${CID_${CALLERID(num)}})} > 2]?${CID_${CALLERID(num)}}:)})
exten = s,n,GotoIf($[${LEN(${CALLERID(num)})} > 6]?1-dial,1)
exten = s,n,Set(CALLERID(all)=${IF($[${LEN(${CID_${ARG3}})} > 6]?${CID_${ARG3}}:${GLOBAL_OUTBOUNDCID})})
exten = s,n,Goto(1-dial,1)
exten = 1-setgbobname,1,Set(CALLERID(name)=${GLOBAL_OUTBOUNDCIDNAME})
exten = 1-setgbobname,n,Goto(s,3)
exten = 1-fmsetcid,1,Set(CALLERID(num)=${FMCIDNUM})
exten = 1-fmsetcid,n,Set(CALLERID(name)=${FMCIDNAME})
exten = 1-fmsetcid,n,Goto(1-dial,1)
exten = 1-dial,1,Dial(${ARG1})
exten = 1-dial,n,Gotoif(${LEN(${ARG2})} > 0 ?1-${DIALSTATUS},1:1-out,1)
exten = 1-CHANUNAVAIL,1,Dial(${ARG2})
exten = 1-CHANUNAVAIL,n,Hangup()
exten = 1-CONGESTION,1,Dial(${ARG2})
exten = 1-CONGESTION,n,Hangup()
exten = 1-out,1,Hangup()
exten = _9!,1,Macro(trunkdial-failover-0.3,${trunk_1}/${${EXTEN:1})},,trunk_1)
пробовал и так: exten=_9!,1,Dial(SIP/trunk_1/,D(wwww${EXTEN:1}))- результат тот-же
sip.conf
[general]
context = default
recordhistory = yes
port = 5060
bindaddr = 0.0.0.0
srvlookup = yes
dtmfmode = rfc2833
inBandDTMF = yes
tos = lowdelay
videosupport = yes
disallow = all
allow = ulaw
allow = alaw
musicclass = default
language = en
relaxdtmf = yes
useragent = Asterisk PBX
nat = no
rfc2833compensate = yes
SIPDtmfMode = rfc2833
register = 10000:10000:10000@90.0.0.82:5060/10000
register = 10001:10001:10001@90.0.0.82:5060/10001
localnet = 90.0.0.0/255.255.255.0
localnet = 10.1.1.0/255.255.255.0
[6002]
type = friend
username = 6002
secret = 6002
host = dynamic
dtmfmode = rfc2833
defaultip = 90.0.0.82
disallow = all
allow = ulaw
allow = alaw
[6003]
type = friend
username = 6003
secret = 6003
host = dynamic
dtmfmode = rfc2833
defaultip = 90.0.0.82
disallow = all
allow = ulaw
allow = alaw
[10000]
type = friend
username = 10000
secret = 10000
host = dynamic
canreinvite=yes
dtmfmode = rfc2833
defaultip = 90.0.0.82
disallow = all
allow = ulaw
allow = alaw
[10001]
type = friend
username = 10001
secret = 10001
host = dynamic
canreinvite=yes
dtmfmode = rfc2833
defaultip = 90.0.0.82
disallow = all
allow = ulaw
allow = alaw
6002,6003 - FXS 10000,10001 - FXO
|