Variable is not saving

Greeting
got a simple question

[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:1] GotoIf("PJSIP/341-0004a0f2", "0?initialized") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:2] Set("PJSIP/341-0004a0f2", "__REC_STATUS=INITIALIZED") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:3] Set("PJSIP/341-0004a0f2", "NOW=1661275641") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:4] Set("PJSIP/341-0004a0f2", "__DAY=23") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:5] Set("PJSIP/341-0004a0f2", "__MONTH=08") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:6] Set("PJSIP/341-0004a0f2", "__YEAR=2022") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:7] Set("PJSIP/341-0004a0f2", "__TIMESTR=20220823-132721") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:8] Set("PJSIP/341-0004a0f2", "__FROMEXTEN=341") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:9] Set("PJSIP/341-0004a0f2", "__MON_FMT=wav") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:10] NoOp("PJSIP/341-0004a0f2", "Recordings initialized") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:11] ExecIf("PJSIP/341-0004a0f2", "0?Set(ARG3=dontcare)") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:12] Set("PJSIP/341-0004a0f2", "REC_POLICY_MODE_SAVE=") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:13] ExecIf("PJSIP/341-0004a0f2", "0?Set(REC_STATUS=NO)") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:14] GotoIf("PJSIP/341-0004a0f2", "3?checkaction") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx_builtins.c: Goto (sub-record-check,s,17)
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:17] GotoIf("PJSIP/341-0004a0f2", "1?sub-record-check,out,1") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx_builtins.c: Goto (sub-record-check,out,1)
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/341-0004a0f2", "Outbound Recording Check from 341 to 461489143093837") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:2] Set("PJSIP/341-0004a0f2", "RECMODE=force") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/341-0004a0f2", "0?Goto(routewins)") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:4] ExecIf("PJSIP/341-0004a0f2", "0?Goto(routewins)") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:5] Gosub("PJSIP/341-0004a0f2", "recordcheck,1(force,out,461489143093837)") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/341-0004a0f2", "Starting recording check against force") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:2] Goto("PJSIP/341-0004a0f2", "force") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx_builtins.c: Goto (sub-record-check,recordcheck,5)
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:5] Set("PJSIP/341-0004a0f2", "__REC_POLICY_MODE=FORCE") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:6] GotoIf("PJSIP/341-0004a0f2", "1?startrec") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx_builtins.c: Goto (sub-record-check,recordcheck,16)
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:16] NoOp("PJSIP/341-0004a0f2", "Starting recording: out, 461489143093837") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:17] Set("PJSIP/341-0004a0f2", "__CALLFILENAME=out-461489143093837-341-20220823-132721-1661275641.575973") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:18] MixMonitor("PJSIP/341-0004a0f2", "/var/spool/asterisk/monitor/2022/08/23/out-461489143093837-341-20220823-132721-1661275641.575973.wav,abr(${MIXMON_DIR}${YEAR}/${MONTH}/${DAY}/recv_${CALLFILENAME}.${MON_FMT})t(${MIXMON_DIR}${YEAR}/${MONTH}/${DAY}/trans_${CALLFILENAME}.${MON_FMT})i(),/usr/bin/mix-stereo.sh ${MIXMON_DIR}${YEAR}/${MONTH}/${DAY}/ ${CALLFILENAME}") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:19] Set("PJSIP/341-0004a0f2", "__MIXMON_ID=") in new stack
[2022-08-23 13:27:21] VERBOSE[62893][C-0005c551] app_mixmonitor.c: Begin MixMonitor Recording PJSIP/341-0004a0f2
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:20] Set("PJSIP/341-0004a0f2", "__RECORD_ID=PJSIP/341-0004a0f2") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:21] Set("PJSIP/341-0004a0f2", "__REC_STATUS=RECORDING") in new stack
[2022-08-23 13:27:21] VERBOSE[62892][C-0005c551] pbx.c: Executing [[email protected]:22] Set("PJSIP/341-0004a0f2", "CDR(recordingfile)=out-461489143093837-341-20220823-132721-1661275641.575973.wav") in new stack
[2022-08-23 13:27:21] WARNING[62893][C-0005c551] file.c: No such format '${MON_FMT}'

$ {MON_FMT} is in there
but for some reason it shows as empty – why?

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.