[asterisk-commits] oej: branch oej/pinefrog-1.4 r386833 - in /team/oej/pinefrog-1.4: channels/ m...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 29 06:27:51 CDT 2013


Author: oej
Date: Mon Apr 29 06:27:48 2013
New Revision: 386833

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=386833
Log:
Fix various outstanding issues

Modified:
    team/oej/pinefrog-1.4/channels/chan_sip.c
    team/oej/pinefrog-1.4/main/rtp.c

Modified: team/oej/pinefrog-1.4/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/pinefrog-1.4/channels/chan_sip.c?view=diff&rev=386833&r1=386832&r2=386833
==============================================================================
--- team/oej/pinefrog-1.4/channels/chan_sip.c (original)
+++ team/oej/pinefrog-1.4/channels/chan_sip.c Mon Apr 29 06:27:48 2013
@@ -14102,12 +14102,9 @@
 {
 	struct ast_rtp_quality *qual;
 	char *rtpqstring = NULL;
-	int qosrealtime = ast_check_realtime("rtpqos");
 	unsigned int duration;	/* Duration in secs */
  	int readtrans = FALSE, writetrans = FALSE;
 
-	memset(&qual, sizeof(qual), 0);
-  
 	if (p && p->owner) {
 		struct ast_channel *bridgepeer = ast_bridged_channel(p->owner);
 		if (bridgepeer) {
@@ -14221,7 +14218,7 @@
 	   the quality report structure in the PVT and let the function that kills the pvt store the stuff in the
 	   monitor thread instead.
 	 */
-	if (reporttype == 1 {
+	if (reporttype == 1) {
 		if (type == SDP_AUDIO) {  /* Audio */
 			p->audioqual = ast_calloc(sizeof(struct ast_rtp_quality), 1);
 			(* p->audioqual) = *qual;
@@ -16881,7 +16878,7 @@
 		all = ast_rtp_get_quality(p->vrtp);
 		qos = ast_rtp_get_qualdata(p->vrtp);
 	} else {
-		ast_log(LOG_WARNING, "Unrecognized stream '%s in call to %s'\n", args.typecname, funcname);
+		ast_log(LOG_WARNING, "Unrecognized stream '%s in call to %s'\n", args.type, funcname);
 		return -1;
 		
 	}

Modified: team/oej/pinefrog-1.4/main/rtp.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/pinefrog-1.4/main/rtp.c?view=diff&rev=386833&r1=386832&r2=386833
==============================================================================
--- team/oej/pinefrog-1.4/main/rtp.c (original)
+++ team/oej/pinefrog-1.4/main/rtp.c Mon Apr 29 06:27:48 2013
@@ -1208,9 +1208,9 @@
 				ast_verbose("   Received an SDES from %s:%d - Total length %d (%d bytes)\n", ast_inet_ntoa(rtp->rtcp->them.sin_addr), ntohs(rtp->rtcp->them.sin_port), length-i, ((length-i)*4) - 6);
 			}
 			while (j < length * 4) {
-				sdestype = (int) *sdes;
+				sdestype = (uint8_t) *sdes;
 				sdes++;
-				sdeslength = (int) *sdes;
+				sdeslength = (uint8_t) *sdes;
 				sdes++;
 				if (rtcp_debug_test_addr(&sin)) {
 					ast_verbose(" --- SDES Type %u, Length %u Curj %d)\n", sdestype, sdeslength, j);
@@ -1218,6 +1218,9 @@
 				switch (sdestype) {
 				case SDES_CNAME:
 					if (!ast_strlen_zero(rtp->rtcp->theircname)) {
+						if (sdeslength > sizeof(rtp->rtcp->theircname)) {
+							sdeslength = sizeof(rtp->rtcp->theircname) - 1;
+						}
 						if (strncmp(rtp->rtcp->theircname, sdes, sdeslength)) {
 							ast_log(LOG_WARNING, "New RTP stream received (new RTCP CNAME for session. Old name: %s\n", rtp->rtcp->theircname);
 						}




More information about the asterisk-commits mailing list