我对星号很陌生,我需要我的服务器来支持WebRTC。据我所知,现在Asterisk中的星号版本是在没有SRTP支持的情况下编译的,这对于WebRTC来说是必要的。
因此,我尝试在我的Ubuntu服务器13.04上使用SRTP编译星号11.5.0。我使用-- with选项执行./配置命令。下面是这个命令:
./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 (v1.4.4)已经用上面提到的选项编译了!我还尝试设置libsrtp的位置,同时配置星号:
./configure --with-crypto --with-ssl --with-srtp=/usr/include/srtp但这改变不了什么。
你能帮我用星号支持WebRTC吗?
UPD:我认为SRTP库中存在一个问题,因为它没有正确地通过runtest : Error 254。他们在rtpw_test.sh中将"RTPW=./rtpw“改为”rtpw=./rtpw“将修复此错误,但不会。
发布于 2013-08-27 19:56:39
您安装了开发头吗?您应该能够在存储库中获得1.4.4,而不必从源代码编译。这就是我所做的,虽然我不是在Ubuntu 13.04。
apt-cache search libsrtp应该产生libsrtp-dev或libsrtp 1-dev或类似的东西吗?
发布于 2020-07-21 10:26:28
在SRTP文件夹中
make uninstall
make clean
./configure CFLAGS=-fPIC --prefix=/usr/local/lib
make
make runtest
make install发布于 2013-07-17 20:28:31
安装Gentoo和带有srtp标志的新兴星号解决了我的问题。任何Ubuntu的解决方案都没有找到,无论是在2天的认真搜索。
https://serverfault.com/questions/523635
复制相似问题