在asterisk 安装目录里执行
./configure
出现以下警告:
I want to compile the asterisk with SRTP library but in configuring the asterisk code, I get this error:
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.
解决方法:in SRTP folder:
make uninstall make clean ./configure CFLAGS=-fPIC --prefix=/usr/local/lib make make runtest make installin Asterisk folder:
cd ../../asterisk/asterisk-11.3.0/ ./configure --with-srtp=/usr/local/lib当我在SRTP目录下运行:make runtest出现:[runtest] Error 254解决方法:在test目录下修改rtpw_test.sh中line 7 : RTPW=rtpw改为: RTPW=./rtpwline 21:killall rtpw 2&>/dev/null 改为:killall rtpw 2>/dev/null参考:http://blog.sina.com.cn/s/blog_7acb2119010199cd.html在执行:make progdocs出现:/bin/bash: line 1: doxygen: command not found make: *** [progdocs] Error 127解决方法:apt-get install doxygen在usr/lib/asterisk/modules/无chan_sip.so解决方案:apt-get install libcurl4-openssl-dev(chan_sip.so依赖 res_crypto.so,而res_crypto.so 依赖openssl)重新./configure make menuselect make install
本文解决Asterisk配置过程中遇到的SRTP库链接错误,包括配置选项、编译步骤及常见错误修正方法。
5万+

被折叠的 条评论
为什么被折叠?



