Merged revisions 150304 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Thu, 16 Oct 2008 23:41:16 +0000 (23:41 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 16 Oct 2008 23:41:16 +0000 (23:41 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r150304 | mmichelson | 2008-10-16 18:40:54 -0500 (Thu, 16 Oct 2008) | 6 lines

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: https://origsvn.digium.com/svn/asterisk/trunk@150305 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index c8a8a8d..ce21757 100644 (file)
@@ -1805,10 +1805,7 @@ static int action_getvar(struct mansession *s, const struct message *m)
        }
 
        if (varname[strlen(varname) - 1] == ')') {
-               if (!c) {
-                       astman_send_error(s, m, "No such channel");
-                       return 0;
-               }
+
                ast_func_read(c, (char *) varname, workspace, sizeof(workspace));
                varval = workspace;
        } else {