remove the need to have the BUSYDETECT routine defined in the CFLAGS unless

you want to use one other than the default


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2005-07-25 21:57:14 +00:00
parent 6596f8496e
commit 829a14ed07
2 changed files with 5 additions and 1 deletions

View File

@@ -78,7 +78,7 @@ DESTDIR=
BUSYDETECT = #-DBUSYDETECT BUSYDETECT = #-DBUSYDETECT
# Improved busydetect routine, comment the previous one if you use this one # Improved busydetect routine, comment the previous one if you use this one
BUSYDETECT+= -DBUSYDETECT_MARTIN BUSYDETECT+= #-DBUSYDETECT_MARTIN
# Detect the busy signal looking only at tone lengths # Detect the busy signal looking only at tone lengths
# For example if you have 3 beeps 100ms tone, 100ms silence separated by 500 ms of silence # For example if you have 3 beeps 100ms tone, 100ms silence separated by 500 ms of silence
BUSYDETECT+= #-DBUSYDETECT_TONEONLY BUSYDETECT+= #-DBUSYDETECT_TONEONLY

4
dsp.c
View File

@@ -151,6 +151,10 @@ static struct progress {
#define BELL_MF_RELATIVE_PEAK 12.6 /* 11dB */ #define BELL_MF_RELATIVE_PEAK 12.6 /* 11dB */
#endif #endif
#if !defined(BUSYDETECT_MARTIN) && !defined(BUSYDETECT) && !defined(BUSYDETECT_TONEONLY) && !defined(BUSYDETECT_COMPARE_TONE_AND_SILENCE)
#define BUSYDETECT_MARTIN
#endif
typedef struct { typedef struct {
float v2; float v2;
float v3; float v3;