Only bitmaskify the RTP payload structure for video if an RTP structure exists for...
authorJoshua Colp <jcolp@digium.com>
Thu, 20 Jul 2006 18:42:22 +0000 (18:42 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 20 Jul 2006 18:42:22 +0000 (18:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38030 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index a3959c8..d621e72 100644 (file)
@@ -4845,7 +4845,8 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
 
        /* Now gather all of the codecs that we are asked for: */
        ast_rtp_get_current_formats(newaudiortp, &peercapability, &peernoncodeccapability);
-       ast_rtp_get_current_formats(newvideortp, &vpeercapability, &vpeernoncodeccapability);
+       if (p->vrtp)
+               ast_rtp_get_current_formats(newvideortp, &vpeercapability, &vpeernoncodeccapability);
 
        newjointcapability = p->capability & (peercapability | vpeercapability);
        newpeercapability = (peercapability | vpeercapability);