No SRTP module loaded

Hello all, I hope will be fine. I have this issue.

No SRTP module loaded, can’t setup SRTP session

I validate and it´s not has installed res_srtp.so

rasterisk -x “module show like res_srtp.so”
Unable to set high priority
Module Description Use Count Status Support Level
0 modules loaded

I am using 13.29.2, DAHDI Version: 3.1.0 and libpri-1.6.0

I found this information about libsrtp but I don´t know secure what version I have to use to this scenary or if a totall reinstalation of vicidial(asterisk) is better.
https://github.com/cisco/libsrtp
https://sourceforge.net/projects/srtp/files/srtp/

Asterisk 13.29.2 is coming up on two years beyond end of life, and three years since the end of mainstream support.

DAHDI and PRI support are irrelevant to SRTP, but the SIP channel driver is.

I believe there can be problems with SRTP modules, if you don’t have chan_pjsip loaded, and you should be using that, rather than chan_sip, as the latter will be removed in next year’s release.

None of the messages you have provided points to libsrtp being missing.

If res_srtp.so is present, run ldd against it to see if it has missing load time dependencies. If it not present, and you built asterisk yourself, rum make menuselect, check it is enabled, and, otherwise, check the listed missing dependencies.

This es the ldd output

ldd /usr/sbin/asterisk
** linux-vdso.so.1 => (0x00007ffed0cdb000)**
** libasteriskssl.so.1 => /lib64/libasteriskssl.so.1 (0x00007f02296ba000)**
** libxml2.so.2 => /lib64/libxml2.so.2 (0x00007f0229350000)**
** libz.so.1 => /lib64/libz.so.1 (0x00007f022913a000)**
** libdl.so.2 => /lib64/libdl.so.2 (0x00007f0228f36000)**
** libsqlite3.so.0 => /lib64/libsqlite3.so.0 (0x00007f0228c81000)**
** libssl.so.10 => /lib64/libssl.so.10 (0x00007f0228a0f000)**
** libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f02285ac000)**
** libjansson.so.4 => /lib64/libjansson.so.4 (0x00007f022839f000)**
** libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f022819a000)**
** libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f0227f63000)**
** librt.so.1 => /lib64/librt.so.1 (0x00007f0227d5b000)**

When I run make menuconfig res_srtp.so is not selectable on the field

That’s an ldd against asterisk, not against the library.

I take it that res_srtp.so has not been built.

Somewhere near the bottom of the screen, there should be a list of failed dependencies for anything that won’t select in make menuselect.

Not found

find / -executable -type f | while read line; do ldd $line; done | grep libsrtp.so*
ldd: salió con estado de salida desconocido (139)
ldd: salió con estado de salida desconocido (139)
ldd: salió con estado de salida desconocido (139)

I tested this in other asterisk and work fine

Wrong file. Over-complicated search.

find / -name res_srtp.so | xargs ldd

or

find / -name res_srtp.so -exec ldd '{}' \;

Or simply ldd /usr/lib/asterisk/modules/res_srtp.so
assuming the default asterisk.conf.

Result not sucefully
ldd /usr/lib/asterisk/modules/res_srtp.so
ldd: /usr/lib/asterisk/modules/res_srtp.so: No existe el fichero o el directorio

What version of libsrtp can use?

Why do you think you need librsrtp?

The configure script seems to be able to accept both libsrtp and libsrtp2, but none of the diagnostics you have provided so far mention libsrtp. I suspect the menuselect missing dependency list will, but you haven’[t provided that.

This script, in the source distribution, should install all the, potentially, required libraries, on common Linux distributions: asterisk/install_prereq at master · asterisk/asterisk · GitHub

Result of configure with srtp

./configure --enable-srtp

imagen

Result of menuselect

imagen

srtp need external dependency

image

This is what I was trying to get to.

Have you installed the relevant modules indicated in the install_prereq script?

The solution to see res_libsrt from menuselect is

yum install -y openssl libsrtp libsrtp-devel

and after reinstall asterisk.

Thank you for your help

1 Like

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