I am using Monitor because i need the recording in two separate channels. After recording i will mix the two legs and convert this to mp3. Now for my future purpose i need to extract the DTMF tone that had pressed by the caller from the recording file. But now i cant hear any DTMF sound in my recording. How can i include The DTMF sound in recording file when using Monitor().?
You can’t change dtmfmode from just one end. This option is to deal with cases where the remote end isn’t actually using the method that was agreed at the start of the call, or you want to force the sending of in band audio tones.
Also, on further thought, Asterisk will convert even in band DTMF to out of band internally and delete the original tone from the media stream. I don’t think you can do what you want and and still have Asterisk recognize DTMF.