diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-01-13 05:06:49 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-01-13 05:06:49 +0000 |
commit | ffebc625bb1c5ef3bb00e6ad6e5dcfcb205ba742 (patch) | |
tree | be46003aaba7ef937c848239bccbef7ff319598b /dsp.c | |
parent | b86b668e72a571b1611a4dd539e3467df2c2418f (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-x | dsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++; } } |