- [macro-record-enable]
- include => macro-record-enable-custom
- exten => s,1,GotoIf($["${BLINDTRANSFER}" = ""]?check)
- exten => s,n,ResetCDR(w)
- exten => s,n,StopMixMonitor()
- exten => s,n(check),ExecIf($["${ARG1}"=""]?MacroExit())
- exten => s,n,GotoIf($["${ARG2}"="Group"]?Group:OUT)
- exten => s,n(Group),Set(LOOPCNT=${FIELDQTY(ARG1,-)})
- exten => s,n,Set(ITER=1)
- exten => s,n(begin),Noop(macro-record-enable group loop begin)
- exten => s,n,Set(TEXTEN=${CUT(ARG1,-,${ITER})})
- exten => s,n,Set(CALLFILENAME=g${TEXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})
- exten => s,n,Goto(record)
- exten => s,n(continue),Set(ITER=$[${ITER}+1])
- exten => s,n,GotoIf($[${ITER}<=${LOOPCNT}]?begin)
- exten => s,n,MacroExit()
- exten => s,n(OUT),GotoIf($["${ARG2}"="IN"]?IN)
- exten => s,n,Set(CALLFILENAME=OUT${ARG1}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})
- exten => s,n,Goto(record)
- exten => s,n(IN),Noop(macro-record-enable IN)
- exten => s,n,Set(CALLFILENAME=${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})
- exten => s,n(record),MixMonitor(${EVAL(${MIXMON_DIR})}${CALLFILENAME}.${MIXMON_FORMAT},,${MIXMON_POST})
- exten=>s,n,Set(CDR(userfield)=${MIXMONITOR_FILENAME})
- exten => s,n,MacroExit()
I modify the recording macro adding the additional line to extensions_override_freepbx.conf
I just added this line exten=>s,n,Set(CDR(userfield)=${MIXMONITOR_FILENAME})
No hay comentarios:
Publicar un comentario