dect
/
asterisk
Archived
13
0
Fork 0

Adding check of option_debug

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@27436 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
oej 2006-05-16 19:20:50 +00:00
parent b852e3bf01
commit e132feb5d2
1 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,8 @@ static int asyncgoto_exec(struct ast_channel *chan, void *data)
goto chanquit;
}
ast_log(LOG_DEBUG, "Attempting async goto (%s) to %s|%s|%d\n", args.channel, S_OR(context, chan2->context), S_OR(exten, chan2->exten), prio);
if (option_debug > 1)
ast_log(LOG_DEBUG, "Attempting async goto (%s) to %s|%s|%d\n", args.channel, S_OR(context, chan2->context), S_OR(exten, chan2->exten), prio);
if (ast_async_goto_if_exists(chan2, S_OR(context, chan2->context), S_OR(exten, chan2->exten), prio))
ast_log(LOG_WARNING, "%s failed for %s\n", app, args.channel);