]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Directory used the wrong context for delivery of 0- and *- keypresses
authorTilghman Lesher <tilghman@meg.abyt.es>
Sun, 17 Sep 2006 13:54:34 +0000 (13:54 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sun, 17 Sep 2006 13:54:34 +0000 (13:54 +0000)
(according to Directory's own documentation) - Issue 7965

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43072 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_directory.c

index 1358a697815da9774e266e67cce97a22e88c8c2f..b403cae4a1736950c7ad761f68bb1d6650ef5bec 100644 (file)
@@ -426,7 +426,7 @@ static int do_directory(struct ast_channel *chan, struct ast_config *cfg, char *
                return -1;
        }
        if (digit == '0') {
-               if (!ast_goto_if_exists(chan, chan->context, "o", 1) ||
+               if (!ast_goto_if_exists(chan, dialcontext, "o", 1) ||
                    (!ast_strlen_zero(chan->macrocontext) &&
                     !ast_goto_if_exists(chan, chan->macrocontext, "o", 1))) {
                        return 0;
@@ -437,7 +437,7 @@ static int do_directory(struct ast_channel *chan, struct ast_config *cfg, char *
                }
        }       
        if (digit == '*') {
-               if (!ast_goto_if_exists(chan, chan->context, "a", 1) ||
+               if (!ast_goto_if_exists(chan, dialcontext, "a", 1) ||
                    (!ast_strlen_zero(chan->macrocontext) &&
                     !ast_goto_if_exists(chan, chan->macrocontext, "a", 1))) {
                        return 0;