summaryrefslogtreecommitdiff
path: root/dsp.c
diff options
context:
space:
mode:
authorJim Dixon <telesistant@hotmail.com>2004-05-31 16:04:10 +0000
committerJim Dixon <telesistant@hotmail.com>2004-05-31 16:04:10 +0000
commit8968d5097601da69040b9966f985cf9dfaa1fe91 (patch)
tree2f913772b83fde4f1af5052378bc1d04e8f7c381 /dsp.c
parentb0f9569b5c4007721c216a8080b4dce113ad1fd6 (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: https://origsvn.digium.com/svn/asterisk/trunk@3117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 */