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:
parent
103a3594e7
commit
4542518feb
|
@ -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);
|
||||
|
|
Reference in New Issue