[Asterisk-cvs] asterisk/channels chan_sip.c,1.890,1.891

markster markster
Thu Oct 13 19:02:16 CDT 2005


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

Modified Files:
	chan_sip.c 
Log Message:
Fix the ordering of the sscanfs for SDP parsing (bug #AT&T)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.890
retrieving revision 1.891
diff -u -d -r1.890 -r1.891
--- chan_sip.c	13 Oct 2005 22:03:53 -0000	1.890
+++ chan_sip.c	13 Oct 2005 22:56:53 -0000	1.891
@@ -3400,8 +3400,8 @@
 	ast_set_flag(p, SIP_NOVIDEO);	
 	while ((m = get_sdp_iterate(&iterator, req, "m"))[0] != '\0') {
 		int found = 0;
-		if ((sscanf(m, "audio %d RTP/AVP %n", &x, &len) == 1) ||
-		    (sscanf(m, "audio %d/%d RTP/AVP %n", &x, &y, &len) == 2)) {
+		if ((sscanf(m, "audio %d/%d RTP/AVP %n", &x, &y, &len) == 2) ||
+		    (sscanf(m, "audio %d RTP/AVP %n", &x, &len) == 1)) {
 			found = 1;
 			portno = x;
 			/* Scan through the RTP payload types specified in a "m=" line: */




More information about the svn-commits mailing list