aboutsummaryrefslogtreecommitdiffstats
path: root/dsp.c
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-03 04:04:11 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-03 04:04:11 +0000
commit5a4db82130bb99121ba173a713532dd889043014 (patch)
tree348577ba8bb1cec1170eb756e96941f6a007c8b6 /dsp.c
parent18821ad06c5f317b3218efbdd302edefe3f1bff2 (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@36724 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'dsp.c')
-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);