1 | изначальная версия редактировать | |
Здравствуйте господа опытные. Есть проблема которую мне не удается решить. Есть атска SNR VX-100E1, на астериске, у нее есть интерфейс E1 , физика поднята (светодиод зеленый), подключен 1 номер. Из вне мне могут позвонить, а я наружу не могу. Сразу сбрасывает. Звоню на номер 20000 через префикс 9.
Вот что выводит лог
-- Executing [920000@numberplan-custom-1:1] NoOp("SIP/101-09e7dcd8", "") in new stack
-- Executing [920000@numberplan-custom-1:2] Macro("SIP/101-09e7dcd8", "trunkdial-failover|Zap/g1/20000|") in new stack
-- Executing [s@macro-trunkdial-failover:1] Set("SIP/101-09e7dcd8", "CHAN=101-09e7dcd8") in new stack
-- Executing [s@macro-trunkdial-failover:2] Set("SIP/101-09e7dcd8", "DYNAMIC_FEATURES=nway-start#one-touch-record") in new stack
-- Executing [s@macro-trunkdial-failover:3] Set("SIP/101-09e7dcd8", "num=1") in new stack
-- Executing [s@macro-trunkdial-failover:4] GotoIf("SIP/101-09e7dcd8", "0?zap") in new stack
-- Executing [s@macro-trunkdial-failover:5] Set("SIP/101-09e7dcd8", "CHAN=101") in new stack
-- Executing [s@macro-trunkdial-failover:6] Set("SIP/101-09e7dcd8", "DOC=101") in new stack
-- Executing [s@macro-trunkdial-failover:7] Goto("SIP/101-09e7dcd8", "check") in new stack
-- Goto (macro-trunkdial-failover,s,10)
-- Executing [s@macro-trunkdial-failover:10] ExecIf("SIP/101-09e7dcd8", "1|SET|CALLERID(num)=101") in new stack
-- Executing [s@macro-trunkdial-failover:11] GotoIf("SIP/101-09e7dcd8", "0?record:dial") in new stack
-- Goto (macro-trunkdial-failover,s,13)
-- Executing [s@macro-trunkdial-failover:13] Dial("SIP/101-09e7dcd8", "Zap/g1/20000") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g1/20000
== Primary D-Channel on span 1 up
-- Zap/1-1 is proceeding passing it to SIP/101-09e7dcd8
-- Channel 0/1, span 1 got hangup request, cause 17
-- Zap/1-1 is busy
-- Hungup 'Zap/1-1'
== Everyone is busy/congested at this time (1:1/0/0)
-- Executing [s@macro-trunkdial-failover:14] Set("SIP/101-09e7dcd8", "num=2") in new stack
-- Executing [s@macro-trunkdial-failover:15] GotoIf("SIP/101-09e7dcd8", "0>0?s-BUSY|1:s-out|1") in new stack
-- Goto (macro-trunkdial-failover,s-out,1)
-- Executing [s-out@macro-trunkdial-failover:1] StopMixMonitor("SIP/101-09e7dcd8", "") in new stack
-- Executing [s-out@macro-trunkdial-failover:2] Hangup("SIP/101-09e7dcd8", "") in new stack
== Spawn extension (macro-trunkdial-failover, s-out, 2) exited non-zero on 'SIP/101-09e7dcd8' in macro 'trunkdial-failover'
== Spawn extension (macro-trunkdial-failover, s-out, 2) exited non-zero on 'SIP/101-09e7dcd8'
users_trunk.conf
[general]
host = dynamic
disallow = all
allow = alaw,ulaw,g729
[trunk_1]
callerid = asreceived
context = DID_trunk_1
group = 1
hasexten = yes
hasiax = no
hassip = no
host = dynamic
trunkname = E1
trunkstyle = pri
zapchan = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
nat = no
extensions.conf (касаемо того, что отрабатывается в логе)
[macro-trunkdial-failover]
exten => s,1,SET(CHAN=${CUT(CHANNEL,/,2)})
exten => s,n,Set(DYNAMIC_FEATURES=nway-start#one-touch-record)
exten => s,n,Set(num=1)
exten => s,n,GotoIf($[${CUT(CHANNEL,/,1)} = Zap]?zap)
exten => s,n,SET(CHAN=${CUT(CHAN,-,1)})
exten => s,n,SET(DOC=${CHAN})
exten => s,n,Goto(check)
exten => s,n(zap),SET(CHAN=Analog_${CUT(CHAN,-,1)})
exten => s,n,SET(DOC=${CALLERID(num)})
exten => s,n(check),execIf($[${LEN(${DB(OCID/${DOC})})} > 0],SET,CALLERID(num)=${DB(OCID/${DOC})})
exten => s,n,GotoIf($[${LEN(${RECORDOUT_${CHAN}})} > 0]?record:dial)
exten => s,n(record),Macro(stdexten-record,${CUT(ARG1,/,3)},${DOC},${CALLERID(num)},${RECORDOUT_${CHAN}})
exten => s,n(dial),Dial(${ARG${num}})
exten => s,n,Set(num=$[${num}+1])
exten => s,n,GotoIf(${LEN(${ARG${num}})}>0?s-${DIALSTATUS},1:s-out,1)
exten => s-CHANUNAVAIL,1,Goto(s,dial)
exten => s-CONGESTION,1,Goto(s,dial)
exten => s-out,1,StopMixMonitor
exten => s-out,n,Hangup()
[numberplan-custom-1]
plancomment = OffceOutAll
include = default
exten = _9.,1,NoOp()
exten = _9.,2,Macro(trunkdial-failover,${trunk_3}${EXTEN:1},)
comment = _9.,2,Call_PSTN,custom
Люди добрые помогите пожалуйста! Ибо боюсь что завтра меня смешают с Г. Уже много чего перепробовал и много чего почитал, не получается решить. Или направьте в нужную сторону или помогите через тимвьювер за денежку. Если готовы помочь удаленно оставьте контакт аськи я постучусь...
2 | No.2 Revision редактировать |
Здравствуйте господа опытные. Есть проблема которую мне не удается решить. Есть атска SNR VX-100E1, на астериске, у нее есть интерфейс E1 , физика поднята (светодиод зеленый), подключен 1 номер. Из вне мне могут позвонить, а я наружу не могу. Сразу сбрасывает. Звоню на номер 20000 через префикс 9.
Вот что выводит лог
-- Executing [920000@numberplan-custom-1:1] NoOp("SIP/101-09e7dcd8", "") in new stack
-- Executing [920000@numberplan-custom-1:2] Macro("SIP/101-09e7dcd8", "trunkdial-failover|Zap/g1/20000|") in new stack
-- Executing [s@macro-trunkdial-failover:1] Set("SIP/101-09e7dcd8", "CHAN=101-09e7dcd8") in new stack
-- Executing [s@macro-trunkdial-failover:2] Set("SIP/101-09e7dcd8", "DYNAMIC_FEATURES=nway-start#one-touch-record") in new stack
-- Executing [s@macro-trunkdial-failover:3] Set("SIP/101-09e7dcd8", "num=1") in new stack
-- Executing [s@macro-trunkdial-failover:4] GotoIf("SIP/101-09e7dcd8", "0?zap") in new stack
-- Executing [s@macro-trunkdial-failover:5] Set("SIP/101-09e7dcd8", "CHAN=101") in new stack
-- Executing [s@macro-trunkdial-failover:6] Set("SIP/101-09e7dcd8", "DOC=101") in new stack
-- Executing [s@macro-trunkdial-failover:7] Goto("SIP/101-09e7dcd8", "check") in new stack
-- Goto (macro-trunkdial-failover,s,10)
-- Executing [s@macro-trunkdial-failover:10] ExecIf("SIP/101-09e7dcd8", "1|SET|CALLERID(num)=101") in new stack
-- Executing [s@macro-trunkdial-failover:11] GotoIf("SIP/101-09e7dcd8", "0?record:dial") in new stack
-- Goto (macro-trunkdial-failover,s,13)
-- Executing [s@macro-trunkdial-failover:13] Dial("SIP/101-09e7dcd8", "Zap/g1/20000") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g1/20000
== Primary D-Channel on span 1 up
-- Zap/1-1 is proceeding passing it to SIP/101-09e7dcd8
-- Channel 0/1, span 1 got hangup request, cause 17
-- Zap/1-1 is busy
-- Hungup 'Zap/1-1'
== Everyone is busy/congested at this time (1:1/0/0)
-- Executing [s@macro-trunkdial-failover:14] Set("SIP/101-09e7dcd8", "num=2") in new stack
-- Executing [s@macro-trunkdial-failover:15] GotoIf("SIP/101-09e7dcd8", "0>0?s-BUSY|1:s-out|1") in new stack
-- Goto (macro-trunkdial-failover,s-out,1)
-- Executing [s-out@macro-trunkdial-failover:1] StopMixMonitor("SIP/101-09e7dcd8", "") in new stack
-- Executing [s-out@macro-trunkdial-failover:2] Hangup("SIP/101-09e7dcd8", "") in new stack
== Spawn extension (macro-trunkdial-failover, s-out, 2) exited non-zero on 'SIP/101-09e7dcd8' in macro 'trunkdial-failover'
== Spawn extension (macro-trunkdial-failover, s-out, 2) exited non-zero on 'SIP/101-09e7dcd8'
users_trunk.conf
[general]
host = dynamic
disallow = all
allow = alaw,ulaw,g729
[trunk_1]
callerid = asreceived
context = DID_trunk_1
group = 1
hasexten = yes
hasiax = no
hassip = no
host = dynamic
trunkname = E1
trunkstyle = pri
zapchan = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
nat = no
extensions.conf (касаемо того, что отрабатывается в логе)
[macro-trunkdial-failover]
exten => s,1,SET(CHAN=${CUT(CHANNEL,/,2)})
exten => s,n,Set(DYNAMIC_FEATURES=nway-start#one-touch-record)
exten => s,n,Set(num=1)
exten => s,n,GotoIf($[${CUT(CHANNEL,/,1)} = Zap]?zap)
exten => s,n,SET(CHAN=${CUT(CHAN,-,1)})
exten => s,n,SET(DOC=${CHAN})
exten => s,n,Goto(check)
exten => s,n(zap),SET(CHAN=Analog_${CUT(CHAN,-,1)})
exten => s,n,SET(DOC=${CALLERID(num)})
exten => s,n(check),execIf($[${LEN(${DB(OCID/${DOC})})} > 0],SET,CALLERID(num)=${DB(OCID/${DOC})})
exten => s,n,GotoIf($[${LEN(${RECORDOUT_${CHAN}})} > 0]?record:dial)
exten => s,n(record),Macro(stdexten-record,${CUT(ARG1,/,3)},${DOC},${CALLERID(num)},${RECORDOUT_${CHAN}})
exten => s,n(dial),Dial(${ARG${num}})
exten => s,n,Set(num=$[${num}+1])
exten => s,n,GotoIf(${LEN(${ARG${num}})}>0?s-${DIALSTATUS},1:s-out,1)
exten => s-CHANUNAVAIL,1,Goto(s,dial)
exten => s-CONGESTION,1,Goto(s,dial)
exten => s-out,1,StopMixMonitor
exten => s-out,n,Hangup()
[numberplan-custom-1]
plancomment = OffceOutAll
include = default
exten = _9.,1,NoOp()
exten = _9.,2,Macro(trunkdial-failover,${trunk_3}${EXTEN:1},)
_9.,2,Macro(trunkdial-failover,${trunk_1}${EXTEN:1},)
comment = _9.,2,Call_PSTN,custom
Люди добрые помогите пожалуйста! Ибо боюсь что завтра меня смешают с Г. Уже много чего перепробовал и много чего почитал, не получается решить. Или направьте в нужную сторону или помогите через тимвьювер за денежку. Если готовы помочь удаленно оставьте контакт аськи я постучусь...
3 | теги изменены редактировать |
Здравствуйте господа опытные. Есть проблема которую мне не удается решить. Есть атска SNR VX-100E1, на астериске, у нее есть интерфейс E1 , физика поднята (светодиод зеленый), подключен 1 номер. Из вне мне могут позвонить, а я наружу не могу. Сразу сбрасывает. Звоню на номер 20000 через префикс 9.
Вот что выводит лог
-- Executing [920000@numberplan-custom-1:1] NoOp("SIP/101-09e7dcd8", "") in new stack
-- Executing [920000@numberplan-custom-1:2] Macro("SIP/101-09e7dcd8", "trunkdial-failover|Zap/g1/20000|") in new stack
-- Executing [s@macro-trunkdial-failover:1] Set("SIP/101-09e7dcd8", "CHAN=101-09e7dcd8") in new stack
-- Executing [s@macro-trunkdial-failover:2] Set("SIP/101-09e7dcd8", "DYNAMIC_FEATURES=nway-start#one-touch-record") in new stack
-- Executing [s@macro-trunkdial-failover:3] Set("SIP/101-09e7dcd8", "num=1") in new stack
-- Executing [s@macro-trunkdial-failover:4] GotoIf("SIP/101-09e7dcd8", "0?zap") in new stack
-- Executing [s@macro-trunkdial-failover:5] Set("SIP/101-09e7dcd8", "CHAN=101") in new stack
-- Executing [s@macro-trunkdial-failover:6] Set("SIP/101-09e7dcd8", "DOC=101") in new stack
-- Executing [s@macro-trunkdial-failover:7] Goto("SIP/101-09e7dcd8", "check") in new stack
-- Goto (macro-trunkdial-failover,s,10)
-- Executing [s@macro-trunkdial-failover:10] ExecIf("SIP/101-09e7dcd8", "1|SET|CALLERID(num)=101") in new stack
-- Executing [s@macro-trunkdial-failover:11] GotoIf("SIP/101-09e7dcd8", "0?record:dial") in new stack
-- Goto (macro-trunkdial-failover,s,13)
-- Executing [s@macro-trunkdial-failover:13] Dial("SIP/101-09e7dcd8", "Zap/g1/20000") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g1/20000
== Primary D-Channel on span 1 up
-- Zap/1-1 is proceeding passing it to SIP/101-09e7dcd8
-- Channel 0/1, span 1 got hangup request, cause 17
-- Zap/1-1 is busy
-- Hungup 'Zap/1-1'
== Everyone is busy/congested at this time (1:1/0/0)
-- Executing [s@macro-trunkdial-failover:14] Set("SIP/101-09e7dcd8", "num=2") in new stack
-- Executing [s@macro-trunkdial-failover:15] GotoIf("SIP/101-09e7dcd8", "0>0?s-BUSY|1:s-out|1") in new stack
-- Goto (macro-trunkdial-failover,s-out,1)
-- Executing [s-out@macro-trunkdial-failover:1] StopMixMonitor("SIP/101-09e7dcd8", "") in new stack
-- Executing [s-out@macro-trunkdial-failover:2] Hangup("SIP/101-09e7dcd8", "") in new stack
== Spawn extension (macro-trunkdial-failover, s-out, 2) exited non-zero on 'SIP/101-09e7dcd8' in macro 'trunkdial-failover'
== Spawn extension (macro-trunkdial-failover, s-out, 2) exited non-zero on 'SIP/101-09e7dcd8'
users_trunk.conf
[general]
host = dynamic
disallow = all
allow = alaw,ulaw,g729
[trunk_1]
callerid = asreceived
context = DID_trunk_1
group = 1
hasexten = yes
hasiax = no
hassip = no
host = dynamic
trunkname = E1
trunkstyle = pri
zapchan = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
nat = no
extensions.conf (касаемо того, что отрабатывается в логе)
[macro-trunkdial-failover]
exten => s,1,SET(CHAN=${CUT(CHANNEL,/,2)})
exten => s,n,Set(DYNAMIC_FEATURES=nway-start#one-touch-record)
exten => s,n,Set(num=1)
exten => s,n,GotoIf($[${CUT(CHANNEL,/,1)} = Zap]?zap)
exten => s,n,SET(CHAN=${CUT(CHAN,-,1)})
exten => s,n,SET(DOC=${CHAN})
exten => s,n,Goto(check)
exten => s,n(zap),SET(CHAN=Analog_${CUT(CHAN,-,1)})
exten => s,n,SET(DOC=${CALLERID(num)})
exten => s,n(check),execIf($[${LEN(${DB(OCID/${DOC})})} > 0],SET,CALLERID(num)=${DB(OCID/${DOC})})
exten => s,n,GotoIf($[${LEN(${RECORDOUT_${CHAN}})} > 0]?record:dial)
exten => s,n(record),Macro(stdexten-record,${CUT(ARG1,/,3)},${DOC},${CALLERID(num)},${RECORDOUT_${CHAN}})
exten => s,n(dial),Dial(${ARG${num}})
exten => s,n,Set(num=$[${num}+1])
exten => s,n,GotoIf(${LEN(${ARG${num}})}>0?s-${DIALSTATUS},1:s-out,1)
exten => s-CHANUNAVAIL,1,Goto(s,dial)
exten => s-CONGESTION,1,Goto(s,dial)
exten => s-out,1,StopMixMonitor
exten => s-out,n,Hangup()
[numberplan-custom-1]
plancomment = OffceOutAll
include = default
exten = _9.,1,NoOp()
exten = _9.,2,Macro(trunkdial-failover,${trunk_1}${EXTEN:1},)
comment = _9.,2,Call_PSTN,custom
Люди добрые помогите пожалуйста! Ибо боюсь что завтра меня смешают с Г. Уже много чего перепробовал и много чего почитал, не получается решить. Или направьте в нужную сторону или помогите через тимвьювер за денежку. Если готовы помочь удаленно оставьте контакт аськи я постучусь...
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.