Good day. Please advise. I encountered such a problem. I cannot transmit a DTMF signal during an outgoing call to stop recording. During an incoming call, everything works correctly.
[applicationmap]
pause_recording => *3,self,StopMixMonitor()
resume_recording => *4,self,MixMonitor(${WAV}.wav,a)
If you cannot transmit them, that is an issue for the phone.
If they are not recognized, “self” is probably not referring to the leg on which MixMonitor was run.
Normally you would use Pause, not Stop.
If using SIP and RFC4733, then “rtp set debug on” would show the DTMF arriving. If it doesn’t appear then as @david551 says the problem would be outside of Asterisk.