mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30:20 +00:00
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
This commit is contained in:
4
dsp.c
4
dsp.c
@@ -1308,10 +1308,10 @@ int ast_dsp_busydetect(struct ast_dsp *dsp)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (avgtone > dsp->historicnoise[x]) {
|
if (avgtone > dsp->historicnoise[x]) {
|
||||||
if (avgtone - (avgtone / BUSY_PERCENT) <= dsp->historicsilence[x])
|
if (avgtone - (avgtone / BUSY_PERCENT) <= dsp->historicnoise[x])
|
||||||
hittone++;
|
hittone++;
|
||||||
} else {
|
} else {
|
||||||
if (avgtone + (avgtone / BUSY_PERCENT) >= dsp->historicsilence[x])
|
if (avgtone + (avgtone / BUSY_PERCENT) >= dsp->historicnoise[x])
|
||||||
hittone++;
|
hittone++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user