From: Mark Spencer Date: Mon, 14 Mar 2005 05:51:20 +0000 (+0000) Subject: Fix serious typo (code segment was only enabled with verbose!) X-Git-Tag: 1.2.0-beta1~1084 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e8a912bafe0ebf1a88dabe54cadcbf84ede1e0b;p=thirdparty%2Fasterisk.git Fix serious typo (code segment was only enabled with verbose!) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5178 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx.c b/pbx.c index c90879d00d..bc64dfd97b 100755 --- a/pbx.c +++ b/pbx.c @@ -2303,21 +2303,19 @@ int ast_pbx_run(struct ast_channel *c) ast_cdr_update(c); } } else { - if (option_verbose > 0) { - char *status; - status = pbx_builtin_getvar_helper(c, "DIALSTATUS"); - if (!status) - status = "UNKNOWN"; - if (option_verbose > 2) - ast_verbose(VERBOSE_PREFIX_2 "Auto fallthrough, channel '%s' status is '%s'\n", c->name, status); - if (!strcasecmp(status, "CONGESTION")) - res = pbx_builtin_congestion(c, "10"); - else if (!strcasecmp(status, "CHANUNAVAIL")) - res = pbx_builtin_congestion(c, "10"); - else if (!strcasecmp(status, "BUSY")) - res = pbx_builtin_busy(c, "10"); - goto out; - } + char *status; + status = pbx_builtin_getvar_helper(c, "DIALSTATUS"); + if (!status) + status = "UNKNOWN"; + if (option_verbose > 2) + ast_verbose(VERBOSE_PREFIX_2 "Auto fallthrough, channel '%s' status is '%s'\n", c->name, status); + if (!strcasecmp(status, "CONGESTION")) + res = pbx_builtin_congestion(c, "10"); + else if (!strcasecmp(status, "CHANUNAVAIL")) + res = pbx_builtin_congestion(c, "10"); + else if (!strcasecmp(status, "BUSY")) + res = pbx_builtin_busy(c, "10"); + goto out; } } }