aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-03 03:23:36 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-03 03:23:36 +0000
commitc7bae4c5900fb330ea3125bb184ada50d929cea4 (patch)
treef02f7993b8c907b0937df86b38591f4311a021f7
parent55a7c640ed4e86fc7f5597772d8d071179a350ab (diff)
fix the build with BUSYDETECT_TONEONLY defined (issue #7414)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@36697 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--dsp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dsp.c b/dsp.c
index e204f5360..f23f45b6a 100644
--- a/dsp.c
+++ b/dsp.c
@@ -1279,6 +1279,7 @@ int ast_dsp_busydetect(struct ast_dsp *dsp)
res = 0;
}
}
+#ifndef BUSYDETECT_TONEONLY
/* If we know the expected busy tone silent-period length, check we are in the range */
if (res && (dsp->busy_quietlength > 0)) {
if (abs(avgsilence - dsp->busy_quietlength) > (dsp->busy_quietlength*BUSY_PAT_PERCENT/100)) {
@@ -1289,6 +1290,7 @@ int ast_dsp_busydetect(struct ast_dsp *dsp)
res = 0;
}
}
+#endif
#if 1
if (res)
ast_log(LOG_DEBUG, "ast_dsp_busydetect detected busy, avgtone: %d, avgsilence %d\n", avgtone, avgsilence);