]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Only set status TIMEOUT, if we have no digits.
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 11 Aug 2010 15:17:20 +0000 (15:17 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 11 Aug 2010 15:17:20 +0000 (15:17 +0000)
(closes issue #15188)
 Reported by: jcovert
 Patches:
       app_readexten.c.patch-1.6.2.8-rc1 uploaded by jcovert (license 551)

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

apps/app_readexten.c

index d5075ede8010a112761c4b9557f9add5a2fbe731..e20dfff1d25e7b5cde187bbb4edb414e26ff74be 100644 (file)
@@ -220,7 +220,7 @@ static int readexten_exec(struct ast_channel *chan, void *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";
                                }