diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-16 23:40:54 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-16 23:40:54 +0000 |
commit | d1d3130af7844c62050667e915829a2d8402b989 (patch) | |
tree | db7b4081632f8b711a5aa8d7bf872f2f8ee8fb57 /main | |
parent | 53baa45b70b617de9a9ceb742f64567110ba7f4c (diff) |
Reverting changes from commits 150298 and 150301 since
I was mistakenly under the assumption that dialplan functions
*always* required that a channel be present. I need to go
home earlier, I think :)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@150304 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/manager.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/main/manager.c b/main/manager.c index 21c76c212..8b10712e8 100644 --- a/main/manager.c +++ b/main/manager.c @@ -1499,10 +1499,7 @@ static int action_getvar(struct mansession *s, const struct message *m) if (varname[strlen(varname) - 1] == ')') { char *copy = ast_strdupa(varname); - if (!c) { - astman_send_error(s, m, "No such channel"); - return 0; - } + ast_func_read(c, copy, workspace, sizeof(workspace)); varval = workspace; } else { |