chan_sip: Add TLS and SRTP status to CLI command 'sip show channel'
[asterisk/asterisk.git] / channels / chan_sip.c
index 16a8a55..a9a1379 100644 (file)
@@ -21527,6 +21527,10 @@ static char *sip_show_channel(struct ast_cli_entry *e, int cmd, struct ast_cli_a
                                }
                        }
 
+                       /* add transport and media types */
+                       ast_cli(a->fd, "  Transport:              %s\n", ast_transport2str(cur->socket.type));
+                       ast_cli(a->fd, "  Media:                  %s\n", cur->srtp ? "SRTP" : cur->rtp ? "RTP" : "None");
+
                        ast_cli(a->fd, "\n\n");
 
                        found++;