From: BJ Weschke Date: Wed, 4 Jan 2006 05:26:03 +0000 (+0000) Subject: Fix the 'if' clause to be true under the right conditions. Bug #6126 X-Git-Tag: 1.4.0-beta1~3085 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6149728a778ee23cc655fac6c55bd404345c9495;p=thirdparty%2Fasterisk.git Fix the 'if' clause to be true under the right conditions. Bug #6126 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7770 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_privacy.c b/apps/app_privacy.c index f5b7281a11..a3d26af336 100644 --- a/apps/app_privacy.c +++ b/apps/app_privacy.c @@ -195,7 +195,7 @@ static int privacy_exec (struct ast_channel *chan, void *data) } /*Got a number, play sounds and send them on their way*/ - if ((retries < maxretries) && res == 1 ) { + if ((retries < maxretries) && !res ) { res = ast_streamfile(chan, "privacy-thankyou", chan->language); if (!res) res = ast_waitstream(chan, "");