[Asterisk-cvs] asterisk/channels chan_mgcp.c,1.70,1.71

markster at lists.digium.com markster at lists.digium.com
Tue Aug 3 13:14:52 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory localhost.localdomain:/tmp/cvs-serv6421/channels

Modified Files:
	chan_mgcp.c 
Log Message:
Don't offer codecs not allowed on a reinvite


Index: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- chan_mgcp.c	3 Aug 2004 06:31:20 -0000	1.70
+++ chan_mgcp.c	3 Aug 2004 17:00:54 -0000	1.71
@@ -1930,7 +1930,7 @@
 	}
 	snprintf(local, sizeof(local), "p:20");
 	for (x=1;x<= AST_FORMAT_MAX_AUDIO; x <<= 1) {
-		if (capability & x) {
+		if (p->capability & x) {
 			snprintf(tmp, sizeof(tmp), ", a:%s", ast_rtp_lookup_mime_subtype(1, x));
 			strncat(local, tmp, sizeof(local) - strlen(local) - 1);
 		}




More information about the svn-commits mailing list