freeswitch 升级mod_enum模块依赖 ldns,避免异常拨号导致的crash

2019-03-07 09:39:32   工作备份

 

freeswitch 升级mod_enum模块依赖 ldns,避免异常拨号导致的crash

  1. wget http://www.openssl.org/source/openssl-1.1.0c.tar.gz
  2. wget http://www.nlnetlabs.nl/downloads/ldns/ldns-1.7.0.tar.gz
  3. ./config --prefix=/usr/local/bin/openssl-1.1.0c/openssl --openssldir=/usr/local/bin/openssl-1.1.0c/ssl
  4. ./configure --prefix=/usr/local/bin/ldns-1.7.0 --with-ssl=/usr/local/bin/openssl-1.1.0c/openssl
  5. //查看mod_enum模块的依赖 ldd /usr/local/freeswitch/mod/mod_enum.so
  6. libldns.so.1 => /lib64/libldns.so.1 (0x00007f66862ac000)
  7. cd /usr/local/bin/ldns-1.7.0/lib
  8. ln -s libldns.so.2.0.0 libldns.so.1
  9. 添加环境变量
  10. vim /etc/profile
  11. PATH=/usr/local/bin/openssl-1.1.0c/openssl/bin:$PATH
  12. LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/bin/openssl-1.1.0c/openssl/lib
  13. LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/bin/ldns-1.7.0/lib
  14. export PATH LD_LIBRARY_PATH
  15. //环境变量生效
  16. source /etc/profile
  17. openssl version 查看版本是否升级
  18. 重启freeswitch 重新查看依赖