]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Only display inband DTMF warning if inband DTMF detection is enabled.
authorRussell Bryant <russell@russellbryant.com>
Thu, 5 May 2011 22:11:19 +0000 (22:11 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 5 May 2011 22:11:19 +0000 (22:11 +0000)
(closes issue #18901)
Reported by: irroot

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@317429 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/dsp.c

index bab6198d104a524c64d87a0c1414f82fb3ed6eec..4c7644458b8222fdf9b8212ee874a74d27720646 100644 (file)
@@ -1544,6 +1544,9 @@ struct ast_dsp *ast_dsp_new(void)
 void ast_dsp_set_features(struct ast_dsp *dsp, int features)
 {
        dsp->features = features;
+       if (!(features & DSP_FEATURE_DIGIT_DETECT)) {
+               dsp->display_inband_dtmf_warning = 0;
+       }
 }
 
 void ast_dsp_free(struct ast_dsp *dsp)