[asterisk-commits] kmoore: branch kmoore/pimp_sip_srtp r386873 - /team/kmoore/pimp_sip_srtp/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 29 14:30:15 CDT 2013


Author: kmoore
Date: Mon Apr 29 14:30:11 2013
New Revision: 386873

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=386873
Log:
Add some debugging for failures in SRTP processing

Modified:
    team/kmoore/pimp_sip_srtp/res/res_sip_sdp_rtp.c

Modified: team/kmoore/pimp_sip_srtp/res/res_sip_sdp_rtp.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/pimp_sip_srtp/res/res_sip_sdp_rtp.c?view=diff&rev=386873&r1=386872&r2=386873
==============================================================================
--- team/kmoore/pimp_sip_srtp/res/res_sip_sdp_rtp.c (original)
+++ team/kmoore/pimp_sip_srtp/res/res_sip_sdp_rtp.c Mon Apr 29 14:30:11 2013
@@ -513,6 +513,7 @@
 	/* check the stream for the required crypto attribute */
 	attr = pjmedia_sdp_media_find_attr2(stream, "crypto", NULL);
 	if (!attr) {
+		ast_debug(1, "Failed to find crypto attribute\n");
 		return -1;
 	}
 
@@ -536,6 +537,7 @@
 	}
 
 	if (ast_sdp_crypto_process(session_media->rtp, session_media->srtp, crypto_str)) {
+		ast_debug(1, "Failed to process crypto attribute\n");
 		return -1;
 	}
 
@@ -559,6 +561,7 @@
 	/* Ensure incoming transport is compatible with the endpoint's configuration */
 	incoming_encryption = check_endpoint_media_transport(session->endpoint, stream);
 	if (incoming_encryption == AST_SIP_MEDIA_TRANSPORT_INVALID) {
+		ast_debug(1, "Transport in SDP does not match endpoint configuration\n");
 		return -1;
 	}
 




More information about the asterisk-commits mailing list