diff --git a/apps/app_dial.c b/apps/app_dial.c
index 5b4d967c9f14c3bac3f459cd63759da89f236aeb..affdeea8bf5db39718c4f8db5d6c46789668837b 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -287,7 +287,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
 				*to=-1;
 				return NULL;
 			}
-			if (f && (f->frametype == AST_FRAME_DTMF) && allowdisconnect &&
+			if (f && (f->frametype == AST_FRAME_DTMF) && *allowdisconnect &&
 				(f->subclass == '*')) {
 			    if (option_verbose > 3)
 				ast_verbose(VERBOSE_PREFIX_3 "User hit %c to disconnect call.\n", f->subclass);