mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Only print out debug message if the definition that makes the variables shows up was actually defined. (issue #9233 reported by serginuez)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58388 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
dsp.c
2
dsp.c
@@ -1292,8 +1292,10 @@ int ast_dsp_busydetect(struct ast_dsp *dsp)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if 1
|
#if 1
|
||||||
|
#ifndef BUSYDETECT_TONEONLY
|
||||||
if (res)
|
if (res)
|
||||||
ast_log(LOG_DEBUG, "ast_dsp_busydetect detected busy, avgtone: %d, avgsilence %d\n", avgtone, avgsilence);
|
ast_log(LOG_DEBUG, "ast_dsp_busydetect detected busy, avgtone: %d, avgsilence %d\n", avgtone, avgsilence);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user