diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-02 13:52:58 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-02 13:52:58 +0000 |
commit | 3e967af0b5e94f37e4c5fbf5e72077dc2247789e (patch) | |
tree | 451ce4db20ae2807607ca099e3b4a61a78ca70e1 /apps/app_read.c | |
parent | e5e591355aee52f232ea50c237ede7f58e8d394b (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/app_read.c')
-rwxr-xr-x | apps/app_read.c | 7 |
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; |