summaryrefslogtreecommitdiff
path: root/main/cli.c
diff options
context:
space:
mode:
authorDavid M. Lee <dlee@digium.com>2013-08-05 14:35:00 +0000
committerDavid M. Lee <dlee@digium.com>2013-08-05 14:35:00 +0000
commit357b275239d2e461cd2a3dbaf4d091932824abd4 (patch)
tree05e5ad41026a3aebbf79921382c36379eb143382 /main/cli.c
parent2977846f0ab80df788e8d4729d96e560368faaa2 (diff)
Fix res_ari_asterisk load issue
The new res_ari_asterisk.so module presents several config options from asterisk main. Unfortunately, they aren't exported, so the module won't load on Linux. This patch renames the variables, adding the ast_ prefix so they will be exported. Review: https://reviewboard.asterisk.org/r/2737 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396166 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/main/cli.c b/main/cli.c
index 6ca0737ab..dd9f3bcd0 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -854,10 +854,10 @@ static char *handle_showcalls(struct ast_cli_entry *e, int cmd, struct ast_cli_a
} else
return CLI_SHOWUSAGE;
- if (option_maxcalls) {
+ if (ast_option_maxcalls) {
ast_cli(a->fd, "%d of %d max active call%s (%5.2f%% of capacity)\n",
- ast_active_calls(), option_maxcalls, ESS(ast_active_calls()),
- ((double)ast_active_calls() / (double)option_maxcalls) * 100.0);
+ ast_active_calls(), ast_option_maxcalls, ESS(ast_active_calls()),
+ ((double)ast_active_calls() / (double)ast_option_maxcalls) * 100.0);
} else {
ast_cli(a->fd, "%d active call%s\n", ast_active_calls(), ESS(ast_active_calls()));
}
@@ -982,10 +982,10 @@ static char *handle_chanlist(struct ast_cli_entry *e, int cmd, struct ast_cli_ar
if (!concise) {
numchans = ast_active_channels();
ast_cli(a->fd, "%d active channel%s\n", numchans, ESS(numchans));
- if (option_maxcalls)
+ if (ast_option_maxcalls)
ast_cli(a->fd, "%d of %d max active call%s (%5.2f%% of capacity)\n",
- ast_active_calls(), option_maxcalls, ESS(ast_active_calls()),
- ((double)ast_active_calls() / (double)option_maxcalls) * 100.0);
+ ast_active_calls(), ast_option_maxcalls, ESS(ast_active_calls()),
+ ((double)ast_active_calls() / (double)ast_option_maxcalls) * 100.0);
else
ast_cli(a->fd, "%d active call%s\n", ast_active_calls(), ESS(ast_active_calls()));