[Asterisk-cvs] asterisk/channels chan_sip.c,1.292.2.11,1.292.2.12

markster at lists.digium.com markster at lists.digium.com
Mon Mar 1 11:25:08 CST 2004


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

Modified Files:
      Tag: v1-0_stable
	chan_sip.c 
Log Message:
Handle video formats properly when allow=all (bug #1047)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.292.2.11
retrieving revision 1.292.2.12
diff -u -d -r1.292.2.11 -r1.292.2.12
--- chan_sip.c	27 Feb 2004 16:06:48 -0000	1.292.2.11
+++ chan_sip.c	1 Mar 2004 16:15:22 -0000	1.292.2.12
@@ -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