summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-03-01 16:14:41 +0000
committerMark Spencer <markster@digium.com>2004-03-01 16:14:41 +0000
commita9d042db2cab75e9c21f4d1ca50ead2fd0fbd418 (patch)
treefeaee5e807013b3528b3f9779d12066758441e32 /channels/chan_sip.c
parent4160dfa6e178a4e3af1ddbebde80f5c31b8d72f2 (diff)
Handle video codecs properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2281 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-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 518a6f315..3a0b3d885 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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);