0
- 19.08.2014 - 17:29
|
Есть астериска (АТС VX-100E1. В ней установлена плата Zaptel. Физика поднята, светодиод зеленый. Снаружи могут позвонить нам, а когда я звоню наружу - болт. Вот что выводит лог ZX100*CLI> -- Executing [920000@numberplan-custom-1:1] NoOp("SIP/101-b7a43800", "") in new stack -- Executing [920000@numberplan-custom-1:2] Macro("SIP/101-b7a43800", "trunkdial-failover|Zap/g3/20000|") in new stack -- Executing [s@macro-trunkdial-failover:1] Set("SIP/101-b7a43800", "CHAN=101-b7a43800") in new stack -- Executing [s@macro-trunkdial-failover:2] Set("SIP/101-b7a43800", "DYNAMIC_FEATURES=nway-start#one-touch-record") in new stack -- Executing [s@macro-trunkdial-failover:3] Set("SIP/101-b7a43800", "num=1") in new stack -- Executing [s@macro-trunkdial-failover:4] GotoIf("SIP/101-b7a43800", "0?zap") in new stack -- Executing [s@macro-trunkdial-failover:5] Set("SIP/101-b7a43800", "CHAN=101") in new stack -- Executing [s@macro-trunkdial-failover:6] Set("SIP/101-b7a43800", "DOC=101") in new stack -- Executing [s@macro-trunkdial-failover:7] Goto("SIP/101-b7a43800", "check") in new stack -- Goto (macro-trunkdial-failover,s,10) -- Executing [s@macro-trunkdial-failover:10] ExecIf("SIP/101-b7a43800", "1|SET|CALLERID(num)=101") in new stack -- Executing [s@macro-trunkdial-failover:11] GotoIf("SIP/101-b7a43800", "0?record:dial") in new stack -- Goto (macro-trunkdial-failover,s,13) -- Executing [s@macro-trunkdial-failover:13] Dial("SIP/101-b7a43800", "Zap/g3/20000") in new stack [Aug 19 18:17:34] WARNING[11583]: app_dial.c:1183 dial_exec_full: Unable to create channel of type 'Zap' (cause 34 - Circuit/channel congestion) == Everyone is busy/congested at this time (1:0/1/0) -- Executing [s@macro-trunkdial-failover:14] Set("SIP/101-b7a43800", "num=2") in new stack -- Executing [s@macro-trunkdial-failover:15] GotoIf("SIP/101-b7a43800", "0>0?s-CONGESTION|1:s-out|1") in new stack -- Goto (macro-trunkdial-failover,s-out,1) -- Executing [s-out@macro-trunkdial-failover:1] StopMixMonitor("SIP/101-b7a43800", "") in new stack -- Executing [s-out@macro-trunkdial-failover:2] Hangup("SIP/101-b7a43800", "") in new stack == Spawn extension (macro-trunkdial-failover, s-out, 2) exited non-zero on 'SIP/101-b7a43800' in macro 'trunkdial-failover' == Spawn extension (macro-trunkdial-failover, s-out, 2) exited non-zero on 'SIP/101-b7a43800' В данном случае звоню на городской номер 20000 (это Крымский номер), префикс выхода на город 9. Вот листинг 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 Помогите пожалуйста! Не могу разобраться... Уже всю голову сломал себе... Набираю номер, сразу сброс... Могу даже предоставить по тимвьюверу доступ, чтоб глянули... правда - это уже крик души... | |
1
- 19.08.2014 - 17:34
|
pri show span 1 Primary D-channel: 16 Status: Provisioned, Down, Active Switchtype: EuroISDN Type: CPE Overlap Dial: 0 Logical Channel Mapping: 0 Timer and counter settings: N200: 3 N202: 3 K: 7 T200: 1000 T202: 10000 T203: 10000 T303: 4000 T305: 30000 T308: 4000 T309: 6000 T313: 4000 T-HOLD: 4000 T-RETRIEVE: 4000 T-RESPONSE: 4000 | |
2
- 19.08.2014 - 18:06
|
а что тут непонятного: >>-- Executing [s@macro-trunkdial-failover:13] Dial("SIP/101-b7a43800", "Zap/g3/20000") in new stack [Aug 19 18:17:34] WARNING[11583]: app_dial.c:1183 dial_exec_full: Unable to create channel of type 'Zap' (cause 34 - Circuit/channel congestion а группа номер 3 (g3) у тебя описана? | |
3
- 19.08.2014 - 18:07
| [url]http://voip.rus.net/tiki-index.php?page=Asterisk+Zap+channels{/url] | |
4
- 19.08.2014 - 18:54
|
users_trunk.conf [general] host = dynamic disallow = all allow = alaw,ulaw,g729 [trunk_3] callerid = asreceived context = DID_trunk_3 group = 3 hasexten = yes hasiax = no hassip = no host = dynamic trunkname = OUT_E1_1 trunkstyle = pri zapchan = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21 ,22,23,24,25,26,27,28,29,30,31 nat = no overlapdial = no language = en switchtype = euroisdn priindication = outofband | |
5
- 19.08.2014 - 18:56
| все описано. | |
6
- 19.08.2014 - 19:36
|
Группы... переименовал g3 в g1 для порядка Вот лог Звоним на номер 24777 через префикс 9. -- Executing [924777@numberplan-custom-1:1] NoOp("SIP/101-09e2a7f0", "") in new stack -- Executing [924777@numberplan-custom-1:2] Macro("SIP/101-09e2a7f0", "trunkdial-failover|Zap/g1/24777|") in new stack -- Executing [s@macro-trunkdial-failover:1] Set("SIP/101-09e2a7f0", "CHAN=101-09e2a7f0") in new stack -- Executing [s@macro-trunkdial-failover:2] Set("SIP/101-09e2a7f0", "DYNAMIC_FEATURES=nway-start#one-touch-record") in new stack -- Executing [s@macro-trunkdial-failover:3] Set("SIP/101-09e2a7f0", "num=1") in new stack -- Executing [s@macro-trunkdial-failover:4] GotoIf("SIP/101-09e2a7f0", "0?zap") in new stack -- Executing [s@macro-trunkdial-failover:5] Set("SIP/101-09e2a7f0", "CHAN=101") in new stack -- Executing [s@macro-trunkdial-failover:6] Set("SIP/101-09e2a7f0", "DOC=101") in new stack -- Executing [s@macro-trunkdial-failover:7] Goto("SIP/101-09e2a7f0", "check") in new stack -- Goto (macro-trunkdial-failover,s,10) -- Executing [s@macro-trunkdial-failover:10] ExecIf("SIP/101-09e2a7f0", "1|SET|CALLERID(num)=101") in new stack -- Executing [s@macro-trunkdial-failover:11] GotoIf("SIP/101-09e2a7f0", "0?record:dial") in new stack -- Goto (macro-trunkdial-failover,s,13) -- Executing [s@macro-trunkdial-failover:13] Dial("SIP/101-09e2a7f0", "Zap/g1/24777") in new stack -- Requested transfer capability: 0x00 - SPEECH -- Called g1/24777 -- Zap/1-1 is proceeding passing it to SIP/101-09e2a7f0 -- 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-09e2a7f0", "num=2") in new stack -- Executing [s@macro-trunkdial-failover:15] GotoIf("SIP/101-09e2a7f0", "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-09e2a7f0", "") in new stack -- Executing [s-out@macro-trunkdial-failover:2] Hangup("SIP/101-09e2a7f0", "") in new stack == Spawn extension (macro-trunkdial-failover, s-out, 2) exited non-zero on 'SIP/101-09e2a7f0' in macro 'trunkdial-failover' == Spawn extension (macro-trunkdial-failover, s-out, 2) exited non-zero on 'SIP/101-09e2a7f0' Вызывают непонятки из этого лога вот эти строчки -- Requested transfer capability: 0x00 - SPEECH -- Called g1/24777 -- Zap/1-1 is proceeding passing it to SIP/101-09e2a7f0 -- Channel 0/1, span 1 got hangup request, cause 17 -- Zap/1-1 is busy Т.е. он тупо посылает ответ hangup, типа линия занята.... | |
7
- 19.08.2014 - 22:04
| Линия занята | |
8
- 20.08.2014 - 00:02
|
нет таки линия не занята Разобрались Нужно добавить в zaptа.conf добавить строку pridialplan=local Вопрос закрыт | |
Модератор 9
- 20.08.2014 - 00:52
| А где же сэр рокфор? | |
| Интернет-форум Краснодарского края и Краснодара |