]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 58388 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Thu, 8 Mar 2007 16:07:10 +0000 (16:07 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 8 Mar 2007 16:07:10 +0000 (16:07 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r58388 | file | 2007-03-08 11:04:58 -0500 (Thu, 08 Mar 2007) | 2 lines

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.4@58389 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/dsp.c

index 2992031b4e9f54179f9fb87c5a7c8278b245d8ba..1054c37768ea0be561a365d7ff9d4edd098c303b 100644 (file)
@@ -1334,9 +1334,11 @@ int ast_dsp_busydetect(struct ast_dsp *dsp)
                }
        }
 #endif
+#ifndef BUSYDETECT_TONEONLY
 #if 1
        if (res)
                ast_log(LOG_DEBUG, "ast_dsp_busydetect detected busy, avgtone: %d, avgsilence %d\n", avgtone, avgsilence);
+#endif
 #endif
        return res;
 }