]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Only consider a T.38-only INVITE compatible if we have both a joint capability betwee...
authorJoshua Colp <jcolp@digium.com>
Wed, 6 Feb 2008 17:59:23 +0000 (17:59 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 6 Feb 2008 17:59:23 +0000 (17:59 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102725 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index d02268e0aebc0bdfdaa909f57c6ff9401d780781..b0ef9bc97e40fa5c664c09ce9ec8f420e201a393 100644 (file)
@@ -5416,7 +5416,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
        }
        if (!newjointcapability) {
                /* If T.38 was not negotiated either, totally bail out... */
-               if (!p->t38.jointcapability) {
+               if (!p->t38.jointcapability || !p->t38.peercapability) {
                        ast_log(LOG_NOTICE, "No compatible codecs, not accepting this offer!\n");
                        /* Do NOT Change current setting */
                        return -1;