[asterisk-commits] oej: branch oej/blackberry-a-rtcp-sdp-support-1.8 r402911 - /team/oej/blackbe...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Nov 20 09:28:40 CST 2013


Author: oej
Date: Wed Nov 20 09:28:38 2013
New Revision: 402911

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=402911
Log:
Hmm

Modified:
    team/oej/blackberry-a-rtcp-sdp-support-1.8/channels/chan_sip.c

Modified: team/oej/blackberry-a-rtcp-sdp-support-1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/blackberry-a-rtcp-sdp-support-1.8/channels/chan_sip.c?view=diff&rev=402911&r1=402910&r2=402911
==============================================================================
--- team/oej/blackberry-a-rtcp-sdp-support-1.8/channels/chan_sip.c (original)
+++ team/oej/blackberry-a-rtcp-sdp-support-1.8/channels/chan_sip.c Wed Nov 20 09:28:38 2013
@@ -10062,18 +10062,18 @@
 	char *tmp;
 	unsigned int port = 0;
 
-	if (strncasecmp(a, "rtcp",4)) {
-		return found;
-	}
-
-	tmp = strrchr(a, ':');
-	if (tmp) {
-		tmp++;
-		port = (unsigned int) atoi(tmp);
-		if (port > 0) {
-			ast_debug(2, "-- RTCP port set to %d (a=rtcp) \n", port);
-			*rtcpport = port;
-			found = TRUE;
+	if (!strncasecmp(a, "rtcp", 4)) {
+		ast_debug(2, "-- RTCP attribute found - %s\n", a);
+
+		tmp = strrchr(a, ':');
+		if (tmp) {
+			tmp++;
+			port = (unsigned int) atoi(tmp);
+			if (port > 0) {
+				ast_debug(2, "-- RTCP port set to %d (a=rtcp) \n", port);
+				*rtcpport = port;
+				found = TRUE;
+			}
 		}
 	}
 	return found;




More information about the asterisk-commits mailing list