[Asterisk-cvs] asterisk/channels chan_sip.c,1.301,1.302

markster at lists.digium.com markster at lists.digium.com
Mon Mar 1 11:24:27 CST 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv11229/channels

Modified Files:
	chan_sip.c 
Log Message:
Handle video codecs properly


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.301
retrieving revision 1.302
diff -u -d -r1.301 -r1.302
--- chan_sip.c	25 Feb 2004 01:16:45 -0000	1.301
+++ chan_sip.c	1 Mar 2004 16:14:41 -0000	1.302
@@ -2692,7 +2692,7 @@
 		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);	




More information about the svn-commits mailing list