mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 23:38:23 +00:00
Handle video codecs properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2281 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2692,7 +2692,7 @@ static int add_sdp(struct sip_request *resp, struct sip_pvt *p, struct ast_rtp *
|
||||
cur = cur->next;
|
||||
}
|
||||
/* Now send any other common codecs, and non-codec formats: */
|
||||
for (x = 1; x <= AST_FORMAT_MAX_AUDIO; x <<= 1) {
|
||||
for (x = 1; x <= (videosupport ? AST_FORMAT_MAX_VIDEO : AST_FORMAT_MAX_AUDIO); x <<= 1) {
|
||||
if ((p->jointcapability & x) && !(alreadysent & x)) {
|
||||
if (sipdebug)
|
||||
ast_verbose("Answering with capability %d\n", x);
|
||||
|
||||
Reference in New Issue
Block a user