From: Russell Bryant Date: Thu, 13 Jan 2005 05:06:49 +0000 (+0000) Subject: fix typo in tone detect (bug #3315) X-Git-Tag: 1.0.11.1~273 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a6fb9eef88f89c9c1a3b664902570254b1225158;p=thirdparty%2Fasterisk.git fix typo in tone detect (bug #3315) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4779 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/dsp.c b/dsp.c index 36401aad5a..6053d2c554 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++; } }