summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2010-08-11 15:20:29 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2010-08-11 15:20:29 +0000
commit1c2f810c631252dd2b77881744e6edd57f868d42 (patch)
treed50b46028cb0c5965320df1bdbffda6c0589ce64
parenta491cac965c0a3c70377a704bdc12c178d1d5baf (diff)
Merged revisions 281723 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ................ r281723 | tilghman | 2010-08-11 10:18:40 -0500 (Wed, 11 Aug 2010) | 14 lines Merged revisions 281722 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........ r281722 | tilghman | 2010-08-11 10:17:20 -0500 (Wed, 11 Aug 2010) | 7 lines Only set status TIMEOUT, if we have no digits. (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/trunk@281726 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--apps/app_readexten.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_readexten.c b/apps/app_readexten.c
index 8049fc949..5e8159b35 100644
--- a/apps/app_readexten.c
+++ b/apps/app_readexten.c
@@ -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";
}