Hi, I want to enable WebRTC.
I have followed https://wiki.asterisk.org/wiki/display/AST/Configuring+Asterisk+for+WebRTC+Clients and https://wiki.asterisk.org/wiki/display/AST/WebRTC+tutorial+using+SIPML5
On the last step, in Asterisk, when I am performing a call in my browser, I have these logs :
[Oct 14 11:01:42] ERROR[24464]: res_rtp_asterisk.c:2079 ast_rtp_dtls_set_configuration: SRTP support module is not loaded or available. Try loading res_srtp.so.
[Oct 14 11:01:42] ERROR[24464]: res_pjsip_sdp_rtp.c:925 setup_dtls_srtp: Attempted to set an invalid DTLS-SRTP configuration on RTP instance '0x7f45a4033780'
So, I think I need to enable the res_srtp.so module, that I don’t have, because I didn’t enabled it, in the menuselect, I found that it depends on srtp(E) (E = external ?).
After a little search, I found (maybe I am wrong) that I need to enable srtp on pjsip ? So I tried to define the variable PJPROJECT_CONFIGURE_OPTS for the configure script like so :
./configure --exec-prefix=/rdd2/programs/asterisk/$asterisk_version --prefix=/rdd2/programs/asterisk/$asterisk_version --with-jansson-bundled --with-ssl PJPROJECT_CONFIGURE_OPTS="--with-external-srtp=plip"
This result in this strange behaviour :
[pjproject] Rebuilding
[pjproject] Configuring with --with-external-srtp=plip --prefix=/opt/pjproject --disable-speex-codec --disable-speex-aec --disable-bcg729 --disable-gsm-codec --disable-ilbc-codec --disable-l16-codec --disable-g722-codec --disable-g7221-codec --disable-opencore-amr --disable-silk --disable-opus --disable-video --disable-v4l2 --disable-sound --disable-ext-sound --disable-sdl --disable-libyuv --disable-ffmpeg --disable-openh264 --disable-ipp --disable-libwebrtc --without-external-pa --without-external-srtp --disable-resample --disable-g711-codec --enable-epoll
It is at the same time enabled and disabled ?
Do I have to add srtp for webrtc ? is it the right way to do so ?
I am using Asterisk v17.4.0
Thanks.