diff options
Diffstat (limited to 'apps/app_dumpchan.c')
-rw-r--r-- | apps/app_dumpchan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_dumpchan.c b/apps/app_dumpchan.c index 17948af9a..37e040e9b 100644 --- a/apps/app_dumpchan.c +++ b/apps/app_dumpchan.c @@ -141,8 +141,8 @@ static int dumpchan_exec(struct ast_channel *chan, void *data) pbx_builtin_serialize_variables(chan, &vars); serialize_showchan(chan, info, sizeof(info)); - if (level > 0) - ast_verb(level, "\nDumping Info For Channel: %s:\n%s\nInfo:\n%s\nVariables:\n%s%s\n", chan->name, line, info, vars->str, line); + if (option_verbose >= level) + ast_verbose("\nDumping Info For Channel: %s:\n%s\nInfo:\n%s\nVariables:\n%s%s\n", chan->name, line, info, vars->str, line); return 0; } |