Hi,
Am using Asterisk 11.2.1, and am using pause and unpause recording while on the call via features.conf.
My configuration below,
exten => 1063,1,Answer
exten => 1063,n,Set(DYNAMIC_FEATURES=pauseMonitor#unpauseMonitor#startMonitor)
exten => 1063,n,Set(FNAME=callrec_${EXTEN}_${UNIQUEID}GWTEST${EPOCH})
exten => 1063,n,Dial(SIP/1063,20)
exten => 1063,n,Hangup
[macro-recpause]
exten => s,1,Playback(disabled)
exten => s,n,NoOp(Call Paused - Channel=${CHANNEL} BrigdePeer=${BRIDGEPEER})
exten => s,n,StopMonitor
exten => s,n,MacroExit
[macro-recunpause]
exten => s,1,Monitor(wav,${FNAME},m)
exten => s,n,NoOp(Call Unpaused - Channel=${CHANNEL} BrigdePeer=${BRIDGEPEER})
exten => s,n,Playback(enabled)
exten => s,n,MacroExit
in features.conf
pauseMonitor => #1,self/caller,Macro,recpause,monitor-disabled
unpauseMonitor => #3,self/caller,Macro,recunpause,monitor-enabled
when i press #1 in the CLI prompt its showing as monitor is getting stopped, after pressing #3 it saying mixmonitor started, but in the actual voice file i have only the recording after the unpause, not from the beginning.
I also tried to use PauseMonitor with Monitor but it hanging up.
Any comments would be much appreciated.
Thanks.