aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_privacy.c
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-04 05:26:03 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-04 05:26:03 +0000
commitc1d7c231172392b4d24291c36f025e5f9d160058 (patch)
treeba62fe3f33f18a261b0fa500036c169b0f9a72fe /apps/app_privacy.c
parent385d29ad6f5ec22151cdfd8d01823b63fed9ed1e (diff)
Fix the 'if' clause to be true under the right conditions. Bug #6126
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7770 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_privacy.c')
-rw-r--r--apps/app_privacy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_privacy.c b/apps/app_privacy.c
index f5b7281a1..a3d26af33 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, "");