diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-14 05:51:20 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-14 05:51:20 +0000 |
commit | 8f6fdc1613d6c81f7d6fe30152d98cef2020e1f3 (patch) | |
tree | 6e2f53f63d9940abcc59684a9cbbfe01e1f8f490 /pbx.c | |
parent | d5a14971214b6c5287fda5a865e4087b8475bd94 (diff) |
Fix serious typo (code segment was only enabled with verbose!)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5178 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 28 |
1 files changed, 13 insertions, 15 deletions
@@ -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; } } } |