]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 212067 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Thu, 13 Aug 2009 13:54:42 +0000 (13:54 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 13 Aug 2009 13:54:42 +0000 (13:54 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r212067 | file | 2009-08-13 10:51:04 -0300 (Thu, 13 Aug 2009) | 2 lines

  Check an actual populated variable when seeing if we need to do video or not.
........

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

channels/chan_sip.c

index 3b0df05cad7639a05a04d56e8f8587c076585c4b..ab183daaf65a2329326914d24ed9fa986b989c14 100644 (file)
@@ -8881,7 +8881,7 @@ static enum sip_result add_sdp(struct sip_request *resp, struct sip_pvt *p, int
        }
 
        /* Check if we need video in this call */
-       if (add_audio && (capability & AST_FORMAT_VIDEO_MASK) && !p->novideo) {
+       if (add_audio && (p->jointcapability & AST_FORMAT_VIDEO_MASK) && !p->novideo) {
                if (p->vrtp) {
                        needvideo = TRUE;
                        ast_debug(2, "This call needs video offers!\n");