Merged revisions 281723 via svnmerge from
[asterisk/asterisk.git] / apps / app_readexten.c
index 8049fc9..5e8159b 100644 (file)
@@ -232,7 +232,7 @@ static int readexten_exec(struct ast_channel *chan, const char *data)
                        if (res < 1) {          /* timeout expired or hangup */
                                if (ast_check_hangup(chan)) {
                                        status = "HANGUP";
-                               } else {
+                               } else if (x == 0) {
                                        pbx_builtin_setvar_helper(chan, arglist.variable, "t");
                                        status = "TIMEOUT";
                                }