diff options
author | Mark Spencer <markster@digium.com> | 2004-09-02 13:52:58 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-09-02 13:52:58 +0000 |
commit | b813a5f3faf0b154478ba44771f3fa6de19cd6c3 (patch) | |
tree | 451ce4db20ae2807607ca099e3b4a61a78ca70e1 /apps | |
parent | d952c7ed71dd5a99a3007dec2ee1929d3e1e2748 (diff) |
Fix both app_read and underlying read issue (bug #2352)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-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; |