How to enable/disable SRTP in Asterisk?

I wan to know how to enable/disable SRTP in asterisk.

In fact I found 2 parameters:

  1. tlsenable
  1. encryption

what is the good one? what is the good parameter to enable/disable SRTP?

“tlsenable” controls whether TLS signaling is enabled for the SIP channel driver; not SRTP.

“encryption” deals with the encryption of RTP - SRTP.

[quote=“malcolmd”]“tlsenable” controls whether TLS signaling is enabled for the SIP channel driver; not SRTP.

“encryption” deals with the encryption of RTP - SRTP.[/quote]

Thank you