Issue with loading module


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

== Setting global variable ‘SIPDOMAIN’ to ‘
[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
[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’

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

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

Any pointer for error “crypto_policy_set_aes_cm_128_hmac_sha1_32” will help.

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.?


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 -