PauseMonitor in features proceeds to the next priority

Hello experts,

In an Asterisk 11.3.0, I have configured features.conf like this:

[applicationmap]
pauseMonitor => #7,self/both,PauseMonitor
unpauseMonitor => #8,peer/both,UnPauseMonitor

[MonControl]

pauseMonitor => #7
unpauseMonitor => #8

And in extensions.conf I have:

[local]
exten => _9XXXXXX,1,Set(__DYNAMIC_FEATURES=MonControl)
same => 2,MixMonitor(/usr/monitor/file.gsm,b,Set(ODBC_AddMon()=1,2,3,4))
same => 3,Dial(DAHDI/g0/${EXTEN},45)
same => 4,NoOp(Priority 4)
same => 5,Hangup()

Now when a caller in the local context dials 9123123, and during the call, if he presses (#7), then Asterisk proceeds to the next priority 4 after which it hangs up.

How to allow user to pause monitoring and stay in the call?

Hi

the reason its is umping is that you are using pausemonitor when the dialplan is using mixmonitor

pausemonitor pauses recording when using monitor not mixmonitor

for example

[from-trunk-pci]
exten => _X.,1,Noop(we are fixing the recording for ${EXTEN} from ${CALLERID(num)} so that recording can be stopped and started)
exten => _X.,n,Set(CALLINFILENAME=inbound-${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})
exten => _X.,n,Monitor(wav,${CALLINFILENAME},m)
exten => _X.,n,Set(DYNAMIC_FEATURES=Pausemonitor#UnPauseMonitor#StopMixMonitor)
exten => _X.,n,Goto(from-trunk,${EXTEN},1)