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

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Oct 2 03:37:41 CDT 2014


Author: mjordan
Date: Thu Oct  2 03:37:27 2014
New Revision: 424336

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=424336
Log:
res/res_pjsip_sdp_rtp: Don't reject offers with declined video streams

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=424336&r1=424335&r2=424336
==============================================================================
--- team/group/asterisk-13-sipit/res/res_pjsip_sdp_rtp.c (original)
+++ team/group/asterisk-13-sipit/res/res_pjsip_sdp_rtp.c Thu Oct  2 03:37:27 2014
@@ -717,14 +717,16 @@
 	RAII_VAR(struct ast_sockaddr *, addrs, NULL, ast_free_ptr);
 	enum ast_media_type media_type = stream_to_media_type(session_media->stream_type);
 
+	/* If port is 0, ignore this media stream */
+	if (!stream->desc.port) {
+		ast_debug(3, "Media stream '%s' is already declined\n", session_media->stream_type);
+		return 0;
+	}
+
 	/* If no type formats have been configured reject this stream */
 	if (!ast_format_cap_has_type(session->endpoint->media.codecs, media_type)) {
+		ast_debug(3, "Endpoint has no codecs for media type '%s', declining stream\n", session_media->stream_type);
 		return 0;
-	}
-
-	/* If port is 0, ignore this media stream */
-	if (!stream->desc.port) {
-		return 1;
 	}
 
 	/* Ensure incoming transport is compatible with the endpoint's configuration */




More information about the svn-commits mailing list