[asterisk-commits] twilson: branch 1.8 r292309 - in /branches/1.8: channels/ res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Oct 19 14:27:36 CDT 2010
Author: twilson
Date: Tue Oct 19 14:27:32 2010
New Revision: 292309
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=292309
Log:
Add sip show peer info about crypto and remove dated comment
This patch adds information about the encryption setting to 'sip show
peers' and removes an out-of-date comment from res_srtp.c and instead
directs users to the proper documentation.
(closes issue #18140)
Reported by: chodorenko
Modified:
branches/1.8/channels/chan_sip.c
branches/1.8/res/res_srtp.c
Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=292309&r1=292308&r2=292309
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Tue Oct 19 14:27:32 2010
@@ -16394,6 +16394,7 @@
ast_cli(fd, " RTP Engine : %s\n", peer->engine);
ast_cli(fd, " Parkinglot : %s\n", peer->parkinglot);
ast_cli(fd, " Use Reason : %s\n", AST_CLI_YESNO(ast_test_flag(&peer->flags[1], SIP_PAGE2_Q850_REASON)));
+ ast_cli(fd, " Encryption : %s\n", AST_CLI_YESNO(ast_test_flag(&peer->flags[1], SIP_PAGE2_USE_SRTP)));
ast_cli(fd, "\n");
peer = unref_peer(peer, "sip_show_peer: unref_peer: done with peer ptr");
} else if (peer && type == 1) { /* manager listing */
@@ -16449,6 +16450,7 @@
astman_append(s, "SIP-Sess-Expires: %d\r\n", peer->stimer.st_max_se);
astman_append(s, "SIP-Sess-Min: %d\r\n", peer->stimer.st_min_se);
astman_append(s, "SIP-RTP-Engine: %s\r\n", peer->engine);
+ astman_append(s, "SIP-Encryption: %s\r\n", ast_test_flag(&peer->flags[1], SIP_PAGE2_USE_SRTP) ? "Y" : "N");
/* - is enumerated */
astman_append(s, "SIP-DTMFmode: %s\r\n", dtmfmode2str(ast_test_flag(&peer->flags[0], SIP_DTMF)));
Modified: branches/1.8/res/res_srtp.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/res/res_srtp.c?view=diff&rev=292309&r1=292308&r2=292309
==============================================================================
--- branches/1.8/res/res_srtp.c (original)
+++ branches/1.8/res/res_srtp.c Tue Oct 19 14:27:32 2010
@@ -32,15 +32,7 @@
<depend>srtp</depend>
***/
-/* The SIP channel will automatically use sdescriptions if received in a SDP offer,
- and res_srtp is loaded. SRTP with sdescriptions key exchange can be activated
- in outgoing offers by setting _SIPSRTP_CRYPTO=enable in extension.conf before executing Dial
-
- The dial fails if the callee doesn't support SRTP and sdescriptions.
-
- exten => 2345,1,Set(_SIPSRTP_CRYPTO=enable)
- exten => 2345,2,Dial(SIP/1001)
-*/
+/* See doc/tex/secure-calls.tex for SRTP usage information */
#include "asterisk.h"
More information about the asterisk-commits
mailing list