[asterisk-commits] file: branch group/media_formats-reviewed-trunk r418614 - /team/group/media_f...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 14 18:35:43 CDT 2014


Author: file
Date: Mon Jul 14 18:35:36 2014
New Revision: 418614

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=418614
Log:
res_pjsip_sdp_rtp: Don't clear all media formats from a direct media capabilities.

Review: https://reviewboard.asterisk.org/r/3786/

Modified:
    team/group/media_formats-reviewed-trunk/res/res_pjsip_sdp_rtp.c

Modified: team/group/media_formats-reviewed-trunk/res/res_pjsip_sdp_rtp.c
URL: http://svnview.digium.com/svn/asterisk/team/group/media_formats-reviewed-trunk/res/res_pjsip_sdp_rtp.c?view=diff&rev=418614&r1=418613&r2=418614
==============================================================================
--- team/group/media_formats-reviewed-trunk/res/res_pjsip_sdp_rtp.c (original)
+++ team/group/media_formats-reviewed-trunk/res/res_pjsip_sdp_rtp.c Mon Jul 14 18:35:36 2014
@@ -99,7 +99,7 @@
 {
 	int i = 0;
 	while (i <= AST_MEDIA_TYPE_TEXT) {
-		if (i != media_type) {
+		if (i != media_type && i != AST_MEDIA_TYPE_UNKNOWN) {
 			ast_format_cap_remove_by_type(caps, i);
 		}
 		i += 1;




More information about the asterisk-commits mailing list