]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix changing channel formats when joint capability changes and there are no audio...
authorJoshua Colp <jcolp@digium.com>
Wed, 24 Jan 2007 17:59:55 +0000 (17:59 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 24 Jan 2007 17:59:55 +0000 (17:59 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@52016 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 7d906e81f5bb7fc05cf692fc88446ceeedfe0dca..cb85dba6bfd620603d997c10b6cb704387f4a6df 100644 (file)
@@ -5171,7 +5171,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
        if (option_debug > 3)
                ast_log(LOG_DEBUG, "We have an owner, now see if we need to change this call\n");
 
-       if (!(p->owner->nativeformats & p->jointcapability & AST_FORMAT_AUDIO_MASK) && (p->jointcapability & AST_FORMAT_AUDIO_MASK)) {
+       if (!(p->owner->nativeformats & p->jointcapability) && (p->jointcapability & AST_FORMAT_AUDIO_MASK)) {
                if (debug) {
                        char s1[BUFSIZ], s2[BUFSIZ];
                        ast_log(LOG_DEBUG, "Oooh, we need to change our audio formats since our peer supports only %s and not %s\n",