Merge Lenny's sorcery....
authorMark Spencer <markster@digium.com>
Tue, 17 Aug 2004 01:57:16 +0000 (01:57 +0000)
committerMark Spencer <markster@digium.com>
Tue, 17 Aug 2004 01:57:16 +0000 (01:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3614 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 614f3a9..a6783ac 100755 (executable)
@@ -3403,7 +3403,7 @@ static int add_sdp(struct sip_request *resp, struct sip_pvt *p)
                cur = cur->next;
        }
        /* Now send any other common codecs, and non-codec formats: */
-       for (x = 1; x <= (videosupport ? AST_FORMAT_MAX_VIDEO : AST_FORMAT_MAX_AUDIO); x <<= 1) {
+       for (x = 1; x <= ((videosupport && p->vrtp) ? AST_FORMAT_MAX_VIDEO : AST_FORMAT_MAX_AUDIO); x <<= 1) {
                if ((capability & x) && !(alreadysent & x)) {
                        if (debug)
                                ast_verbose("Answering with capability 0x%x(%s)\n", x, ast_getformatname(x));