]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Hmm. What is that keyword?? Let me see... Wait... Maybe... Ahh! OOPS!
authorOlle Johansson <oej@edvina.net>
Fri, 7 Apr 2006 18:52:23 +0000 (18:52 +0000)
committerOlle Johansson <oej@edvina.net>
Fri, 7 Apr 2006 18:52:23 +0000 (18:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18342 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 73028d3dfb7202eaf4396edddc60e5f49f5a381d..7b2d58a3d48c5d73687a2e310362f93dbe8ebfe1 100644 (file)
@@ -12112,7 +12112,7 @@ static struct ast_channel *sip_request_call(const char *type, int format, void *
        char *dest = data;
 
        oldformat = format;
-       if ((format &= ((AST_FORMAT_MAX_AUDIO << 1) - 1))) {
+       if (!(format &= ((AST_FORMAT_MAX_AUDIO << 1) - 1))) {
                ast_log(LOG_NOTICE, "Asked to get a channel of unsupported format %s while capability is %s\n", ast_getformatname(oldformat), ast_getformatname(global_capability));
                *cause = AST_CAUSE_BEARERCAPABILITY_NOTAVAIL;   /* Can't find codec to connect to host */
                return NULL;