aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-02 13:52:58 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-02 13:52:58 +0000
commit3e967af0b5e94f37e4c5fbf5e72077dc2247789e (patch)
tree451ce4db20ae2807607ca099e3b4a61a78ca70e1 /apps
parente5e591355aee52f232ea50c237ede7f58e8d394b (diff)
Fix both app_read and underlying read issue (bug #2352)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3711 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_read.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/app_read.c b/apps/app_read.c
index 103e85710..988ef8009 100755
--- a/apps/app_read.c
+++ b/apps/app_read.c
@@ -103,9 +103,12 @@ static int read_exec(struct ast_channel *chan, void *data)
if (!res) {
ast_stopstream(chan);
res = ast_app_getdata(chan, filename, tmp, maxdigits, 0);
- if (res > -1)
+ if (res > -1) {
pbx_builtin_setvar_helper(chan, varname, tmp);
- ast_verbose(VERBOSE_PREFIX_3 "User entered '%s'\n", tmp);
+ ast_verbose(VERBOSE_PREFIX_3 "User entered '%s'\n", tmp);
+ } else {
+ ast_verbose(VERBOSE_PREFIX_3 "User entered nothing\n");
+ }
}
LOCAL_USER_REMOVE(u);
return res;