]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 208924 via svnmerge from
authorJeff Peeler <jpeeler@digium.com>
Mon, 27 Jul 2009 01:21:54 +0000 (01:21 +0000)
committerJeff Peeler <jpeeler@digium.com>
Mon, 27 Jul 2009 01:21:54 +0000 (01:21 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

................
  r208924 | jpeeler | 2009-07-26 20:20:37 -0500 (Sun, 26 Jul 2009) | 9 lines

  Merged revisions 208923 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r208923 | jpeeler | 2009-07-26 20:18:31 -0500 (Sun, 26 Jul 2009) | 2 lines

    Fix logic errors from 208746
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@208925 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c
main/translate.c

index 1627b4e79912e7ce35d0c67b042ac747b0189207..4ce92f3d3ae68c065ecc03f8011f098df63d0c0a 100644 (file)
@@ -4013,7 +4013,7 @@ static enum ast_bridge_result iax2_bridge(struct ast_channel *c0, struct ast_cha
                return AST_BRIDGE_FAILED;
        }
        /* Put them in native bridge mode */
-       if ((!flags) & (AST_BRIDGE_DTMF_CHANNEL_0 | AST_BRIDGE_DTMF_CHANNEL_1)) {
+       if (!(flags & (AST_BRIDGE_DTMF_CHANNEL_0 | AST_BRIDGE_DTMF_CHANNEL_1))) {
                iaxs[callno0]->bridgecallno = callno1;
                iaxs[callno1]->bridgecallno = callno0;
        }
index 500d40ff1f156f68ee3d4ad278e02315e6659b16..711a7995cd6283677b9f1a588170a172c2960b2b 100644 (file)
@@ -855,7 +855,7 @@ unsigned int ast_translate_available_formats(unsigned int dest, unsigned int src
           destination format. */
        for (x = 1; src_audio && (x & AST_FORMAT_AUDIO_MASK); x <<= 1) {
                /* if this is not a desired format, nothing to do */
-               if ((!dest) & x)
+               if (!(dest & x))
                        continue;
 
                /* if the source is supplying this format, then
@@ -881,7 +881,7 @@ unsigned int ast_translate_available_formats(unsigned int dest, unsigned int src
           destination format. */
        for (; src_video && (x & AST_FORMAT_VIDEO_MASK); x <<= 1) {
                /* if this is not a desired format, nothing to do */
-               if ((!dest) & x)
+               if (!(dest & x))
                        continue;
 
                /* if the source is supplying this format, then