dect
/
asterisk
Archived
13
0
Fork 0

Prepare for removal of DBGet/DBPut manager commands, by allowing Getvar to get functions (Setvar can already set functions)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8078 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2006-01-15 05:50:19 +00:00
parent 103a3594e7
commit 4542518feb
1 changed files with 5 additions and 1 deletions

View File

@ -745,7 +745,11 @@ static int action_getvar(struct mansession *s, struct message *m)
}
}
pbx_retrieve_variable(c, varname, &varval, workspace, sizeof(workspace), NULL);
if (varname[strlen(varname) - 1] == ')') {
varval = ast_func_read(c, varname, workspace, sizeof(workspace));
} else {
pbx_retrieve_variable(c, varname, &varval, workspace, sizeof(workspace), NULL);
}
if (c)
ast_mutex_unlock(&c->lock);