aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-14 05:51:20 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-14 05:51:20 +0000
commit8f6fdc1613d6c81f7d6fe30152d98cef2020e1f3 (patch)
tree6e2f53f63d9940abcc59684a9cbbfe01e1f8f490 /pbx.c
parentd5a14971214b6c5287fda5a865e4087b8475bd94 (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-xpbx.c28
1 files changed, 13 insertions, 15 deletions
diff --git a/pbx.c b/pbx.c
index c90879d00..bc64dfd97 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;
}
}
}