From 039aad9ff4595f4f8e13fbf2ffd55376d5a79c1d Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Tue, 17 Aug 2004 01:57:16 +0000 Subject: Merge Lenny's sorcery.... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3614 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'channels') diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 614f3a964..a6783ac50 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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)); -- cgit v1.2.3