<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Bom dia Srs,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Qual a melhor forma de alterar a macro abaixo para que os audios fiquem organizados por diretórios e de forma legível?</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">ex: /ANO/MES/DIA/ORIGEM_DESTINO_DATA_HORA.wav</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>[macro-record-enable]</div><div>include => macro-record-enable-custom</div><div>exten => s,1,GotoIf($["${BLINDTRANSFER}" = ""]?check)</div>
<div>exten => s,n,ResetCDR(w)</div><div>exten => s,n,StopMixMonitor()</div><div>exten => s,n(check),ExecIf($["${ARG1}"=""]?MacroExit())</div><div>exten => s,n,GotoIf($["${ARG2}"="Group"]?Group:OUT)</div>
<div>exten => s,n(Group),Set(LOOPCNT=${FIELDQTY(ARG1,-)})</div><div>exten => s,n,Set(ITER=1)</div><div>exten => s,n(begin),GotoIf($["${CUT(DB(AMPUSER/${CUT(ARG1,-,${ITER})}/recording),=,3)}" != "Always"]?continue)</div>
<div>exten => s,n,Set(TEXTEN=${CUT(ARG1,-,${ITER})})</div><div>exten => s,n,Noop(Recording enable for ${TEXTEN})</div><div>exten => s,n,Set(CALLFILENAME=g${TEXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})</div>
<div>exten => s,n,Goto(record)</div><div>exten => s,n(continue),Set(ITER=$[${ITER}+1])</div><div>exten => s,n,GotoIf($[${ITER}<=${LOOPCNT}]?begin)</div><div>exten => s,n(OUT),GotoIf($["${ARG2}"="IN"]?IN)</div>
<div>exten => s,n,ExecIf($["${CUT(DB(AMPUSER/${ARG1}/recording),\\\|,1):4}" != "Always"]?MacroExit())</div><div>exten => s,n,Noop(Recording enable for ${ARG1})</div><div>exten => s,n,Set(CALLFILENAME=OUT${ARG1}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})</div>
<div>exten => s,n,Goto(record)</div><div>exten => s,n(IN),ExecIf($["${CUT(DB(AMPUSER/${ARG1}/recording),\\\|,2):3}" != "Always"]?MacroExit())</div><div>exten => s,n,Noop(Recording enable for ${ARG1})</div>
<div>exten => s,n,Set(CALLFILENAME=${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})</div><div>exten => s,n(record),MixMonitor(${MIXMON_DIR}${CALLFILENAME}.${MIXMON_FORMAT},,${MIXMON_POST})</div><div>exten => s,n,Set(CDR(userfield)=audio:${CALLFILENAME}.${MIXMON_FORMAT})</div>
<div>exten => s,n,MacroExit()</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Grato!</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Att</div></div>