diff --git a/main/dsp.c b/main/dsp.c index 64329092a3..e89b726b34 100644 --- a/main/dsp.c +++ b/main/dsp.c @@ -1335,11 +1335,13 @@ int ast_dsp_busydetect(struct ast_dsp *dsp) } } #endif +#ifndef BUSYDETECT_TONEONLY #if 1 if (res) { if (option_debug) ast_log(LOG_DEBUG, "ast_dsp_busydetect detected busy, avgtone: %d, avgsilence %d\n", avgtone, avgsilence); } +#endif #endif return res; }