summaryrefslogtreecommitdiff
path: root/res/ari/resource_asterisk.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 /res/ari/resource_asterisk.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 'res/ari/resource_asterisk.c')
-rw-r--r--res/ari/resource_asterisk.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/res/ari/resource_asterisk.c b/res/ari/resource_asterisk.c
index 88f8d35cd..6f2eb8027 100644
--- a/res/ari/resource_asterisk.c
+++ b/res/ari/resource_asterisk.c
@@ -99,7 +99,7 @@ void ast_ari_get_asterisk_info(struct ast_variable *headers,
" s: { s: s, s: s } }",
"name", ast_config_AST_SYSTEM_NAME,
- "default_language", defaultlanguage,
+ "default_language", ast_defaultlanguage,
"setid",
"user", ast_config_AST_RUN_USER,
@@ -107,19 +107,19 @@ void ast_ari_get_asterisk_info(struct ast_variable *headers,
res |= ast_json_object_set(json, "config", config);
- if (option_maxcalls) {
+ if (ast_option_maxcalls) {
res |= ast_json_object_set(config, "max_channels",
- ast_json_integer_create(option_maxcalls));
+ ast_json_integer_create(ast_option_maxcalls));
}
- if (option_maxfiles) {
+ if (ast_option_maxfiles) {
res |= ast_json_object_set(config, "max_open_files",
- ast_json_integer_create(option_maxfiles));
+ ast_json_integer_create(ast_option_maxfiles));
}
- if (option_maxload) {
+ if (ast_option_maxload) {
res |= ast_json_object_set(config, "max_load",
- ast_json_real_create(option_maxload));
+ ast_json_real_create(ast_option_maxload));
}
}