На счет контекста согласен, исправил. Его поставил тоже в результате эксперементов.
Сейчас немного другая ошибка.
Перевел, говорит типа "заняты все цепи"...
Код: Выделить всё
-- Executing [904542XXXX@from-internal:1] Macro("SIP/101-0000001a", "user-ca llerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/101-0000001a", "TOUCH_MONITO R=1407853672.26") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/101-0000001a", "AMPUSER=101" ) in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/101-0000001a", "0?report" ) in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/101-0000001a", "1?Set(REA LCALLERIDNUM=101)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/101-0000001a", "AMPUSER=101" ) in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/101-0000001a", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/101-0000001a", "AMPUSERCIDNA ME=101") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/101-0000001a", "0?report" ) in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/101-0000001a", "AMPUSERCID=1 01") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/101-0000001a", "__DIAL_OPTI ONS=Ttr") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/101-0000001a", "CALLERID(al l)="101" <101>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/101-0000001a", "0?limit" ) in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("SIP/101-0000001a", "1?Set(GR OUP(concurrency_limit)=101)") in new stack
-- Executing [s@macro-user-callerid:14] GosubIf("SIP/101-0000001a", "7?sub-c css,s,1(from-internal,904542XXXX)") in new stack
-- Executing [s@sub-ccss:1] ExecIf("SIP/101-0000001a", "0?Return()") in new stack
-- Executing [s@sub-ccss:2] Set("SIP/101-0000001a", "CCSS_SETUP=TRUE") in ne w stack
-- Executing [s@sub-ccss:3] GosubIf("SIP/101-0000001a", "0?monitor_config,1( from-internal,904542XXXX):monitor_default,1(from-internal,904542XXXX)") in new s tack
-- Executing [monitor_default@sub-ccss:1] GotoIf("SIP/101-0000001a", "0?is_e xten") in new stack
-- Executing [monitor_default@sub-ccss:2] StackPop("SIP/101-0000001a", "") i n new stack
-- Executing [monitor_default@sub-ccss:3] Return("SIP/101-0000001a", "FALSE" ) in new stack
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/101-0000001a", "1?contin ue") in new stack
-- Goto (macro-user-callerid,s,28)
-- Executing [s@macro-user-callerid:28] Set("SIP/101-0000001a", "CALLERID(nu mber)=101") in new stack
-- Executing [s@macro-user-callerid:29] Set("SIP/101-0000001a", "CALLERID(na me)=101") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/101-0000001a", "CDR(cnum)=1 01") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/101-0000001a", "CDR(cnam)=1 01") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/101-0000001a", "CHANNEL(lan guage)=en") in new stack
-- Executing [904542XXXX@from-internal:2] Set("SIP/101-0000001a", "MOHCLASS= default") in new stack
-- Executing [904542XXXX@from-internal:3] ExecIf("SIP/101-0000001a", "1?Set( TRUNKCIDOVERRIDE=holkin01)") in new stack
-- Executing [9045426488@from-internal:4] Set("SIP/101-0000001a", "_NODEST=" ) in new stack
-- Executing [904542XXXX@from-internal:5] Gosub("SIP/101-0000001a", "sub-rec ord-check,s,1(out,904542XXXX,)") in new stack
-- Executing [s@sub-record-check:1] Set("SIP/101-0000001a", "REC_POLICY_MODE _SAVE=") in new stack
-- Executing [s@sub-record-check:2] GotoIf("SIP/101-0000001a", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [s@sub-record-check:7] Set("SIP/101-0000001a", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/101-0000001a", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/101-0000001a", "0?Return()" ) in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/101-0000001a", "0?Set(__REC _POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/101-0000001a", "0?out,1") i n new stack
-- Executing [s@sub-record-check:14] Set("SIP/101-0000001a", "__REC_STATUS=I NITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/101-0000001a", "NOW=1407853672 ") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/101-0000001a", "__DAY=12") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/101-0000001a", "__MONTH=08") i n new stack
-- Executing [s@sub-record-check:18] Set("SIP/101-0000001a", "__YEAR=2014") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/101-0000001a", "__TIMESTR=2014 0812-102752") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/101-0000001a", "__FROMEXTEN=10 1") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/101-0000001a", "__CALLFILENAME =out-9045426488-101-20140812-102752-1407853672.26") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/101-0000001a", "out,1") in ne w stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] ExecIf("SIP/101-0000001a", "1?Set(__RE C_POLICY_MODE=dontcare)") in new stack
-- Executing [out@sub-record-check:2] GosubIf("SIP/101-0000001a", "0?record, 1(exten,9045426488,101)") in new stack
-- Executing [out@sub-record-check:3] Return("SIP/101-0000001a", "") in new stack
-- Executing [9045426488@from-internal:6] Macro("SIP/101-0000001a", "dialout -trunk,2,9045426488,,off") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/101-0000001a", "DIAL_TRUNK=2 ") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/101-0000001a", "0?sub-pi ncheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/101-0000001a", "0?disable trunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/101-0000001a", "DIAL_NUMBER= 9045426488") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/101-0000001a", "DIAL_TRUNK_O PTIONS=Ttr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/101-0000001a", "OUTBOUND_GRO UP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/101-0000001a", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/101-0000001a", "0?skipout cid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/101-0000001a", "DIAL_TRUNK_ OPTIONS=Tt") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/101-0000001a", "outbound- callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/101-0000001a", "0?Set (CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/101-0000001a", "0?Set (REALCALLERIDNUM=101)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/101-0000001a", "1?nor mcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/101-0000001a", "USEROUTC ID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/101-0000001a", "EMERGENC YCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/101-0000001a", "TRUNKOUT CID=holkin01") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/101-0000001a", "1?tru nkcid") in new stack
-- Goto (macro-outbound-callerid,s,14)
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/101-0000001a", "1?Se t(CALLERID(all)=holkin01)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/101-0000001a", "0?Se t(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/101-0000001a", "1?Se t(CALLERID(all)=holkin01)") in new stack
-- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/101-0000001a", "0?Se t(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:18] Set("SIP/101-0000001a", "CDR(out bound_cnum)=") in new stack
-- Executing [s@macro-outbound-callerid:19] Set("SIP/101-0000001a", "CDR(out bound_cnam)=holkin01") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/101-0000001a", "0?sub-f lp-2,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/101-0000001a", "OUTNUM=9045 426488") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/101-0000001a", "custom=SIP/ holkin01") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/101-0000001a", "0?Set(DI AL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/101-0000001a", "0?Set(DI AL_TRUNK_OPTIONS=TtM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/101-0000001a", "dialout-t runk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/101-00000 01a", "") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/101-0000001a", "0?bypass ,1") in new stack
-- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/101-0000001a", "1?Set(CO NNECTEDLINE(num,i)=9045426488)") in new stack
-- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/101-0000001a", "1?Set(CO NNECTEDLINE(name,i)=CID:)") in new stack
-- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/101-0000001a", "0?custom trunk") in new stack
-- Executing [s@macro-dialout-trunk:22] Dial("SIP/101-0000001a", "SIP/holkin 01/904542XXXX,300,Tt") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/holkin01/9045426488
[2014-08-12 10:27:52] WARNING[1654][C-00000010]: chan_sip.c:23127 handle_respons e_invite: Received response: "Forbidden" from '"holkin01" <sip:Unknown@192.168.0 .110>;tag=as22dd5c5c'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:23] NoOp("SIP/101-0000001a", "Dial faile d for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new st ack
-- Executing [s@macro-dialout-trunk:24] GotoIf("SIP/101-0000001a", "0?contin ue,1:s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/101-0000001a", " RC=21") in new stack
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/101-0000001a", "21,1") in new stack
-- Goto (macro-dialout-trunk,21,1)
-- Executing [21@macro-dialout-trunk:1] Goto("SIP/101-0000001a", "continue,1 ") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] NoOp("SIP/101-0000001a", "TRUN K Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trun ks") in new stack
-- Executing [continue@macro-dialout-trunk:2] Set("SIP/101-0000001a", "CALLE RID(number)=101") in new stack
-- Executing [9045426488@from-internal:7] Macro("SIP/101-0000001a", "outisbu sy,") in new stack
-- Executing [s@macro-outisbusy:1] Progress("SIP/101-0000001a", "") in new s tack
-- Executing [s@macro-outisbusy:2] GotoIf("SIP/101-0000001a", "0?emergency,1 ") in new stack
-- Executing [s@macro-outisbusy:3] GotoIf("SIP/101-0000001a", "0?intracompan y,1") in new stack
-- Executing [s@macro-outisbusy:4] Playback("SIP/101-0000001a", "all-circuit s-busy-now&pls-try-call-later, noanswer") in new stack
-- <SIP/101-0000001a> Playing 'all-circuits-busy-now.gsm' (language 'en')
== Spawn extension (macro-outisbusy, s, 4) exited non-zero on 'SIP/101-0000001 a' in macro 'outisbusy'
== Spawn extension (from-internal, 904542XXXX, 7) exited non-zero on 'SIP/101- 0000001a'
-- Executing [h@from-internal:1] Hangup("SIP/101-0000001a", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/101-0000001a'
localhost*CLI>