Reset detection on fax level over average power, it indicates resonance of

filter. This accounts for most fax misdetections.


git-svn-id: http://yate.null.ro/svn/yate/trunk@1340 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2007-05-25 20:32:25 +00:00
parent b6f5e45674
commit dab0935905
1 changed files with 6 additions and 0 deletions

View File

@ -336,6 +336,12 @@ void ToneConsumer::checkFax()
{
if (m_fax.value() < m_pwr*THRESHOLD2_REL_FAX)
return;
if (m_fax.value() > m_pwr) {
DDebug(&plugin,DebugNote,"Overshoot on %s, signal=%f, total=%f",
m_id.c_str(),m_fax.value(),m_pwr);
init();
return;
}
DDebug(&plugin,DebugInfo,"Fax detected on %s, signal=%f, total=%f",
m_id.c_str(),m_fax.value(),m_pwr);
// prepare for new detection