]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix typo in tone detect (bug #3315)
authorRussell Bryant <russell@russellbryant.com>
Thu, 13 Jan 2005 05:06:49 +0000 (05:06 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 13 Jan 2005 05:06:49 +0000 (05:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4779 65c4cc65-6c06-0410-ace0-fbb531ad65f3

dsp.c

diff --git a/dsp.c b/dsp.c
index 36401aad5adb4d7c89e9f2889553d20418178612..6053d2c55437a41bd1579b1d3dfe421993cfcc77 100755 (executable)
--- 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++;
                }
        }