aboutsummaryrefslogtreecommitdiffstats
path: root/dsp.c
diff options
context:
space:
mode:
authorjim <jim@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-31 16:04:10 +0000
committerjim <jim@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-31 16:04:10 +0000
commitf48d4f750d021765b4d6b1b68108a36b82898238 (patch)
tree2f913772b83fde4f1af5052378bc1d04e8f7c381 /dsp.c
parentf91947fbe68b00682c8465a6b7671ed7a7ca776d (diff)
Complete re-vamp of Radio Repeater application (app_rpt) and VERY minor changes in chan_zap (to allow pseudo-channels to work properly (finally!)) and in dsp.c to allow for super-relaxed DTMF decoding which radio systems need to function properly.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3117 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'dsp.c')
-rwxr-xr-xdsp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dsp.c b/dsp.c
index 774875212..fa66318ed 100755
--- a/dsp.c
+++ b/dsp.c
@@ -123,7 +123,11 @@ static struct progress {
#define FAX_THRESHOLD 8.0e7
#define FAX_2ND_HARMONIC 2.0 /* 4dB */
#define DTMF_NORMAL_TWIST 6.3 /* 8dB */
+#ifdef RADIO_RELAX
+#define DTMF_REVERSE_TWIST ((digitmode & DSP_DIGITMODE_RELAXDTMF) ? 6.5 : 2.5) /* 4dB normal */
+#else
#define DTMF_REVERSE_TWIST ((digitmode & DSP_DIGITMODE_RELAXDTMF) ? 4.0 : 2.5) /* 4dB normal */
+#endif
#define DTMF_RELATIVE_PEAK_ROW 6.3 /* 8dB */
#define DTMF_RELATIVE_PEAK_COL 6.3 /* 8dB */
#define DTMF_2ND_HARMONIC_ROW ((digitmode & DSP_DIGITMODE_RELAXDTMF) ? 1.7 : 2.5) /* 4dB normal */