From 3e967af0b5e94f37e4c5fbf5e72077dc2247789e Mon Sep 17 00:00:00 2001 From: markster Date: Thu, 2 Sep 2004 13:52:58 +0000 Subject: 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 --- apps/app_read.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'apps/app_read.c') 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; -- cgit v1.2.3