issue #5664
[asterisk/asterisk.git] / pbx.c
diff --git a/pbx.c b/pbx.c
index e9bbb5f..8c66db9 100755 (executable)
--- a/pbx.c
+++ b/pbx.c
@@ -1520,7 +1520,7 @@ static void pbx_substitute_variables_helper_full(struct ast_channel *c, struct v
 
                        workspace[0] = '\0';
 
-                       parse_variable_name(var, &offset, &offset2, &isfunction);
+                       parse_variable_name(vars, &offset, &offset2, &isfunction);
                        if (isfunction) {
                                /* Evaluate function */
                                cp4 = ast_func_read(c, vars, workspace, VAR_BUF_SIZE);