I want to use customer dilaplan for recording, as i want to change file name with my specific need. What i am doing i have created [macro-record-enable-custom] context in extesions_custom.conf but it not reading that context, it is keep reading it’s own recording dial plan.
How do I force to use custom dialplan for recording? is there any way to do it?
;Local 8 digits
exten => _[2-5]XXXXXXX,1,Progress()
same => n,Set(CALLFILENAME=${CALLERID(num)}.${STRFTIME(${EPOCH},%Y%m%d-%H%M%S)}.${UNIQUEID})
same => n,MixMonitor(${MIXMON_DIR}${CALLFILENAME}.${MIXMON_FORMAT},${MIXMON_POST})
same => n(check),Set(__MON_FMT=${IF($[“${MIXMON_FORMAT}”=“wav49”]?WAV:${MIXMON_FORMAT})})
same => n,Set(CDR(recordingfile)=${CALLFILENAME}.${MON_FMT})
same => n,Dial(Dahdi/1/${EXTEN},60,tr)
same => n,Hangup()