по поводу отваливания FXO от астериска, в логе астериска нашел вот:
Код: Выделить всё
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/113-00000013", "1?Set(CALLERID(all)=t236724)") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/113-00000013", "1?Set(CALLERID(all)=113)") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/113-00000013", "0?Set(CALLERID(all)=)") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/113-00000013", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/113-00000013", "0?sub-flp-2,s,1") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-dialout-trunk:13] Set("SIP/113-00000013", "OUTNUM=238175") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/113-00000013", "custom=SIP/236724") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/113-00000013", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-dialout-trunk:16] Macro("SIP/113-00000013", "dialout-trunk-predial-hook,") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/113-00000013", "") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/113-00000013", "0?bypass,1") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/113-00000013", "0?customtrunk") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-dialout-trunk:19] Dial("SIP/113-00000013", "SIP/236724/238175,300,") in new stack
[Jun 10 21:22:50] WARNING[4819] app_dial.c: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
[Jun 10 21:22:50] VERBOSE[4819] app_dial.c: == Everyone is busy/congested at this time (1:0/0/1)
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/113-00000013", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 20") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-dialout-trunk:21] Goto("SIP/113-00000013", "s-CHANUNAVAIL,1") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/113-00000013", "RC=20") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/113-00000013", "20,1") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Goto (macro-dialout-trunk,20,1)
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [20@macro-dialout-trunk:1] Goto("SIP/113-00000013", "continue,1") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Goto (macro-dialout-trunk,continue,1)
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/113-00000013", "1?noreport") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Goto (macro-dialout-trunk,continue,3)
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/113-00000013", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 20 - failing through to other trunks") in
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [continue@macro-dialout-trunk:4] Set("SIP/113-00000013", "CALLERID(number)=113") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [9238175@from-internal:7] Macro("SIP/113-00000013", "dialout-trunk,3,238175,") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-dialout-trunk:1] Set("SIP/113-00000013", "DIAL_TRUNK=3") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/113-00000013", "0?sub-pincheck,s,1") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/113-00000013", "0?disabletrunk,1") in new stack
[Jun 10 21:22:50] VERBOSE[4819] pbx.c: -- Executing [s@macro-dialout-trunk:4] Set("SIP/113-00000013", "DIAL_NUMBER=238175") in new stack