I have two applicationsmap to record calls:
exten => 999,1,Set(__DYNAMIC_FEATURES=InPauseMonitor#InUnpauseMonitor)
InPauseMonitor => *5,peer/both,Macro,recpause
InUnpauseMonitor => *4,peer/both,Macro,recunpause
The operation is as follows, the user dials * 4 to start recording and * 5 to end it and send it to his email. The problem is that sometimes it works but sometimes not, the DTMF arrives but the application does not run. In the same call I have seen that pressing * 4 executes the macro that starts the recording but when * 5 is marked the DTMF reaches Asterisk but does not execute the applicationmap.