[asterisk-commits] file: branch file/sha256-a-harsh-reality r417184 - /team/file/sha256-a-harsh-...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 24 08:13:35 CDT 2014


Author: file
Date: Tue Jun 24 08:13:29 2014
New Revision: 417184

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=417184
Log:
Print the reason string when DTLS failure occurs.

Modified:
    team/file/sha256-a-harsh-reality/res/res_rtp_asterisk.c

Modified: team/file/sha256-a-harsh-reality/res/res_rtp_asterisk.c
URL: http://svnview.digium.com/svn/asterisk/team/file/sha256-a-harsh-reality/res/res_rtp_asterisk.c?view=diff&rev=417184&r1=417183&r2=417184
==============================================================================
--- team/file/sha256-a-harsh-reality/res/res_rtp_asterisk.c (original)
+++ team/file/sha256-a-harsh-reality/res/res_rtp_asterisk.c Tue Jun 24 08:13:29 2014
@@ -1746,8 +1746,9 @@
 		len = SSL_read(ssl, buf, len);
 
 		if ((len < 0) && (SSL_get_error(ssl, len) == SSL_ERROR_SSL)) {
-			ast_log(LOG_ERROR, "DTLS failure occurred on RTP instance '%p', terminating\n",
-				instance);
+			unsigned long error = ERR_get_error();
+			ast_log(LOG_ERROR, "DTLS failure occurred on RTP instance '%p' due to reason '%s', terminating\n",
+				instance, ERR_reason_error_string(error));
 			return -1;
 		}
 




More information about the asterisk-commits mailing list