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 */
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)));
<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"