]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix broken logic (bug #4879)
authorRussell Bryant <russell@russellbryant.com>
Thu, 4 Aug 2005 20:26:36 +0000 (20:26 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 4 Aug 2005 20:26:36 +0000 (20:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6281 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index c5d9c92b42710c31d3e905e1b83ee1d9d6be5d2a..c7b51c19fcdff9f3da0b5b6165eba2a1e710d26f 100755 (executable)
@@ -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);