Re: Настройка голосового предупреждения о записи разговора
Добавлено: 28 ноя 2018, 11:10
Код: Выделить всё
exten => _8xx.,1,Dial(SIP/${EXTEN}@505),60,A(/var/spool/asterisk/monitor/321)
Русский форум Asterisk сообщества
https://forum.asterisk.ru/
Код: Выделить всё
exten => _8xx.,1,Dial(SIP/${EXTEN}@505),60,A(/var/spool/asterisk/monitor/321)
Код: Выделить всё
ipats*CLI> core set verbose 10
Set remote console verbosity to 10
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [589278885759@from-internal:1] Macro("SIP/134-000106b2", "user- callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/134-000106b2", "TOUCH_MONITO R=1543422669.102297") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/134-000106b2", "AMPUSER=134" ) in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/134-000106b2", "0?report" ) in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/134-000106b2", "1?Set(REA LCALLERIDNUM=134)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/134-000106b2", "AMPUSER=134" ) in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/134-000106b2", "AMPUSERCIDNA ME=134 ITadmin") in new stack
-- Executing [s@macro-user-callerid:7] GotoIf("SIP/134-000106b2", "0?report" ) in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/134-000106b2", "AMPUSERCID=1 34") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/134-000106b2", "__DIAL_OPTIO NS=Ttr") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/134-000106b2", "CALLERID(al l)="134 ITadmin" <134>") in new stack
-- Executing [s@macro-user-callerid:11] GotoIf("SIP/134-000106b2", "0?limit" ) in new stack
-- Executing [s@macro-user-callerid:12] ExecIf("SIP/134-000106b2", "1?Set(GR OUP(concurrency_limit)=134)") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("SIP/134-000106b2", "0?Set(CH ANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:14] GosubIf("SIP/134-000106b2", "7?sub-c css,s,1(from-internal,589278885759)") in new stack
-- Executing [s@sub-ccss:1] ExecIf("SIP/134-000106b2", "0?Return()") in new stack
-- Executing [s@sub-ccss:2] Set("SIP/134-000106b2", "CCSS_SETUP=TRUE") in ne w stack
-- Executing [s@sub-ccss:3] GosubIf("SIP/134-000106b2", "0?monitor_config,1( from-internal,589278885759):monitor_default,1(from-internal,589278885759)") in n ew stack
-- Executing [monitor_default@sub-ccss:1] GotoIf("SIP/134-000106b2", "0?is_e xten") in new stack
-- Executing [monitor_default@sub-ccss:2] StackPop("SIP/134-000106b2", "") i n new stack
-- Executing [monitor_default@sub-ccss:3] Return("SIP/134-000106b2", "FALSE" ) in new stack
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/134-000106b2", "1?contin ue") in new stack
-- Goto (macro-user-callerid,s,29)
-- Executing [s@macro-user-callerid:29] Set("SIP/134-000106b2", "CALLERID(nu mber)=134") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/134-000106b2", "CALLERID(na me)=134 ITadmin") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/134-000106b2", "CDR(cnum)=1 34") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/134-000106b2", "CDR(cnam)=1 34 ITadmin") in new stack
-- Executing [s@macro-user-callerid:33] Set("SIP/134-000106b2", "CHANNEL(lan guage)=ru") in new stack
-- Executing [589278885759@from-internal:2] ExecIf("SIP/134-000106b2", "0 ?S et(CDR(accountcode)=)") in new stack
-- Executing [589278885759@from-internal:3] Set("SIP/134-000106b2", "MOHCLAS S=default") in new stack
-- Executing [589278885759@from-internal:4] ExecIf("SIP/134-000106b2", "1?Se t(TRUNKCIDOVERRIDE=505)") in new stack
-- Executing [589278885759@from-internal:5] Set("SIP/134-000106b2", "_NODEST =") in new stack
-- Executing [589278885759@from-internal:6] Gosub("SIP/134-000106b2", "sub-r ecord-check,s,1(out,589278885759,)") in new stack
-- Executing [s@sub-record-check:1] Set("SIP/134-000106b2", "REC_POLICY_MODE _SAVE=") in new stack
-- Executing [s@sub-record-check:2] GotoIf("SIP/134-000106b2", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [s@sub-record-check:7] Set("SIP/134-000106b2", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/134-000106b2", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/134-000106b2", "0?Return()" ) in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/134-000106b2", "0?Set(__REC _POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/134-000106b2", "0?out,1") i n new stack
-- Executing [s@sub-record-check:14] Set("SIP/134-000106b2", "__REC_STATUS=I NITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/134-000106b2", "NOW=1543422669 ") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/134-000106b2", "__DAY=28") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/134-000106b2", "__MONTH=11") i n new stack
-- Executing [s@sub-record-check:18] Set("SIP/134-000106b2", "__YEAR=2018") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/134-000106b2", "__TIMESTR=2018 1128-203109") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/134-000106b2", "__FROMEXTEN=13 4") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/134-000106b2", "__CALLFILENAME =out-589278885759-134-20181128-203109-1543422669.102297") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/134-000106b2", "out,1") in ne w stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] ExecIf("SIP/134-000106b2", "1?Set(__RE C_POLICY_MODE=dontcare)") in new stack
-- Executing [out@sub-record-check:2] GosubIf("SIP/134-000106b2", "0?record, 1(exten,589278885759,134)") in new stack
-- Executing [out@sub-record-check:3] Return("SIP/134-000106b2", "") in new stack
-- Executing [589278885759@from-internal:7] Macro("SIP/134-000106b2", "dialo ut-trunk,2,89278885759,,off") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/134-000106b2", "DIAL_TRUNK=2 ") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/134-000106b2", "0?sub-pi ncheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/134-000106b2", "0?disable trunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/134-000106b2", "DIAL_NUMBER= 89278885759") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/134-000106b2", "DIAL_TRUNK_O PTIONS=Ttr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/134-000106b2", "OUTBOUND_GRO UP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/134-000106b2", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/134-000106b2", "0?skipout cid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/134-000106b2", "DIAL_TRUNK_ OPTIONS=Tt") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/134-000106b2", "outbound- callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/134-000106b2", "0?Set (CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/134-000106b2", "0?Set (REALCALLERIDNUM=134)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/134-000106b2", "1?nor mcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/134-000106b2", "USEROUTC ID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/134-000106b2", "EMERGENC YCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/134-000106b2", "TRUNKOUT CID=505") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/134-000106b2", "1?tru nkcid") in new stack
-- Goto (macro-outbound-callerid,s,14)
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/134-000106b2", "1?Se t(CALLERID(all)=505)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/134-000106b2", "0?Se t(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/134-000106b2", "1?Se t(CALLERID(all)=505)") in new stack
-- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/134-000106b2", "0?Se t(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:18] Set("SIP/134-000106b2", "CALLERI D(name)=") in new stack
-- Executing [s@macro-outbound-callerid:19] Set("SIP/134-000106b2", "CDR(out bound_cnum)=505") in new stack
-- Executing [s@macro-outbound-callerid:20] Set("SIP/134-000106b2", "CDR(out bound_cnam)=") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/134-000106b2", "0?sub-f lp-2,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/134-000106b2", "OUTNUM=8927 8885759") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/134-000106b2", "custom=SIP/ teleset_505") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/134-000106b2", "0?Set(DI AL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/134-000106b2", "0?Set(DI AL_TRUNK_OPTIONS=TtM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/134-000106b2", "dialout-t runk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/134-00010 6b2", "") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/134-000106b2", "0?bypass ,1") in new stack
-- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/134-000106b2", "1?Set(CO NNECTEDLINE(num,i)=89278885759)") in new stack
-- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/134-000106b2", "1?Set(CO NNECTEDLINE(name,i)=CID:505)") in new stack
-- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/134-000106b2", "0?custom trunk") in new stack
-- Executing [s@macro-dialout-trunk:22] Dial("SIP/134-000106b2", "SIP/telese t_505/89278885759,300,Tt") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/teleset_505/89278885759
-- SIP/teleset_505-000106b3 is making progress passing it to SIP/134-000106b2
> 0x7f40c0a31180 -- Probation passed - setting RTP source address to 192.168.1.214:19453
> 0x7f40ecf38d60 -- Probation passed - setting RTP source address to 10.9.0.1:30694
-- SIP/teleset_505-000106b3 is ringing
-- SIP/teleset_505-000106b3 answered SIP/134-000106b2
> 0x7f40ecf38d60 -- Probation passed - setting RTP source address to 10.9.0.1:30694
-- Executing [h@macro-dialout-trunk:1] Macro("SIP/134-000106b2", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/134-000106b2", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("SIP/134-000106b2", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("SIP/134-000106b2", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/134-000106b2' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/134-000106b2'
== Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'SIP/134-000106b2' in macro 'dialout-trunk'
== Spawn extension (from-internal, 589278885759, 7) exited non-zero on 'SIP/134-000106b2'
Код: Выделить всё
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [89278885759@from-internal:1] Dial("SIP/134-000107d7", "Sip/89278885759@teleset_505,,A(/var/spool/asterisk/monitor/321)") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called Sip/89278885759@teleset_505
-- SIP/teleset_505-000107d8 is making progress passing it to SIP/134-000107d7
> 0x7f40c0a31180 -- Probation passed - setting RTP source address to 192.168.1.214:19435
> 0x7f40ecf8d3c0 -- Probation passed - setting RTP source address to 10.9.0.1:35692
-- SIP/teleset_505-000107d8 is ringing
-- SIP/teleset_505-000107d8 answered SIP/134-000107d7
-- <SIP/teleset_505-000107d8> Playing '/var/spool/asterisk/monitor/321.gsm' (language 'ru')
> 0x7f40ecf8d3c0 -- Probation passed - setting RTP source address to 10.9.0.1:35692
== Spawn extension (from-internal, 89278885759, 1) exited non-zero on 'SIP/134-000107d7'
-- Executing [h@from-internal:1] Hangup("SIP/134-000107d7", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/134-000107d7'
ipats*CLI>