diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-03 04:04:11 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-03 04:04:11 +0000 |
commit | 5a4db82130bb99121ba173a713532dd889043014 (patch) | |
tree | 348577ba8bb1cec1170eb756e96941f6a007c8b6 /dsp.c | |
parent | 18821ad06c5f317b3218efbdd302edefe3f1bff2 (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@36724 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'dsp.c')
-rw-r--r-- | dsp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1279,6 +1279,7 @@ int ast_dsp_busydetect(struct ast_dsp *dsp) res = 0; } } +#ifndef BUSYDETECT_TONEONLY /* If we know the expected busy tone silent-period length, check we are in the range */ if (res && (dsp->busy_quietlength > 0)) { if (abs(avgsilence - dsp->busy_quietlength) > (dsp->busy_quietlength*BUSY_PAT_PERCENT/100)) { @@ -1289,6 +1290,7 @@ int ast_dsp_busydetect(struct ast_dsp *dsp) res = 0; } } +#endif #if 1 if (res) ast_log(LOG_DEBUG, "ast_dsp_busydetect detected busy, avgtone: %d, avgsilence %d\n", avgtone, avgsilence); |