Monitor file from mixmon in AMI as CDR custom field

Hello everyone.
Im trying to get monitor file variable created by mixmonitor being visible in CDR AMI console.
Is there a way to assign it not to one extention, but to all extentions i have? Something similar to this:

exten => _X.,n,Set(CDR(userfield)=audio:${CALLFILENAME}.${MIXMON_FORMAT})

freebpx ver 14.0.10.3, asterisk 16.3.0

Thx everyone, i found solution myself.
edited context macro-hangupcall with override in /etc/asterisk/extensions_override_freepbx.conf

[macro-hangupcall]
include => macro-hangupcall-custom
exten => s,1(start),GotoIf($[“${USE_CONFIRMATION}”=“” | “${RINGGROUP_INDEX}”=“” | “${CHANNEL}”!=“${UNIQCHAN}”]?theend)
exten => s,n(delrgi),Noop(Deleting: RG/${RINGGROUP_INDEX}/${CHANNEL} ${DB_DELETE(RG/${RINGGROUP_INDEX}/${CHANNEL})})
exten => s,n(theend),ExecIf($[“${ONETOUCH_RECFILE}”!=“” & “${CDR(recordingfile)}”=“”]?Set(CDR(recordingfile)=${ONETOUCH_RECFILE}))
exten => s,n,Noop(${CDR(dstchannel)} montior file= ${MIXMONITOR_FILENAME})
exten => s,n,GotoIf($[“${CDR(dstchannel)}” = “” | “${MIXMONITOR_FILENAME}” = “”]?skipagi)
exten => s,n,AGI(attendedtransfer-rec-restart.php,${CDR(dstchannel)},${MIXMONITOR_FILENAME})
exten => s,n,Set(CDR(userfield)=${MIXMONITOR_FILENAME})
exten => s,n(skipagi),Hangup
exten => s,n,MacroExit()

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