Asterisk DTMF record

Hello,

I’m using Asterisk 13. Actually I have two registered users 101 and 102.

[code][general]
port=5060
binaddr=0.0.0.0
disallow=all
allow=ulaw
dtmfmode=inband
relaxdtmf=yes

[101]
type=peer
host=dynamic
secret=101
context=incoming

[102]
type=peer
host=dynamic
secret=102
context=incoming
mailbox=102@default[/code]

The selected mode for DTMF tones is inband. I would like to record calls between these users including not only audio from microphone but also DTMF tones. That is needed for my research showing how acoustic signal is able to degrade tones. I tried to do that by using Monitor() application, MixMonitor() and Record() [the last one not working]. So I tried several configurations of extensions.conf:
1.

[incoming] exten =>_102,1,MixMonitor(record.wav) exten => _102,n,Dial(SIP/102,3) exten => _102,n,Answer exten => _102,n,Wait(1) exten => _102,n,Hangup()
2.

exten =>_102,1,Answer()
exten => _102,n,Wait(1)
exten => _102,n,Monitor(wav)
exten => _102,n,Hangup()

exten => _102,1,Dial(SIP/102,3)
exten => _102,n,Record(name.wav,30,x)
exten => _102,n,Answer
exten => _102,n,Wait(1)
exten => _102,n,Hangup()
3.

exten => _102,1,Dial(SIP/102,3)
exten => _102,n,Answer
exten => _102,n,Monitor(wav)
exten => _102,n,Wait(1)
exten => _102,n,Hangup()

These applications except Record() record calls with only signal from microphone. Is there any possibility to record calls with DTMF tones ?

Without purposely configuring Asterisk to not support DTMF on the devices then no. Asterisk strips the DTMF from the audio stream when configured for inband, so internal stuff can react to the DTMF and so the other side does not hear the tone unless they are using inband (in which case it is regenerated).

1 Like