Код: Выделить всё
-- Executing [9999999999@from-internal:2] Gosub("SIP/100-000000f7", "sub-record-check,s,1(out,9999999999,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("SIP/100-000000f7", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("SIP/100-000000f7", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("SIP/100-000000f7", "NOW=1510127601") in new stack
-- Executing [s@sub-record-check:4] Set("SIP/100-000000f7", "__DAY=08") in new stack
-- Executing [s@sub-record-check:5] Set("SIP/100-000000f7", "__MONTH=11") in new stack
-- Executing [s@sub-record-check:6] Set("SIP/100-000000f7", "__YEAR=2017") in new stack
-- Executing [s@sub-record-check:7] Set("SIP/100-000000f7", "__TIMESTR=20171108-085321") in new stack
-- Executing [s@sub-record-check:8] Set("SIP/100-000000f7", "__FROMEXTEN=unknown") in new stack
-- Executing [s@sub-record-check:9] Set("SIP/100-000000f7", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("SIP/100-000000f7", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("SIP/100-000000f7", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("SIP/100-000000f7", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("SIP/100-000000f7", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("SIP/100-000000f7", "3?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("SIP/100-000000f7", "1?sub-record-check,out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] NoOp("SIP/100-000000f7", "Outbound Recording Check from unknown to 9999999999") in new stack
-- Executing [out@sub-record-check:2] Set("SIP/100-000000f7", "RECMODE=") in new stack
-- Executing [out@sub-record-check:3] ExecIf("SIP/100-000000f7", "1?Goto(routewins)") in new stack
-- Goto (sub-record-check,out,7)
-- Executing [out@sub-record-check:7] Gosub("SIP/100-000000f7", "recordcheck,1(dontcare,out,9999999999)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("SIP/100-000000f7", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("SIP/100-000000f7", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("SIP/100-000000f7", "") in new stack
-- Executing [out@sub-record-check:8] Return("SIP/100-000000f7", "") in new stack
-- Executing [9999999999@from-internal:3] ExecIf("SIP/100-000000f7", "0 ?Set(CDR(accountcode)=)") in new stack
-- Executing [9999999999@from-internal:4] Set("SIP/100-000000f7", "MOHCLASS=default") in new stack
-- Executing [9999999999@from-internal:5] ExecIf("SIP/100-000000f7", "1?Set(TRUNKCIDOVERRIDE=12355555)") in new stack
-- Executing [9999999999@from-internal:6] Set("SIP/100-000000f7", "_NODEST=") in new stack
-- Executing [9999999999@from-internal:7] Macro("SIP/100-000000f7", "dialout-trunk,1,9999999999,,off") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/100-000000f7", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/100-000000f7", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:3] ExecIf("SIP/100-000000f7", "0?Set(CALLERID(num)=)") in new stack
-- Executing [s@macro-dialout-trunk:4] GotoIf("SIP/100-000000f7", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/100-000000f7", "DIAL_NUMBER=9999999999") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/100-000000f7", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
-- Executing [s@macro-dialout-trunk:7] Set("SIP/100-000000f7", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:8] Set("SIP/100-000000f7", "DIAL_TRUNK_OPTIONS=T") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/100-000000f7", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:10] GotoIf("SIP/100-000000f7", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:11] GotoIf("SIP/100-000000f7", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:12] Macro("SIP/100-000000f7", "outbound-callerid,1") in new stack
-- Executing [s@macro-outbound-callerid:1] NoOp("SIP/100-000000f7", "") in new stack
-- Executing [s@macro-outbound-callerid:2] NoOp("SIP/100-000000f7", "") in new stack
-- Executing [s@macro-outbound-callerid:3] NoOp("SIP/100-000000f7", "off") in new stack
-- Executing [s@macro-outbound-callerid:4] ExecIf("SIP/100-000000f7", "0?Set(CALLERPRES(name-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:5] ExecIf("SIP/100-000000f7", "0?Set(CALLERPRES(num-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:6] ExecIf("SIP/100-000000f7", "1?Set(REALCALLERIDNUM=100)") in new stack
-- Executing [s@macro-outbound-callerid:7] GotoIf("SIP/100-000000f7", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,11)
-- Executing [s@macro-outbound-callerid:11] Set("SIP/100-000000f7", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:12] Set("SIP/100-000000f7", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:13] Set("SIP/100-000000f7", "TRUNKOUTCID=12344444, 12355555, 12366666") in new stack
-- Executing [s@macro-outbound-callerid:14] GotoIf("SIP/100-000000f7", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,19)
-- Executing [s@macro-outbound-callerid:19] ExecIf("SIP/100-000000f7", "1?Set(CALLERID(all)=12344444, 12355555, 12366666)") in new stack
-- Executing [s@macro-outbound-callerid:20] ExecIf("SIP/100-000000f7", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:21] ExecIf("SIP/100-000000f7", "1?Set(CALLERID(all)=12355555)") in new stack
-- Executing [s@macro-outbound-callerid:22] ExecIf("SIP/100-000000f7", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:23] ExecIf("SIP/100-000000f7", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:24] Set("SIP/100-000000f7", "CDR(outbound_cnum)=12355555") in new stack
-- Executing [s@macro-outbound-callerid:25] Set("SIP/100-000000f7", "CDR(outbound_cnam)=") in new stack
-- Executing [s@macro-dialout-trunk:13] GosubIf("SIP/100-000000f7", "0?sub-flp-1,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/100-000000f7", "OUTNUM=9999999999") in new stack
-- Executing [s@macro-dialout-trunk:15] Set("SIP/100-000000f7", "custom=SIP/voicedata") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/100-000000f7", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
-- Executing [s@macro-dialout-trunk:17] ExecIf("SIP/100-000000f7", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:18] Macro("SIP/100-000000f7", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/100-000000f7", "") in new stack
-- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/100-000000f7", "0?skipcrm") in new stack
-- Executing [s@macro-dialout-trunk:20] Set("SIP/100-000000f7", "__CRM_DIRECTION=OUTBOUND") in new stack
-- Executing [s@macro-dialout-trunk:21] Set("SIP/100-000000f7", "__CRM_DESTINATION=9999999999") in new stack
-- Executing [s@macro-dialout-trunk:22] Set("SIP/100-000000f7", "__CRM_SOURCE=") in new stack
-- Executing [s@macro-dialout-trunk:23] AGI("SIP/100-000000f7", "sangomacrm.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
-- <SIP/100-000000f7>AGI Script sangomacrm.agi completed, returning 0
-- Executing [s@macro-dialout-trunk:24] Set("SIP/100-000000f7", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack
-- Executing [s@macro-dialout-trunk:25] NoOp("SIP/100-000000f7", "CRM Finished") in new stack
-- Executing [s@macro-dialout-trunk:26] GotoIf("SIP/100-000000f7", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:27] ExecIf("SIP/100-000000f7", "0?Set(CONNECTEDLINE(num,i)=9999999999)") in new stack
-- Executing [s@macro-dialout-trunk:28] ExecIf("SIP/100-000000f7", "0?Set(CONNECTEDLINE(name,i)=CID:12355555)") in new stack
-- Executing [s@macro-dialout-trunk:29] ExecIf("SIP/100-000000f7", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)12355555)") in new stack
-- Executing [s@macro-dialout-trunk:30] GotoIf("SIP/100-000000f7", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:31] Dial("SIP/100-000000f7", "SIP/voicedata/9999999999,300,T") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/voicedata/9999999999
> 0x7f8afc0193e0 -- Strict RTP learning after remote address set to: 84.84.2.2:18686
-- SIP/voicedata-000000f8 is making progress passing it to SIP/100-000000f7
> 0x7f8ad404bb10 -- Strict RTP switching to RTP target address 192.168.0.111:56378 as source
> 0x7f8afc0193e0 -- Strict RTP switching to RTP target address 84.84.2.2:18686 as source
> 0x7f8ad404bb10 -- Strict RTP learning complete - Locking on source address 192.168.0.111:56378
> 0x7f8afc0193e0 -- Strict RTP learning complete - Locking on source address 84.84.2.2:18686
== Spawn extension (macro-dialout-trunk, s, 31) exited non-zero on 'SIP/100-000000f7' in macro 'dialout-trunk'
== Spawn extension (from-internal, 9999999999, 7) exited non-zero on 'SIP/100-000000f7'
-- Executing [h@from-internal:1] Macro("SIP/100-000000f7", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/100-000000f7", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("SIP/100-000000f7", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] NoOp("SIP/100-000000f7", "SIP/voicedata-000000f8 monior file= ") in new stack
-- Executing [s@macro-hangupcall:5] AGI("SIP/100-000000f7", "attendedtransfer-rec-restart.php,SIP/voicedata-000000f8,") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php
-- <SIP/100-000000f7>AGI Script attendedtransfer-rec-restart.php completed, returning 0
-- Executing [s@macro-hangupcall:6] Hangup("SIP/100-000000f7", "") in new stack
== Spawn extension (macro-hangupcall, s, 6) exited non-zero on 'SIP/100-000000f7' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/100-000000f7'
-- SIP/100-000000f7 Internal Gosub(crm-hangup,s,1) start
-- Executing [s@crm-hangup:1] NoOp("SIP/100-000000f7", "Sending Hangup to CRM") in new stack
-- Executing [s@crm-hangup:2] NoOp("SIP/100-000000f7", "HANGUP CAUSE: 16") in new stack
-- Executing [s@crm-hangup:3] ExecIf("SIP/100-000000f7", "0?Set(__CRM_VOICEMAIL=)") in new stack
-- Executing [s@crm-hangup:4] NoOp("SIP/100-000000f7", "MASTER CHANNEL: 1510127601.260 = 1510127601.260") in new stack
-- Executing [s@crm-hangup:5] GotoIf("SIP/100-000000f7", "0?return") in new stack
-- Executing [s@crm-hangup:6] Set("SIP/100-000000f7", "__CRM_HANGUP=1") in new stack
-- Executing [s@crm-hangup:7] AGI("SIP/100-000000f7", "sangomacrm.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
-- <SIP/100-000000f7>AGI Script sangomacrm.agi completed, returning 0
-- Executing [s@crm-hangup:8] Return("SIP/100-000000f7", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/100-000000f7'
-- SIP/100-000000f7 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=