aboutsummaryrefslogtreecommitdiffstats
path: root/dsp.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-13 05:06:49 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-13 05:06:49 +0000
commitffebc625bb1c5ef3bb00e6ad6e5dcfcb205ba742 (patch)
treebe46003aaba7ef937c848239bccbef7ff319598b /dsp.c
parentb86b668e72a571b1611a4dd539e3467df2c2418f (diff)
fix typo in tone detect (bug #3315)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@4779 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'dsp.c')
-rwxr-xr-xdsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dsp.c b/dsp.c
index 36401aad5..6053d2c55 100755
--- a/dsp.c
+++ b/dsp.c
@@ -1308,10 +1308,10 @@ int ast_dsp_busydetect(struct ast_dsp *dsp)
}
#endif
if (avgtone > dsp->historicnoise[x]) {
- if (avgtone - (avgtone / BUSY_PERCENT) <= dsp->historicsilence[x])
+ if (avgtone - (avgtone / BUSY_PERCENT) <= dsp->historicnoise[x])
hittone++;
} else {
- if (avgtone + (avgtone / BUSY_PERCENT) >= dsp->historicsilence[x])
+ if (avgtone + (avgtone / BUSY_PERCENT) >= dsp->historicnoise[x])
hittone++;
}
}