[asterisk-commits] file: branch file/pimp_sip_nat r382086 - /team/file/pimp_sip_nat/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 26 12:15:13 CST 2013


Author: file
Date: Tue Feb 26 12:15:10 2013
New Revision: 382086

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382086
Log:
Only add ICE candidates to the SDP if ICE support is enabled.

Modified:
    team/file/pimp_sip_nat/res/res_sip_sdp_audio.c

Modified: team/file/pimp_sip_nat/res/res_sip_sdp_audio.c
URL: http://svnview.digium.com/svn/asterisk/team/file/pimp_sip_nat/res/res_sip_sdp_audio.c?view=diff&rev=382086&r1=382085&r2=382086
==============================================================================
--- team/file/pimp_sip_nat/res/res_sip_sdp_audio.c (original)
+++ team/file/pimp_sip_nat/res/res_sip_sdp_audio.c Tue Feb 26 12:15:10 2013
@@ -183,7 +183,7 @@
 	media->desc.port_count = 1;
 
 	/* Add ICE attributes and candidates */
-	if ((ice = ast_rtp_instance_get_ice(session->media[AST_SIP_MEDIA_AUDIO].rtp)) &&
+	if (session->endpoint->ice_support && (ice = ast_rtp_instance_get_ice(session->media[AST_SIP_MEDIA_AUDIO].rtp)) &&
 		(candidates = ice->get_local_candidates(session->media[AST_SIP_MEDIA_AUDIO].rtp))) {
 		const char *username, *password;
 		struct ao2_iterator it_candidates;




More information about the asterisk-commits mailing list