]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Reverting changes from commits 150298 and 150301 since
authorMark Michelson <mmichelson@digium.com>
Thu, 16 Oct 2008 23:40:54 +0000 (23:40 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 16 Oct 2008 23:40:54 +0000 (23:40 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@150304 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index 21c76c212fb9c2003b5647ce770a2e51c0f7b3e0..8b10712e8db9f2cba856ad0ff9a874570a556df3 100644 (file)
@@ -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 {