Возникла такая проблема: у меня два астерикса: Asterisk 1.6.2.19 (программный) и аппаратная IP PBX-A4 (System Version: v1.1).
Связь между ними была настроена через IAX и все замечательно работало (около 3-4 месяцев).
На данный момент я не могу позвонить по внутреннем номерам с программной АТС на аппаратную: в панели FOP показывает что звонок идет, а в трубке тишина, после чего идет сброс вызова.
В логах программной АТС пишет:
== Manager 'admin' logged on from 127.0.0.1
== Manager 'admin' logged off from 127.0.0.1
== Manager 'admin' logged on from 127.0.0.1
== Manager 'admin' logged off from 127.0.0.1
== Manager 'admin' logged on from 127.0.0.1
== Manager 'admin' logged off from 127.0.0.1 и так до бесконечности.
Проблем с соединением транков, по-моему мнению, не может быть так как и в той и другой АТС пишет что транки подключены.
Несколько слоёв по которым исследовать:
1) Прямой.
tcpdump host _ip_addr_IP PBX-A4_ на Asterisk 1.6.2.19
и одновременно
tcpdump host _ip_addr_ Asterisk 1.6.2.19 на IP PBX-A4
2) iax2 set debug on на IP PBX-A4 и на Asterisk 1.6.2.19
Может логи помогут:
== Parsing '/etc/asterisk/asterisk.conf': == Found
Connected to Asterisk 1.6.2.19 currently running on voip (pid = 10878)
Verbosity was 3 and is now 9
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [131@from-internal:1] Macro("SIP/1011-00000000", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/1011-00000000", "AMPUSER=1011") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/1011-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/1011-00000000", "1?Set(REALCALLERIDNUM=1011)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/1011-00000000", "AMPUSER=1011") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/1011-00000000", "AMPUSERCIDNAME=Silagdze Yuriy") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/1011-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/1011-00000000", "AMPUSERCID=1011") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/1011-00000000", "CALLERID(all)="Silagdze Yuriy" <1011>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/1011-00000000", "1?Set(CHANNEL(language)=ru)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/1011-00000000", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("SIP/1011-00000000", "CALLERID(number)=1011") in new stack
-- Executing [s@macro-user-callerid:20] Set("SIP/1011-00000000", "CALLERID(name)=Silagdze Yuriy") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("SIP/1011-00000000", "Using CallerID "Silagdze Yuriy" <1011>") in new stack
-- Executing [131@from-internal:2] NoOp("SIP/1011-00000000", "Calling Out Route: 1_PES_outside") in new stack
-- Executing [131@from-internal:3] Set("SIP/1011-00000000", "MOHCLASS=default") in new stack
-- Executing [131@from-internal:4] Set("SIP/1011-00000000", "_NODEST=") in new stack
-- Executing [131@from-internal:5] Macro("SIP/1011-00000000", "record-enable,1011,OUT,") in new stack
-- Executing [s@macro-record-enable:1] MacroExit("SIP/1011-00000000", "") in new stack
-- Executing [131@from-internal:6] Macro("SIP/1011-00000000", "dialout-trunk,9,131,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/1011-00000000", "DIAL_TRUNK=9") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/1011-00000000", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1011-00000000", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/1011-00000000", "DIAL_NUMBER=131") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/1011-00000000", "DIAL_TRUNK_OPTIONS=trw") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/1011-00000000", "OUTBOUND_GROUP=OUT_9") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/1011-00000000", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/1011-00000000", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/1011-00000000", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/1011-00000000", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/1011-00000000", "outbound-callerid,9") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/1011-00000000", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/1011-00000000", "0?Set(REALCALLERIDNUM=1011)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/1011-00000000", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/1011-00000000", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/1011-00000000", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/1011-00000000", "TRUNKOUTCID=PIONEROV8") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/1011-00000000", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/1011-00000000", "1?Set(CALLERID(all)=PIONEROV8)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/1011-00000000", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/1011-00000000", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/1011-00000000", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/1011-00000000", "1?sub-flp-9,s,1") in new stack
-- Executing [s@sub-flp-9:1] ExecIf("SIP/1011-00000000", "1?Return()") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/1011-00000000", "OUTNUM=131") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/1011-00000000", "custom=IAX2/PES_OUT") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/1011-00000000", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/1011-00000000", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/1011-00000000", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/1011-00000000", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1011-00000000", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/1011-00000000", "IAX2/PES_OUT/131,300,") in new stack
-- Called PES_OUT/131
> doing dnsmgr_lookup for 'sipnet.ru'
-- Hungup 'IAX2/PES_OUT-1186'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/1011-00000000' in macro 'dialout-trunk'
== Spawn extension (from-internal, 131, 6) exited non-zero on 'SIP/1011-00000000'
-- Executing [h@from-internal:1] Macro("SIP/1011-00000000", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/1011-00000000", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/1011-00000000", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/1011-00000000", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/1011-00000000", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/1011-00000000' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1011-00000000'
> Saved useragent "IpPhone" for peer 1001
> Saved useragent "IpPhone" for peer 1032
ded писал(а):Несколько слоёв по которым исследовать:
1) Прямой.
tcpdump host _ip_addr_IP PBX-A4_ на Asterisk 1.6.2.19
и одновременно
tcpdump host _ip_addr_ Asterisk 1.6.2.19 на IP PBX-A4
2) iax2 set debug on на IP PBX-A4 и на Asterisk 1.6.2.19