diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2006-01-15 05:50:19 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2006-01-15 05:50:19 +0000 |
commit | 417d6b1793055226ffe478022a204382af548ce2 (patch) | |
tree | 15b9ed35e74dd98006a96594052eef52cb4ba4d3 /manager.c | |
parent | 9702fac4f8b06049db8f058f9f7bc85e72f92da5 (diff) |
Prepare for removal of DBGet/DBPut manager commands, by allowing Getvar to get functions (Setvar can already set functions)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'manager.c')
-rw-r--r-- | manager.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |