diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-14 19:39:12 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-14 19:39:12 +0000 |
commit | f0424318479863edeed2a6a128e6d1ac926966e3 (patch) | |
tree | 4fd144260e58c9a66d331fc81b46473723452479 /apps/app_amd.c | |
parent | c8ca7d2f263f5161ce1b29ec2c9de835131fc950 (diff) |
Add a massive set of changes for converting to use the ast_debug() macro.
(issue #9957, patches from mvanbaak, caio1982, critch, and dimas)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69327 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_amd.c')
-rw-r--r-- | apps/app_amd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_amd.c b/apps/app_amd.c index 0ab10dd9c..59bc5ab8a 100644 --- a/apps/app_amd.c +++ b/apps/app_amd.c @@ -159,8 +159,9 @@ static void isAnsweringMachine(struct ast_channel *chan, void *data) maximumNumberOfWords = atoi(args.argMaximumNumberOfWords); if (!ast_strlen_zero(args.argSilenceThreshold)) silenceThreshold = atoi(args.argSilenceThreshold); - } else if (option_debug) - ast_log(LOG_DEBUG, "AMD using the default parameters.\n"); + } else { + ast_debug(1, "AMD using the default parameters.\n"); + } /* Now we're ready to roll! */ if (option_verbose > 2) @@ -195,8 +196,7 @@ static void isAnsweringMachine(struct ast_channel *chan, void *data) if (!(f = ast_read(chan))) { if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3 "AMD: HANGUP\n"); - if (option_debug) - ast_log(LOG_DEBUG, "Got hangup\n"); + ast_debug(1, "Got hangup\n"); strcpy(amdStatus, "HANGUP"); break; } |