From: Russell Bryant Date: Thu, 4 Aug 2005 20:26:36 +0000 (+0000) Subject: fix broken logic (bug #4879) X-Git-Tag: 1.0.11.1~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=150fc177cd24d623876fe3afafedc37694dedda4;p=thirdparty%2Fasterisk.git fix broken logic (bug #4879) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6281 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index c5d9c92b42..c7b51c19fc 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -346,7 +346,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu /* Ignore going off hook */ break; case -1: - if (!outgoing->ringbackonly || !outgoing->musiconhold) { + if (!(outgoing->ringbackonly || outgoing->musiconhold)) { if (option_verbose > 2) ast_verbose( VERBOSE_PREFIX_3 "%s stopped sounds\n", o->chan->name); ast_indicate(in, -1);