diff --git a/apps/app_read.c b/apps/app_read.c index 988ef8009e54b32bbc1312eca09416c5d9e6a7fb..e915138457fcf064ec369ea59890e8ffc75f111d 100755 --- a/apps/app_read.c +++ b/apps/app_read.c @@ -106,8 +106,9 @@ static int read_exec(struct ast_channel *chan, void *data) if (res > -1) { pbx_builtin_setvar_helper(chan, varname, tmp); ast_verbose(VERBOSE_PREFIX_3 "User entered '%s'\n", tmp); + res = 0; } else { - ast_verbose(VERBOSE_PREFIX_3 "User entered nothing\n"); + ast_verbose(VERBOSE_PREFIX_3 "User disconnected\n"); } } LOCAL_USER_REMOVE(u);