Issue with loading res_srtp.so module

Hi,

I am trying to use Asterisk for WebRTC. when sending message, i am getting following error on CLI.

CLI>
== Setting global variable ‘SIPDOMAIN’ to ‘asterisk.org
[Nov 12 15:53:42] ERROR[30585]: res_rtp_asterisk.c:2085 ast_rtp_dtls_set_configuration: SRTP support module is not loaded or available. Try loading res_srtp.so.
[Nov 12 15:53:42] ERROR[30585]: res_pjsip_sdp_rtp.c:901 setup_dtls_srtp: Attempted to set an invalid DTLS-SRTP configuration on RTP instance ‘0x7f4990023860’
CLI>

and when trying to enable module res_srtp.so manually, then getting following error:

CLI> module load res_srtp.so
Unable to load module res_srtp.so
Command ‘module load res_srtp.so’ failed.
[Nov 12 15:58:18] ERROR[30538]: loader.c:281 module_load_error: Error loading module ‘res_srtp.so’: /usr/lib64/asterisk/modules/res_srtp.so: undefined symbol: crypto_policy_set_aes_cm_128_hmac_sha1_32
CLI>

Any pointer for error “crypto_policy_set_aes_cm_128_hmac_sha1_32” will help.

Thanks
Abhishek Mishra

It probably means you have a wrong version of libsrtp

Hi David,
Thanks for response.
Yes, we are using CentOs 7, which comes with default libsrtp.1.4.4 as latest available version.
Do we need the higher version of libsrtp? if so, what is the recommended version for Asterisk 17.0.0.?

Thanks

At least 1.5.4 (Asterisk 15): [SOLVED] Correct libsrtp version - Asterisk 15.x & Ubuntu 16.04 It is conceivable that 17 needs something higher.

you can download it from this site - https://github.com/cisco/libsrtp/releases