[asterisk-commits] mjordan: branch group/asterisk-13-sipit r424149 - /team/group/asterisk-13-sip...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 30 01:57:06 CDT 2014


Author: mjordan
Date: Tue Sep 30 01:57:00 2014
New Revision: 424149

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=424149
Log:
res/res_pjsip_sdp_rtp: Ignore declined streams

They aren't contributing to the conversation.

Modified:
    team/group/asterisk-13-sipit/res/res_pjsip_sdp_rtp.c

Modified: team/group/asterisk-13-sipit/res/res_pjsip_sdp_rtp.c
URL: http://svnview.digium.com/svn/asterisk/team/group/asterisk-13-sipit/res/res_pjsip_sdp_rtp.c?view=diff&rev=424149&r1=424148&r2=424149
==============================================================================
--- team/group/asterisk-13-sipit/res/res_pjsip_sdp_rtp.c (original)
+++ team/group/asterisk-13-sipit/res/res_pjsip_sdp_rtp.c Tue Sep 30 01:57:00 2014
@@ -721,6 +721,11 @@
 		return 0;
 	}
 
+	/* If port is 0, ignore this media stream */
+	if (!stream->desc.port) {
+		return 0;
+	}
+
 	/* Ensure incoming transport is compatible with the endpoint's configuration */
 	if (!session->endpoint->media.rtp.use_received_transport &&
 		check_endpoint_media_transport(session->endpoint, stream) == AST_SIP_MEDIA_TRANSPORT_INVALID) {
@@ -1050,6 +1055,10 @@
 		return 1;
 	}
 
+	if (!local_stream->desc.port || !remote_stream->desc.port) {
+		return 1;
+	}
+
 	/* Ensure incoming transport is compatible with the endpoint's configuration */
 	if (!session->endpoint->media.rtp.use_received_transport &&
 		check_endpoint_media_transport(session->endpoint, remote_stream) == AST_SIP_MEDIA_TRANSPORT_INVALID) {




More information about the asterisk-commits mailing list