Skip to content

Commit fbaf74b

Browse files
committed
pbx_variables: add missing ASTSBINDIR variable
Every config variable in the directories section of asterisk.conf currently has a counterpart built-in variable containing the value of the config option, except for the last one, astsbindir, which should have an ASTSBINDIR variable. However, the actual corresponding ASTSBINDIR variable is missing in pbx_variables.c. This adds the missing variable so that all the config options have their corresponding variable. ASTERISK-29847 #close Change-Id: I36006faf471825b36ebc8aa5e87a3bcb38d446fc
1 parent bc59b66 commit fbaf74b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/pbx_variables.c

+2
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,8 @@ const char *ast_str_retrieve_variable(struct ast_str **str, ssize_t maxlen, stru
350350
s = ast_config_AST_RUN_DIR;
351351
} else if (!strcmp(var, "ASTLOGDIR")) {
352352
s = ast_config_AST_LOG_DIR;
353+
} else if (!strcmp(var, "ASTSBINDIR")) {
354+
s = ast_config_AST_SBIN_DIR;
353355
} else if (!strcmp(var, "ENTITYID")) {
354356
ast_eid_to_str(workspace, sizeof(workspace), &ast_eid_default);
355357
s = workspace;

0 commit comments

Comments
 (0)