mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
28
pbx.c
28
pbx.c
@@ -2303,21 +2303,19 @@ int ast_pbx_run(struct ast_channel *c)
|
|||||||
ast_cdr_update(c);
|
ast_cdr_update(c);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (option_verbose > 0) {
|
char *status;
|
||||||
char *status;
|
status = pbx_builtin_getvar_helper(c, "DIALSTATUS");
|
||||||
status = pbx_builtin_getvar_helper(c, "DIALSTATUS");
|
if (!status)
|
||||||
if (!status)
|
status = "UNKNOWN";
|
||||||
status = "UNKNOWN";
|
if (option_verbose > 2)
|
||||||
if (option_verbose > 2)
|
ast_verbose(VERBOSE_PREFIX_2 "Auto fallthrough, channel '%s' status is '%s'\n", c->name, status);
|
||||||
ast_verbose(VERBOSE_PREFIX_2 "Auto fallthrough, channel '%s' status is '%s'\n", c->name, status);
|
if (!strcasecmp(status, "CONGESTION"))
|
||||||
if (!strcasecmp(status, "CONGESTION"))
|
res = pbx_builtin_congestion(c, "10");
|
||||||
res = pbx_builtin_congestion(c, "10");
|
else if (!strcasecmp(status, "CHANUNAVAIL"))
|
||||||
else if (!strcasecmp(status, "CHANUNAVAIL"))
|
res = pbx_builtin_congestion(c, "10");
|
||||||
res = pbx_builtin_congestion(c, "10");
|
else if (!strcasecmp(status, "BUSY"))
|
||||||
else if (!strcasecmp(status, "BUSY"))
|
res = pbx_builtin_busy(c, "10");
|
||||||
res = pbx_builtin_busy(c, "10");
|
goto out;
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user