aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/app_directory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c
index 9e51bf2d4..a3dda4f17 100644
--- a/apps/app_directory.c
+++ b/apps/app_directory.c
@@ -578,11 +578,11 @@ static int do_directory(struct ast_channel *chan, struct ast_config *vmcfg, stru
}
if (digit == '0' && !goto_exten(chan, dialcontext, "o")) {
- return 0;
+ return digit;
}
if (digit == '*' && !goto_exten(chan, dialcontext, "a")) {
- return 0;
+ return digit;
}
ext[0] = digit;