Verify that tls/SRTP crypto is being used with chan_pjsip?

Is there a simple way to verify from within the Asterisk console if tls is being used for signaling and SRTP for the audio streams with chan_pjsip?

I am looking for something like “pjsip show crypto”. A simple way to check the crypto status of active channels, without reading SIP messages or sniffing the traffic.

Is that possible?

Yes, with the CHANNEL function. However, if mission critical, you should capture and analyse the packets.

If you don’t need cleartext transmissions you could just listen on the TLS port only, and enforce SRTP to save yourself the headache.

Have a look at sngrep. It’ll give you a much more organized view of everything. See hep.conf in Asterisk for sending the SIP messages to sngrep.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.