Asterisk 13.21.1 Не переписываются DYNAMIC FEATURES
Добавлено: 11 мар 2020, 01:50
Всем Приветствую всех присутствующих!!
При переходе с Астериска 11 на 13, столкнулся с проблемой, что теперь нельзя перезаписать DYNAMIC_FEATURES во время звонка. Сама переменная перезаписывается, но Астериск новые features не слушает....
Задача следующая: при исходящем звонке вызывающий(caller) абонент может нажать # и перезаписать свои DYNAMIC_FEATURES.
DYNAMIC_FEATURES навешиваю перед вызовом в pre-dial-handler для каждого плеча свои. Они работают, все хорошо, в процессе звонка их нужно переписать - перезаписываю, реакции 0.
Может фючесы стали работать по другому??(нигде инфы не нашел) Но разве не вся суть их в том что они ДИНАМИЧЕСКИЕ, когда захотел включил, когда захотел выключил, перезаписал и т.д.
dumpchan показывает что переменная DYNAMIC_FEATURES перезаписалась, перезаписалась в нужном канале, не могу понять что не так.
При переходе с Астериска 11 на 13, столкнулся с проблемой, что теперь нельзя перезаписать DYNAMIC_FEATURES во время звонка. Сама переменная перезаписывается, но Астериск новые features не слушает....
Задача следующая: при исходящем звонке вызывающий(caller) абонент может нажать # и перезаписать свои DYNAMIC_FEATURES.
DYNAMIC_FEATURES навешиваю перед вызовом в pre-dial-handler для каждого плеча свои. Они работают, все хорошо, в процессе звонка их нужно переписать - перезаписываю, реакции 0.
Может фючесы стали работать по другому??(нигде инфы не нашел) Но разве не вся суть их в том что они ДИНАМИЧЕСКИЕ, когда захотел включил, когда захотел выключил, перезаписал и т.д.
dumpchan показывает что переменная DYNAMIC_FEATURES перезаписалась, перезаписалась в нужном канале, не могу понять что не так.
Код: Выделить всё
ccnew-idle*CLI> features show
Builtin Feature Default Current
--------------- ------- -------
Pickup *8 *8
Blind Transfer # ##
Attended Transfer *2
One Touch Monitor
Disconnect Call * **
Park Call
One Touch MixMonitor
Dynamic Feature Default Current
--------------- ------- -------
apprecord no def *1
ATXFb-0 no def 0
ATXFb-1 no def 1
ATXFb-2 no def 2
ATXFb-3 no def 3
ATXFb-4 no def 4
ATXFb-5 no def 5
ATXFb-6 no def 6
ATXFb-7 no def 7
ATXFb-8 no def 8
ATXFb-9 no def 9
ATXFi-0 no def 0
ATXFi-1 no def 1
ATXFi-2 no def 2
ATXFi-3 no def 3
ATXFi-4 no def 4
ATXFi-5 no def 5
ATXFi-6 no def 6
ATXFi-7 no def 7
ATXFi-8 no def 8
ATXFi-9 no def 9
ATXFo-0 no def 0
ATXFo-1 no def 1
ATXFo-2 no def 2
ATXFo-3 no def 3
ATXFo-4 no def 4
ATXFo-5 no def 5
ATXFo-6 no def 6
ATXFo-7 no def 7
ATXFo-8 no def 8
ATXFo-9 no def 9
DTMFi no def #
DTMFo no def #
fax-send no def *5
fax-start no def *6
Код: Выделить всё
-- Executing [89141666889@from-internal:1] Macro("PJSIP/011-000001de", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("PJSIP/011-000001de", "TOUCH_MONITOR=1583879748.1196") in new stack
-- Executing [s@macro-user-callerid:2] Set("PJSIP/011-000001de", "AMPUSER=011") in new stack
-- Executing [s@macro-user-callerid:3] Set("PJSIP/011-000001de", "HOTDESCKCHAN=011-000001de") in new stack
-- Executing [s@macro-user-callerid:4] Set("PJSIP/011-000001de", "HOTDESKEXTEN=011") in new stack
-- Executing [s@macro-user-callerid:5] Set("PJSIP/011-000001de", "HOTDESKCALL=0") in new stack
-- Executing [s@macro-user-callerid:6] ExecIf("PJSIP/011-000001de", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [s@macro-user-callerid:7] ExecIf("PJSIP/011-000001de", "0?Set(CALLERID(name)=)") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("PJSIP/011-000001de", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("PJSIP/011-000001de", "1?Set(REALCALLERIDNUM=011)") in new stack
-- Executing [s@macro-user-callerid:10] Set("PJSIP/011-000001de", "AMPUSER=011") in new stack
-- Executing [s@macro-user-callerid:11] GotoIf("PJSIP/011-000001de", "0?limit") in new stack
-- Executing [s@macro-user-callerid:12] Set("PJSIP/011-000001de", "AMPUSERCIDNAME=Test2") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("PJSIP/011-000001de", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("PJSIP/011-000001de", "0?report") in new stack
-- Executing [s@macro-user-callerid:15] Set("PJSIP/011-000001de", "AMPUSERCID=011") in new stack
-- Executing [s@macro-user-callerid:16] Set("PJSIP/011-000001de", "__DIAL_OPTIONS=HhTtr") in new stack
-- Executing [s@macro-user-callerid:17] Set("PJSIP/011-000001de", "CALLERID(all)="Test2" <011>") in new stack
-- Executing [s@macro-user-callerid:18] Set("PJSIP/011-000001de", "HOTDESCKCHAN=011-000001de") in new stack
-- Executing [s@macro-user-callerid:19] Set("PJSIP/011-000001de", "HOTDESKEXTEN=011") in new stack
-- Executing [s@macro-user-callerid:20] Set("PJSIP/011-000001de", "HOTDESKCALL=0") in new stack
-- Executing [s@macro-user-callerid:21] ExecIf("PJSIP/011-000001de", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [s@macro-user-callerid:22] ExecIf("PJSIP/011-000001de", "0?Set(CALLERID(name)=)") in new stack
-- Executing [s@macro-user-callerid:23] ExecIf("PJSIP/011-000001de", "0?Set(CALLERID(all)="" < >)") in new stack
-- Executing [s@macro-user-callerid:24] ExecIf("PJSIP/011-000001de", "0?Set(CALLERID(all)=EXTERNAL)") in new stack
-- Executing [s@macro-user-callerid:25] GotoIf("PJSIP/011-000001de", "0?limit") in new stack
-- Executing [s@macro-user-callerid:26] ExecIf("PJSIP/011-000001de", "1?Set(GROUP(concurrency_limit)=011)") in new stack
-- Executing [s@macro-user-callerid:27] ExecIf("PJSIP/011-000001de", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:28] NoOp("PJSIP/011-000001de", "Macro Depth is 1") in new stack
-- Executing [s@macro-user-callerid:29] GotoIf("PJSIP/011-000001de", "1?report2:macroerror") in new stack
-- Goto (macro-user-callerid,s,30)
-- Executing [s@macro-user-callerid:30] GotoIf("PJSIP/011-000001de", "1?continue") in new stack
-- Goto (macro-user-callerid,s,49)
-- Executing [s@macro-user-callerid:49] Set("PJSIP/011-000001de", "CALLERID(number)=011") in new stack
-- Executing [s@macro-user-callerid:50] Set("PJSIP/011-000001de", "CALLERID(name)=Test2") in new stack
-- Executing [s@macro-user-callerid:51] GotoIf("PJSIP/011-000001de", "0?cnum") in new stack
-- Executing [s@macro-user-callerid:52] Set("PJSIP/011-000001de", "CDR(cnam)=Test2") in new stack
-- Executing [s@macro-user-callerid:53] Set("PJSIP/011-000001de", "CDR(cnum)=011") in new stack
-- Executing [s@macro-user-callerid:54] Set("PJSIP/011-000001de", "CHANNEL(language)=ru") in new stack
-- Executing [89141666889@from-internal:2] Gosub("PJSIP/011-000001de", "sub-record-check,s,1(out,89141666889,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("PJSIP/011-000001de", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("PJSIP/011-000001de", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("PJSIP/011-000001de", "NOW=1583879748") in new stack
-- Executing [s@sub-record-check:4] Set("PJSIP/011-000001de", "__DAY=11") in new stack
-- Executing [s@sub-record-check:5] Set("PJSIP/011-000001de", "__MONTH=03") in new stack
-- Executing [s@sub-record-check:6] Set("PJSIP/011-000001de", "__YEAR=2020") in new stack
-- Executing [s@sub-record-check:7] Set("PJSIP/011-000001de", "__TIMESTR=20200311-083548") in new stack
-- Executing [s@sub-record-check:8] Set("PJSIP/011-000001de", "__FROMEXTEN=011") in new stack
-- Executing [s@sub-record-check:9] Set("PJSIP/011-000001de", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("PJSIP/011-000001de", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("PJSIP/011-000001de", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("PJSIP/011-000001de", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("PJSIP/011-000001de", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("PJSIP/011-000001de", "3?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("PJSIP/011-000001de", "1?sub-record-check,out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] NoOp("PJSIP/011-000001de", "Outbound Recording Check from 011 to 89141666889") in new stack
-- Executing [out@sub-record-check:2] Set("PJSIP/011-000001de", "RECMODE=force") in new stack
-- Executing [out@sub-record-check:3] ExecIf("PJSIP/011-000001de", "0?Goto(routewins)") in new stack
-- Executing [out@sub-record-check:4] ExecIf("PJSIP/011-000001de", "0?Goto(routewins)") in new stack
-- Executing [out@sub-record-check:5] Gosub("PJSIP/011-000001de", "recordcheck,1(force,out,89141666889)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/011-000001de", "Starting recording check against force") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/011-000001de", "force") in new stack
-- Goto (sub-record-check,recordcheck,5)
-- Executing [recordcheck@sub-record-check:5] Set("PJSIP/011-000001de", "__REC_POLICY_MODE=FORCE") in new stack
-- Executing [recordcheck@sub-record-check:6] GotoIf("PJSIP/011-000001de", "0?sub-record-check,cc,1") in new stack
-- Executing [recordcheck@sub-record-check:7] GotoIf("PJSIP/011-000001de", "1?startrec") in new stack
-- Goto (sub-record-check,recordcheck,17)
-- Executing [recordcheck@sub-record-check:17] NoOp("PJSIP/011-000001de", "Starting recording: out, 89141666889") in new stack
-- Executing [recordcheck@sub-record-check:18] Set("PJSIP/011-000001de", "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack
[2020-03-11 08:35:48] ERROR[21388][C-000000b7]: pbx_functions.c:699 ast_func_write: Function AUDIOHOOK_INHERIT not registered
-- Executing [recordcheck@sub-record-check:19] Set("PJSIP/011-000001de", "__CALLFILENAME=out-89141666889-011-20200311-083548-1583879748.1196") in new stack
-- Executing [recordcheck@sub-record-check:20] NoOp("PJSIP/011-000001de", "Проверяем перевод из Call-центра") in new stack
-- Executing [recordcheck@sub-record-check:21] GotoIf("PJSIP/011-000001de", "0?sub-record-check,cc,1") in new stack
-- Executing [recordcheck@sub-record-check:22] MixMonitor("PJSIP/011-000001de", "2020/03/11/out-89141666889-011-20200311-083548-1583879748.1196.wav,ai(LOCAL_MIXMON_ID),") in new stack
-- Executing [recordcheck@sub-record-check:23] Set("PJSIP/011-000001de", "__MIXMON_ID=0x7f5cd4572b10") in new stack
-- Executing [recordcheck@sub-record-check:24] Set("PJSIP/011-000001de", "__RECORD_ID=PJSIP/011-000001de") in new stack
-- Executing [recordcheck@sub-record-check:25] Set("PJSIP/011-000001de", "__REC_STATUS=RECORDING") in new stack
-- Executing [recordcheck@sub-record-check:26] Set("PJSIP/011-000001de", "CDR(recordingfile)=out-89141666889-011-20200311-083548-1583879748.1196.wav") in new stack
-- Executing [recordcheck@sub-record-check:27] Return("PJSIP/011-000001de", "") in new stack
-- Executing [out@sub-record-check:6] Return("PJSIP/011-000001de", "") in new stack
-- Executing [89141666889@from-internal:3] ExecIf("PJSIP/011-000001de", "0 ?Set(CDR(accountcode)=)") in new stack
-- Executing [89141666889@from-internal:4] Set("PJSIP/011-000001de", "MOHCLASS=default") in new stack
-- Executing [89141666889@from-internal:5] Set("PJSIP/011-000001de", "_NODEST=") in new stack
-- Executing [89141666889@from-internal:6] Macro("PJSIP/011-000001de", "dialout-trunk,1,89141666889,,off") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("PJSIP/011-000001de", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] ExecIf("PJSIP/011-000001de", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack
-- Executing [s@macro-dialout-trunk:3] GosubIf("PJSIP/011-000001de", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:4] ExecIf("PJSIP/011-000001de", "0?Set(CALLERID(num)=011)") in new stack
-- Executing [s@macro-dialout-trunk:5] GotoIf("PJSIP/011-000001de", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("PJSIP/011-000001de", "DIAL_NUMBER=89141666889") in new stack
-- Executing [s@macro-dialout-trunk:7] Set("PJSIP/011-000001de", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
-- Executing [s@macro-dialout-trunk:8] Set("PJSIP/011-000001de", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:9] Set("PJSIP/011-000001de", "DIAL_TRUNK_OPTIONS=T") in new stack
-- Executing [s@macro-dialout-trunk:10] GotoIf("PJSIP/011-000001de", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,12)
-- Executing [s@macro-dialout-trunk:12] GotoIf("PJSIP/011-000001de", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:13] Macro("PJSIP/011-000001de", "outbound-callerid,1") in new stack
-- Executing [s@macro-outbound-callerid:1] NoOp("PJSIP/011-000001de", "011") in new stack
== Begin MixMonitor Recording PJSIP/011-000001de
-- Executing [s@macro-outbound-callerid:2] NoOp("PJSIP/011-000001de", "") in new stack
-- Executing [s@macro-outbound-callerid:3] NoOp("PJSIP/011-000001de", "all") in new stack
-- Executing [s@macro-outbound-callerid:4] ExecIf("PJSIP/011-000001de", "0?Set(CALLERPRES(name-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:5] ExecIf("PJSIP/011-000001de", "0?Set(CALLERPRES(num-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:6] Set("PJSIP/011-000001de", "HOTDESCKCHAN=011-000001de") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("PJSIP/011-000001de", "HOTDESKEXTEN=011") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("PJSIP/011-000001de", "HOTDESKCALL=0") in new stack
-- Executing [s@macro-outbound-callerid:9] ExecIf("PJSIP/011-000001de", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [s@macro-outbound-callerid:10] ExecIf("PJSIP/011-000001de", "0?Set(CALLERID(name)=)") in new stack
-- Executing [s@macro-outbound-callerid:11] Set("PJSIP/011-000001de", "ALLOWTHISROUTE=NO") in new stack
-- Executing [s@macro-outbound-callerid:12] ExecIf("PJSIP/011-000001de", "0?Set(ALLOWTHISROUTE=YES)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("PJSIP/011-000001de", "0?Hangup()") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("PJSIP/011-000001de", "0?Set(REALCALLERIDNUM=011)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("PJSIP/011-000001de", "0?Set(AMPUSER=011)") in new stack
-- Executing [s@macro-outbound-callerid:16] GotoIf("PJSIP/011-000001de", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,20)
-- Executing [s@macro-outbound-callerid:20] Set("PJSIP/011-000001de", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:21] Set("PJSIP/011-000001de", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:22] ExecIf("PJSIP/011-000001de", "0?Set(EMERGENCYCID=)") in new stack
-- Executing [s@macro-outbound-callerid:23] Set("PJSIP/011-000001de", "TRUNKOUTCID=74212556430") in new stack
-- Executing [s@macro-outbound-callerid:24] GotoIf("PJSIP/011-000001de", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,30)
-- Executing [s@macro-outbound-callerid:30] ExecIf("PJSIP/011-000001de", "1?Set(CALLERID(all)=74212556430)") in new stack
-- Executing [s@macro-outbound-callerid:31] ExecIf("PJSIP/011-000001de", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:32] ExecIf("PJSIP/011-000001de", "1?Set(CALLERID(all)=74212556430)") in new stack
-- Executing [s@macro-outbound-callerid:33] ExecIf("PJSIP/011-000001de", "0?Set(CALLERID(all)=011)") in new stack
-- Executing [s@macro-outbound-callerid:34] Set("PJSIP/011-000001de", "TIOHIDE=no") in new stack
-- Executing [s@macro-outbound-callerid:35] ExecIf("PJSIP/011-000001de", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:36] ExecIf("PJSIP/011-000001de", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:37] ExecIf("PJSIP/011-000001de", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:38] ExecIf("PJSIP/011-000001de", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:39] Set("PJSIP/011-000001de", "CDR(outbound_cnum)=74212556430") in new stack
-- Executing [s@macro-outbound-callerid:40] Set("PJSIP/011-000001de", "CDR(outbound_cnam)=") in new stack
-- Executing [s@macro-dialout-trunk:14] GosubIf("PJSIP/011-000001de", "1?sub-flp-1,s,1()") in new stack
-- Executing [s@sub-flp-1:1] ExecIf("PJSIP/011-000001de", "1?Set(TARGET_FLP_1=19089141666889)") in new stack
-- Executing [s@sub-flp-1:2] GotoIf("PJSIP/011-000001de", "1?match") in new stack
-- Goto (sub-flp-1,s,4)
-- Executing [s@sub-flp-1:4] Set("PJSIP/011-000001de", "DIAL_NUMBER=19089141666889") in new stack
-- Executing [s@sub-flp-1:5] Return("PJSIP/011-000001de", "") in new stack
-- Executing [s@macro-dialout-trunk:15] Set("PJSIP/011-000001de", "OUTNUM=19089141666889") in new stack
-- Executing [s@macro-dialout-trunk:16] Set("PJSIP/011-000001de", "custom=PJSIP") in new stack
-- Executing [s@macro-dialout-trunk:17] ExecIf("PJSIP/011-000001de", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
-- Executing [s@macro-dialout-trunk:18] ExecIf("PJSIP/011-000001de", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:19] Macro("PJSIP/011-000001de", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] Set("PJSIP/011-000001de", "CHANNEL(hangup_handler_push)=hangup-handler-out,s,1)") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:2] Set("PJSIP/011-000001de", "DB(AVAN-last-outnum/011)=19089141666889") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:3] ExecIf("PJSIP/011-000001de", "0?Set(DIAL_TRUNK_OPTIONS=Ttb(macro-dialout-trunk-predial-hook^callee_handler^1),):Set(DIAL_TRUNK_OPTIONS=TB(macro-dialout-trunk-predial-hook^caller_handler^1))") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:4] Macro("PJSIP/011-000001de", "qabandon-checkout,") in new stack
-- Executing [s@macro-qabandon-checkout:1] Set("PJSIP/011-000001de", "QNUM_OUT=19089141666889") in new stack
-- Executing [s@macro-qabandon-checkout:2] ExecIf("PJSIP/011-000001de", "1?Set(__QNUM_OUT=9141666889)") in new stack
-- Executing [s@macro-qabandon-checkout:3] ExecIf("PJSIP/011-000001de", "0?Set(__QNUM_OUT=666889)") in new stack
[2020-03-11 08:35:48] ERROR[21388][C-000000b7]: func_odbc.c:838 acf_odbc_read: Unable to execute query [SELECT phone_1 FROM clients WHERE phone_1 LIKE '%9141666889' AND result<>"1" AND added > ADDDATE(NOW(), INTERVAL -3 DAY)]
-- Executing [s@macro-qabandon-checkout:4] ExecIf("PJSIP/011-000001de", "0?Set(num_in_autodialer=)") in new stack
[2020-03-11 08:35:48] ERROR[21388][C-000000b7]: func_odbc.c:838 acf_odbc_read: Unable to execute query [SELECT phone_1 FROM clients WHERE phone_1 LIKE '%9141666889' AND result<>"1" AND added > ADDDATE(NOW(), INTERVAL -3 DAY)]
-- Executing [s@macro-qabandon-checkout:5] MacroExit("PJSIP/011-000001de", "") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:5] Macro("PJSIP/011-000001de", "predial-trunk-custom,") in new stack
-- Executing [s@macro-predial-trunk-custom:1] NoOp("PJSIP/011-000001de", "") in new stack
-- Executing [s@macro-predial-trunk-custom:2] MacroExit("PJSIP/011-000001de", "") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:6] MacroExit("PJSIP/011-000001de", "") in new stack
-- Executing [s@macro-dialout-trunk:20] GotoIf("PJSIP/011-000001de", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:21] ExecIf("PJSIP/011-000001de", "1?Set(CONNECTEDLINE(num,i)=19089141666889)") in new stack
-- Executing [s@macro-dialout-trunk:22] ExecIf("PJSIP/011-000001de", "1?Set(CONNECTEDLINE(name,i)=CID:74212556430)") in new stack
-- Executing [s@macro-dialout-trunk:23] ExecIf("PJSIP/011-000001de", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)74212556430)") in new stack
-- Executing [s@macro-dialout-trunk:24] GotoIf("PJSIP/011-000001de", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:25] ExecIf("PJSIP/011-000001de", "0?Set(DIAL_TRUNK_OPTIONS=B(macro-dialout-trunk-predial-hook^caller_handler^1))") in new stack
-- Executing [s@macro-dialout-trunk:26] Dial("PJSIP/011-000001de", "PJSIP/19089141666889@74212556430,300,TB(macro-dialout-trunk-predial-hook^caller_handler^1)b(func-apply-sipheaders^s^1,(1))") in new stack
-- PJSIP/011-000001de Internal Gosub(macro-dialout-trunk-predial-hook,caller_handler,1) start
-- Executing [caller_handler@macro-dialout-trunk-predial-hook:1] NoOp("PJSIP/011-000001de", "") in new stack
-- Executing [caller_handler@macro-dialout-trunk-predial-hook:2] Set("PJSIP/011-000001de", "DYNAMIC_FEATURES=fax-send#fax-start#DTMFo") in new stack
-- Executing [caller_handler@macro-dialout-trunk-predial-hook:3] Verbose("PJSIP/011-000001de", "0, In caller pre-dial handler!") in new stack
In caller pre-dial handler!
-- Executing [caller_handler@macro-dialout-trunk-predial-hook:4] DumpChan("PJSIP/011-000001de", "") in new stack
Dumping Info For Channel: PJSIP/011-000001de:
================================================================================
Info:
Name= PJSIP/011-000001de
Type= PJSIP
UniqueID= 1583879748.1196
LinkedID= 1583879748.1196
CallerIDNum= 74212556430
CallerIDName= (N/A)
ConnectedLineIDNum= 19089141666889
ConnectedLineIDName=CID:74212556430
DNIDDigits= 89141666889
RDNIS= (N/A)
Parkinglot=
Language= ru
State= Ring (4)
Rings= 1
NativeFormat= (alaw|ulaw|g722)
WriteFormat= alaw
ReadFormat= alaw
RawWriteFormat= alaw
RawReadFormat= alaw
WriteTranscode= No
ReadTranscode= No
1stFileDescriptor= -1
Framesin= 0
Framesout= 0
TimetoHangup= 0
ElapsedTime= 0h0m0s
BridgeID= (Not bridged)
Context= macro-dialout-trunk-predial-hook
Extension= caller_handler
Priority= 4
CallGroup=
PickupGroup=
Application= DumpChan
Data= (Empty)
Blocking_in= (Not Blocking)
Variables:
DYNAMIC_FEATURES=fax-send#fax-start#DTMFo
ARGC=0
DIALEDTIME=
ANSWEREDTIME=
DIALEDPEERNAME=
DIALEDPEERNUMBER=
DIALSTATUS=
MACRO_DEPTH=1
DB_RESULT=Test2
MACRO_PRIORITY=6
MACRO_CONTEXT=from-internal
MACRO_EXTEN=89141666889
ARG1=1
ODBCROWS=-1
QNUM_OUT=9141666889
DIAL_TRUNK_OPTIONS=TB(macro-dialout-trunk-predial-hook^caller_handler^1)
custom=PJSIP
OUTNUM=19089141666889
GOSUB_RETVAL=
DIAL_NUMBER=19089141666889
TARGET_FLP_1=19089141666889
TIOHIDE=no
TRUNKOUTCID=74212556430
EMERGENCYCID=
USEROUTCID=
ALLOWTHISROUTE=NO
HOTDESKCALL=0
HOTDESKEXTEN=011
HOTDESCKCHAN=011-000001de
OUTBOUND_GROUP=OUT_1
DIAL_TRUNK=1
ARG4=off
ARG3=
ARG2=89141666889
NODEST=
MOHCLASS=default
REC_STATUS=RECORDING
RECORD_ID=PJSIP/011-000001de
MIXMON_ID=0x7f5cd4572b10
LOCAL_MIXMON_ID=0x7f5cd4572b10
MIXMONITOR_FILENAME=/var/spool/asterisk/monitor/2020/03/11/out-89141666889-011-20200311-083548-1583879748.1196.wav
CALLFILENAME=out-89141666889-011-20200311-083548-1583879748.1196
REC_POLICY_MODE=FORCE
RECMODE=force
REC_POLICY_MODE_SAVE=
MON_FMT=wav
FROMEXTEN=011
TIMESTR=20200311-083548
YEAR=2020
MONTH=03
DAY=11
NOW=1583879748
DIAL_OPTIONS=HhTtr
AMPUSERCID=011
AMPUSERCIDNAME=Test2
AMPUSER=011
REALCALLERIDNUM=011
TOUCH_MONITOR=1583879748.1196
================================================================================
-- Executing [caller_handler@macro-dialout-trunk-predial-hook:5] Return("PJSIP/011-000001de", "") in new stack
== Spawn extension (macro-dialout-trunk, s, 26) exited non-zero on 'PJSIP/011-000001de'
-- PJSIP/011-000001de Internal Gosub(macro-dialout-trunk-predial-hook,caller_handler,1) complete GOSUB_RETVAL=
-- PJSIP/74212556430-000001df Internal Gosub(func-apply-sipheaders,s,1(1)) start
-- Executing [s@func-apply-sipheaders:1] NoOp("PJSIP/74212556430-000001df", "Applying SIP Headers to channel PJSIP/74212556430-000001df") in new stack
-- Executing [s@func-apply-sipheaders:2] Set("PJSIP/74212556430-000001df", "TECH=PJSIP") in new stack
-- Executing [s@func-apply-sipheaders:3] Set("PJSIP/74212556430-000001df", "SIPHEADERKEYS=") in new stack
-- Executing [s@func-apply-sipheaders:4] While("PJSIP/74212556430-000001df", "0") in new stack
-- Jumping to priority 12
-- Executing [s@func-apply-sipheaders:13] Return("PJSIP/74212556430-000001df", "") in new stack
== Spawn extension (from-provider, 89141666889, 1) exited non-zero on 'PJSIP/74212556430-000001df'
-- PJSIP/74212556430-000001df Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=
-- Called PJSIP/19089141666889@74212556430
> 0x7f5d642f05f0 -- Strict RTP learning after remote address set to: 193.233.5.254:10164
-- PJSIP/74212556430-000001df is making progress passing it to PJSIP/011-000001de
> 0x7f5d64415e50 -- Strict RTP learning after remote address set to: 212.19.6.166:10038
> 0x7f5d642f05f0 -- Strict RTP switching to RTP target address 193.233.5.254:10164 as source
> 0x7f5d64415e50 -- Strict RTP switching to RTP target address 212.19.6.166:10038 as source
-- PJSIP/74212556430-000001df is ringing
-- PJSIP/74212556430-000001df answered PJSIP/011-000001de
-- Channel PJSIP/74212556430-000001df joined 'simple_bridge' basic-bridge <22480c9a-594c-4864-b157-b050ac12c3a4>
-- Channel PJSIP/011-000001de joined 'simple_bridge' basic-bridge <22480c9a-594c-4864-b157-b050ac12c3a4>
> 0x7f5d642f05f0 -- Strict RTP learning complete - Locking on source address 193.233.5.254:10164
> 0x7f5d64415e50 -- Strict RTP learning complete - Locking on source address 212.19.6.166:10038
[2020-03-11 08:35:59] DTMF[21388][C-000000b7]: channel.c:4124 __ast_read: DTMF begin '#' received on PJSIP/011-000001de
[2020-03-11 08:35:59] DTMF[21388][C-000000b7]: channel.c:4135 __ast_read: DTMF begin passthrough '#' on PJSIP/011-000001de
[2020-03-11 08:35:59] DTMF[21388][C-000000b7]: channel.c:4038 __ast_read: DTMF end '#' received on PJSIP/011-000001de, duration 110 ms
[2020-03-11 08:35:59] DTMF[21388][C-000000b7]: channel.c:4079 __ast_read: DTMF end accepted with begin '#' on PJSIP/011-000001de
[2020-03-11 08:35:59] DTMF[21388][C-000000b7]: channel.c:4108 __ast_read: DTMF end passthrough '#' on PJSIP/011-000001de
-- Started music on hold, class 'default', on channel 'PJSIP/74212556430-000001df'
-- Executing [s@macro-DTMFo:1] NoOp("PJSIP/011-000001de", "Текущее значение DYNAMIC_FEATURES - fax-send#fax-start#DTMFo") in new stack
-- Executing [s@macro-DTMFo:2] GotoIf("PJSIP/011-000001de", "1?enable-dtmf:disable-dtmf") in new stack
-- Goto (macro-DTMFo,s,3)
-- Executing [s@macro-DTMFo:3] Set("PJSIP/011-000001de", "DYNAMIC_FEATURES=ATXFo-0#ATXFo-1#ATXFo-2#ATXFo-3#ATXFo-4#ATXFo-5#ATXFo-6#ATXFo-7#ATXFo-8#ATXFo-9#fax-send#fax-start#DTMFo") in new stack
-- Executing [s@macro-DTMFo:4] DumpChan("PJSIP/011-000001de", "") in new stack
Dumping Info For Channel: PJSIP/011-000001de:
================================================================================
Info:
Name= PJSIP/011-000001de
Type= PJSIP
UniqueID= 1583879748.1196
LinkedID= 1583879748.1196
CallerIDNum= 74212556430
CallerIDName= (N/A)
ConnectedLineIDNum= 89141666889
ConnectedLineIDName=CID:74212556430
DNIDDigits= 89141666889
RDNIS= (N/A)
Parkinglot=
Language= ru
State= Up (6)
Rings= 1
NativeFormat= (alaw)
WriteFormat= alaw
ReadFormat= alaw
RawWriteFormat= alaw
RawReadFormat= alaw
WriteTranscode= No
ReadTranscode= No
1stFileDescriptor= 38
Framesin= 365
Framesout= 364
TimetoHangup= 0
ElapsedTime= 0h0m11s
BridgeID= 22480c9a-594c-4864-b157-b050ac12c3a4
Context= macro-DTMFo
Extension= s
Priority= 4
CallGroup=
PickupGroup=
Application= DumpChan
Data= (Empty)
Blocking_in= (Not Blocking)
Variables:
MACRO_DEPTH=2
DYNAMIC_FEATURES=ATXFo-0#ATXFo-1#ATXFo-2#ATXFo-3#ATXFo-4#ATXFo-5#ATXFo-6#ATXFo-7#ATXFo-8#ATXFo-9#fax-send#fax-start#DTMFo
MACRO_PRIORITY=26
MACRO_CONTEXT=macro-dialout-trunk
MACRO_EXTEN=s
DYNAMIC_WHO_ACTIVATED=PJSIP/011-000001de
DYNAMIC_FEATURENAME=DTMFo
BRIDGEPVTCALLID=2ca1d963-6c7d-4262-ac95-60c78a7318ef
BRIDGEPEER=PJSIP/74212556430-000001df
DIALEDPEERNUMBER=19089141666889@74212556430
DIALEDPEERNAME=PJSIP/74212556430-000001df
DIALSTATUS=ANSWER
GOSUB_RETVAL=
DIALEDTIME=
ANSWEREDTIME=
DB_RESULT=Test2
ARG1=1
ODBCROWS=-1
QNUM_OUT=9141666889
DIAL_TRUNK_OPTIONS=TB(macro-dialout-trunk-predial-hook^caller_handler^1)
custom=PJSIP
OUTNUM=19089141666889
DIAL_NUMBER=19089141666889
TARGET_FLP_1=19089141666889
TIOHIDE=no
TRUNKOUTCID=74212556430
EMERGENCYCID=
USEROUTCID=
ALLOWTHISROUTE=NO
HOTDESKCALL=0
HOTDESKEXTEN=011
HOTDESCKCHAN=011-000001de
OUTBOUND_GROUP=OUT_1
DIAL_TRUNK=1
ARG4=off
ARG3=
ARG2=89141666889
NODEST=
MOHCLASS=default
REC_STATUS=RECORDING
RECORD_ID=PJSIP/011-000001de
MIXMON_ID=0x7f5cd4572b10
LOCAL_MIXMON_ID=0x7f5cd4572b10
MIXMONITOR_FILENAME=/var/spool/asterisk/monitor/2020/03/11/out-89141666889-011-20200311-083548-1583879748.1196.wav
CALLFILENAME=out-89141666889-011-20200311-083548-1583879748.1196
REC_POLICY_MODE=FORCE
RECMODE=force
REC_POLICY_MODE_SAVE=
MON_FMT=wav
FROMEXTEN=011
TIMESTR=20200311-083548
YEAR=2020
MONTH=03
DAY=11
NOW=1583879748
DIAL_OPTIONS=HhTtr
AMPUSERCID=011
AMPUSERCIDNAME=Test2
AMPUSER=011
REALCALLERIDNUM=011
TOUCH_MONITOR=1583879748.1196
================================================================================
-- Executing [s@macro-DTMFo:5] NoOp("PJSIP/011-000001de", "Новое значение DYNAMIC_FEATURES - ATXFo-0#ATXFo-1#ATXFo-2#ATXFo-3#ATXFo-4#ATXFo-5#ATXFo-6#ATXFo-7#ATXFo-8#ATXFo-9#fax-send#fax-start#DTMFo") in new stack
-- Executing [s@macro-DTMFo:6] MacroExit("PJSIP/011-000001de", "") in new stack
-- Stopped music on hold on PJSIP/74212556430-000001df
ccnew-idle*CLI>
ccnew-idle*CLI>
ccnew-idle*CLI>
ccnew-idle*CLI>
[2020-03-11 08:36:04] DTMF[21388][C-000000b7]: channel.c:4124 __ast_read: DTMF begin '0' received on PJSIP/011-000001de
[2020-03-11 08:36:04] DTMF[21388][C-000000b7]: channel.c:4135 __ast_read: DTMF begin passthrough '0' on PJSIP/011-000001de
[2020-03-11 08:36:04] DTMF[21388][C-000000b7]: channel.c:4038 __ast_read: DTMF end '0' received on PJSIP/011-000001de, duration 110 ms
[2020-03-11 08:36:04] DTMF[21388][C-000000b7]: channel.c:4079 __ast_read: DTMF end accepted with begin '0' on PJSIP/011-000001de
[2020-03-11 08:36:04] DTMF[21388][C-000000b7]: channel.c:4108 __ast_read: DTMF end passthrough '0' on PJSIP/011-000001de
[2020-03-11 08:36:05] DTMF[21388][C-000000b7]: channel.c:4124 __ast_read: DTMF begin '1' received on PJSIP/011-000001de
[2020-03-11 08:36:05] DTMF[21388][C-000000b7]: channel.c:4135 __ast_read: DTMF begin passthrough '1' on PJSIP/011-000001de
[2020-03-11 08:36:05] DTMF[21388][C-000000b7]: channel.c:4038 __ast_read: DTMF end '1' received on PJSIP/011-000001de, duration 110 ms
[2020-03-11 08:36:05] DTMF[21388][C-000000b7]: channel.c:4079 __ast_read: DTMF end accepted with begin '1' on PJSIP/011-000001de
[2020-03-11 08:36:05] DTMF[21388][C-000000b7]: channel.c:4108 __ast_read: DTMF end passthrough '1' on PJSIP/011-000001de
[2020-03-11 08:36:05] DTMF[21388][C-000000b7]: channel.c:4124 __ast_read: DTMF begin '4' received on PJSIP/011-000001de
[2020-03-11 08:36:05] DTMF[21388][C-000000b7]: channel.c:4135 __ast_read: DTMF begin passthrough '4' on PJSIP/011-000001de
[2020-03-11 08:36:05] DTMF[21388][C-000000b7]: channel.c:4038 __ast_read: DTMF end '4' received on PJSIP/011-000001de, duration 110 ms
[2020-03-11 08:36:05] DTMF[21388][C-000000b7]: channel.c:4079 __ast_read: DTMF end accepted with begin '4' on PJSIP/011-000001de
[2020-03-11 08:36:05] DTMF[21388][C-000000b7]: channel.c:4108 __ast_read: DTMF end passthrough '4' on PJSIP/011-000001de
[2020-03-11 08:36:06] DTMF[21388][C-000000b7]: channel.c:4124 __ast_read: DTMF begin '5' received on PJSIP/011-000001de
[2020-03-11 08:36:06] DTMF[21388][C-000000b7]: channel.c:4135 __ast_read: DTMF begin passthrough '5' on PJSIP/011-000001de
[2020-03-11 08:36:06] DTMF[21388][C-000000b7]: channel.c:4038 __ast_read: DTMF end '5' received on PJSIP/011-000001de, duration 110 ms
[2020-03-11 08:36:06] DTMF[21388][C-000000b7]: channel.c:4079 __ast_read: DTMF end accepted with begin '5' on PJSIP/011-000001de
[2020-03-11 08:36:06] DTMF[21388][C-000000b7]: channel.c:4108 __ast_read: DTMF end passthrough '5' on PJSIP/011-000001de
[2020-03-11 08:36:06] DTMF[21388][C-000000b7]: channel.c:4124 __ast_read: DTMF begin '2' received on PJSIP/011-000001de
[2020-03-11 08:36:06] DTMF[21388][C-000000b7]: channel.c:4135 __ast_read: DTMF begin passthrough '2' on PJSIP/011-000001de
[2020-03-11 08:36:06] DTMF[21388][C-000000b7]: channel.c:4038 __ast_read: DTMF end '2' received on PJSIP/011-000001de, duration 110 ms
[2020-03-11 08:36:06] DTMF[21388][C-000000b7]: channel.c:4079 __ast_read: DTMF end accepted with begin '2' on PJSIP/011-000001de
[2020-03-11 08:36:06] DTMF[21388][C-000000b7]: channel.c:4108 __ast_read: DTMF end passthrough '2' on PJSIP/011-000001de
[2020-03-11 08:36:06] DTMF[21388][C-000000b7]: channel.c:4124 __ast_read: DTMF begin '4' received on PJSIP/011-000001de
[2020-03-11 08:36:06] DTMF[21388][C-000000b7]: channel.c:4135 __ast_read: DTMF begin passthrough '4' on PJSIP/011-000001de
[2020-03-11 08:36:06] DTMF[21388][C-000000b7]: channel.c:4038 __ast_read: DTMF end '4' received on PJSIP/011-000001de, duration 110 ms
[2020-03-11 08:36:06] DTMF[21388][C-000000b7]: channel.c:4079 __ast_read: DTMF end accepted with begin '4' on PJSIP/011-000001de
[2020-03-11 08:36:06] DTMF[21388][C-000000b7]: channel.c:4108 __ast_read: DTMF end passthrough '4' on PJSIP/011-000001de
[2020-03-11 08:36:07] DTMF[21388][C-000000b7]: channel.c:4124 __ast_read: DTMF begin '1' received on PJSIP/011-000001de
[2020-03-11 08:36:07] DTMF[21388][C-000000b7]: channel.c:4135 __ast_read: DTMF begin passthrough '1' on PJSIP/011-000001de
[2020-03-11 08:36:07] DTMF[21388][C-000000b7]: channel.c:4038 __ast_read: DTMF end '1' received on PJSIP/011-000001de, duration 110 ms
[2020-03-11 08:36:07] DTMF[21388][C-000000b7]: channel.c:4079 __ast_read: DTMF end accepted with begin '1' on PJSIP/011-000001de
[2020-03-11 08:36:07] DTMF[21388][C-000000b7]: channel.c:4108 __ast_read: DTMF end passthrough '1' on PJSIP/011-000001de
-- Channel PJSIP/74212556430-000001df left 'simple_bridge' basic-bridge <22480c9a-594c-4864-b157-b050ac12c3a4>
-- Channel PJSIP/011-000001de left 'simple_bridge' basic-bridge <22480c9a-594c-4864-b157-b050ac12c3a4>
== Spawn extension (macro-dialout-trunk, s, 26) exited non-zero on 'PJSIP/011-000001de' in macro 'dialout-trunk'
== Spawn extension (from-internal, 89141666889, 6) exited non-zero on 'PJSIP/011-000001de'
-- Executing [h@from-internal:1] Macro("PJSIP/011-000001de", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] NoOp("PJSIP/011-000001de", "Call-center www.avantelecom.ru") in new stack
-- Executing [s@macro-hangupcall:2] ExecIf("PJSIP/011-000001de", "0?GoSub(agent-direct,h,1)") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("PJSIP/011-000001de", "1?theend") in new stack
-- Goto (macro-hangupcall,s,5)
-- Executing [s@macro-hangupcall:5] ExecIf("PJSIP/011-000001de", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:6] Hangup("PJSIP/011-000001de", "") in new stack
== Spawn extension (macro-hangupcall, s, 6) exited non-zero on 'PJSIP/011-000001de' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/011-000001de'
-- PJSIP/011-000001de Internal Gosub(hangup-handler-out,s,1)) start
-- Executing [s@hangup-handler-out:1] NoOp("PJSIP/011-000001de", "qabandon:"" BRIDGEPEER:"" DIALSTATUS:"ANSWER" num_in_autodialer:""") in new stack
-- Executing [s@hangup-handler-out:2] Set("PJSIP/011-000001de", "BRIDGEPEER=89141666889") in new stack
-- Executing [s@hangup-handler-out:3] ExecIf("PJSIP/011-000001de", "0?Set(BRIDGEPEER=)") in new stack
-- Executing [s@hangup-handler-out:4] Macro("PJSIP/011-000001de", "bx24avan-hangup,") in new stack
-- Executing [s@macro-bx24avan-hangup:1] GotoIf("PJSIP/011-000001de", "1?skipbitrix") in new stack
-- Goto (macro-bx24avan-hangup,s,10)
-- Executing [s@macro-bx24avan-hangup:10] NoOp("PJSIP/011-000001de", "") in new stack
-- Executing [s@hangup-handler-out:5] GotoIf("PJSIP/011-000001de", "0?next_check") in new stack
-- Executing [s@hangup-handler-out:6] GotoIf("PJSIP/011-000001de", "0?next_check") in new stack
-- Executing [s@hangup-handler-out:7] Return("PJSIP/011-000001de", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/011-000001de'
-- PJSIP/011-000001de Internal Gosub(hangup-handler-out,s,1)) complete GOSUB_RETVAL=
== MixMonitor close filestream (mixed)
== End MixMonitor Recording PJSIP/011-000001de