Merge Lenny's sorcery....

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3614 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2004-08-17 01:57:16 +00:00
parent a0b8879af4
commit 039aad9ff4
1 changed files with 1 additions and 1 deletions

View File

@ -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));