using Asterisk 20
does anyone have any ideas how I can implement something to pause/stop mix monitor from featues.conf
tried adding this, in a few different iterations, but not able to accomplish my end goal.
in extensions.conf when call enters dial plan
DYNAMIC_FEATURES=mixmon#stopmix
[macro-stoprec]
exten => s,1,StopMixMonitor(${MONITOR_FILENAME}.g722,b)
[macro-callrec]
exten => s,1,Set(MONITOR_FILENAME=${STRFTIME(${EPOCH},%Y%m%d-%H%M%S)}-${CALLERID(num)}-${CHANNEL})
same => n,Playback(beep) ; optional - hear when recording starts
same => n,MixMonitor(${MONITOR_FILENAME}.gsm,b)
featues.conf
mixmon => *7,peer,macro(callrec)
stopmix => *0,peer,macro(stoprec)
Any thoughts on what is going wrong or other ways I maybe able to handle this?