summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-08-17 01:57:16 +0000
committerMark Spencer <markster@digium.com>2004-08-17 01:57:16 +0000
commit039aad9ff4595f4f8e13fbf2ffd55376d5a79c1d (patch)
tree9967d4cadaf1b9e3cd491bdfefe7197286e09e20 /channels
parenta0b8879af429388965e8d817c6dc501c1950d8e1 (diff)
Merge Lenny's sorcery....
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3614 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
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));