Hello list, Hope you are all doing fine! I have stumbled over some piece of dialplan code in which apparently they were trying to avoid recording the DTMF tones in the wav file. It is really messy and I am not sure if this really works. So after a bit of research I found this comment ( https://community.asterisk.org/t/asterisk-dtmf-record/65040) in which it is said: *"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)"* So my questions are, what are the cases in which Asterisk regenerates the DTMFs? Does it cause the recording to have the tone as well, or is it only transmitted to the other leg without being generated to the recording file? Also, what if one or both legs are RFC2833? From my tests the RFC2833 events never show up in the recording, but I just want to confirm that this is always true. Thanks, Kind regards, Patrick Wakano <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20180501/396f17f1/attachment.html>
On Mon, Apr 30, 2018, at 11:23 PM, Patrick Wakano wrote:> Hello list, > Hope you are all doing fine! > > I have stumbled over some piece of dialplan code in which apparently they > were trying to avoid recording the DTMF tones in the wav file. It is really > messy and I am not sure if this really works. So after a bit of research I > found this comment ( > https://community.asterisk.org/t/asterisk-dtmf-record/65040) in which it is > said: > > *"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)"* > So my questions are, what are the cases in which Asterisk regenerates the > DTMFs? Does it cause the recording to have the tone as well, or is it only > transmitted to the other leg without being generated to the recording file? > Also, what if one or both legs are RFC2833? From my tests the RFC2833 > events never show up in the recording, but I just want to confirm that this > is always true.If properly configured then Asterisk will always strip and regenerate the DTMF tone. You have to purposely misconfigure things to cause it to not get stripped. IE: DTMF is actually inband but you configure it for RFC2833. Since Asterisk wouldn't be listening to the audio stream, it would go right through and get recorded. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Thanks very much for the reply Joshua! So I guess that setting dtmfmode=auto would be the safest choice in order to strip out the DTMFs from the recording, right? Cheers! Patrick Wakano On Tue, 1 May 2018, 19:36 Joshua Colp, <jcolp at digium.com> wrote:> On Mon, Apr 30, 2018, at 11:23 PM, Patrick Wakano wrote: > > Hello list, > > Hope you are all doing fine! > > > > I have stumbled over some piece of dialplan code in which apparently they > > were trying to avoid recording the DTMF tones in the wav file. It is > really > > messy and I am not sure if this really works. So after a bit of research > I > > found this comment ( > > https://community.asterisk.org/t/asterisk-dtmf-record/65040) in which > it is > > said: > > > > *"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)"* > > So my questions are, what are the cases in which Asterisk regenerates the > > DTMFs? Does it cause the recording to have the tone as well, or is it > only > > transmitted to the other leg without being generated to the recording > file? > > Also, what if one or both legs are RFC2833? From my tests the RFC2833 > > events never show up in the recording, but I just want to confirm that > this > > is always true. > > If properly configured then Asterisk will always strip and regenerate the > DTMF tone. You have to purposely misconfigure things to cause it to not get > stripped. IE: DTMF is actually inband but you configure it for RFC2833. > Since Asterisk wouldn't be listening to the audio stream, it would go right > through and get recorded. > > -- > Joshua Colp > Digium, Inc. | Senior Software Developer > 445 Jan Davis Drive NW - Huntsville, AL 35806 - US > Check us out at: www.digium.com & www.asterisk.org > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20180501/5b3665f7/attachment.html>