当前位置: 首页 > Linux

阿里云Freeswitch部署

时间:2023-04-07 00:28:11 Linux

部署过程在centos7上部署freeswitch,按照官网说明安装如下yuminstall-yhttp://files.freeswitch.org/f...epel-releaseyuminstall-yfreeswitch-config-vanillafreeswitch-lang-freeswitch-sounds-systemctlenable安装freeswitch后,/usr/local/bin下会有一个freeswitch文件,其他可执行文件在/etc/freeswitch下会有相关的conf文件,安装后即可使用freeswitch直接命令启动,或者调用fs_cli-rRS启动。通过测试发现使用freeswitch命令启动可以在窗口输出日志用于错误监控。部署测试时推荐使用该方式确认服务是否正常异常。查看命令行输出,发现启动失败。报错原因是阿里云不支持IPv6。要解决这个错误,需要删除/etc/freeswitch/sip_profiles中关于ipv6的配置文件fs_cli,通过命令netstat-nlp|grepfreeswitch,发现8021端口没有listen,查资料后发现/etc/freeswitch/autoload_configs/event_socket.conf.xml中的listen-ip需要改为0.0.0.0