如何安装Asterisk SRTP支持?

我对Asterisk比较陌生,我需要我的服务器来支持WebRTC。 据我所知,Asterisk Now中的Asterisk版本是在没有SRTP支持的情况下编译的,这对于WebRTC是必要的。

所以,我尝试在Ubuntu服务器13.04上使用SRTP编译Asterisk 11.5.0。 我使用–with-srtp选项执行./configure命令。 这是这个命令:

./configure --with-crypto --with-ssl --with-srtp 

但是我得到一个警告:

 checking for the ability of -lsrtp to be linked in a shared object... no configure: WARNING: *** configure: WARNING: *** libsrtp could not be linked as a shared object. configure: WARNING: *** Try compiling libsrtp manually. Configure libsrtp configure: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr configure: WARNING: *** replacing /usr with the prefix of your choice. configure: WARNING: *** After re-installing libsrtp configure: WARNING: *** configure script. configure: WARNING: *** configure: WARNING: *** If you do not need SRTP support re-run configure configure: WARNING: *** with the --without-srtp option. 

我的libsrtp(v 1.4.4)已经编译了上面提到的选项! 我也尝试设置libsrtp的位置,同时configurationAsterisk:

 ./configure --with-crypto --with-ssl --with-srtp=/usr/include/srtp 

但是这并没有改变。

你能帮助我在Asterisk的WebRTC支持吗?

UPD:我认为在SRTP库中存在一个问题,因为它没有正确传递runtest:错误254.他们写道,在rtpw_test.sh中将“RTPW = rtpw”改为“RTPW = ./ rtpw”将会修复这个错误,但事实并非如此。

你安装了开发头文件吗? 您应该能够在版本库中获取1.4.4,而不必从源代码编译。 这就是我所做的,虽然我不在Ubuntu 13.04上。

 apt-cache search libsrtp 

应该有希望产生libsrtp-dev或libsrtp1-dev或这些行的东西

用srtp标志安装Gentoo和新兴的Asterisk解决了我的问题。 任何针对Ubuntu的解决scheme都不会被发现,无论经过两天的认真search。