freeswitch安装图形用户界面FreeSwitch Portal
Publish: September 18, 2020 Category: 运维 No Comments
使用侵入性最低的方案。FreeSwitch Portal
freeswitch portal为内置模块,开箱即用(Out of the Box)
安装完成之后只需要启用就可以
fs_cli
load mod_xml_rpc
如果想跟随freeswitch启动则直接操作配置文件具体如下:
#conf/autoload_configs/modules.xml 中去掉如下注释:
<load module="mod_xml_rpc"/>
启用之后再浏览器端访问 http://youdomain:8080/portal,
默认的用户名密码为: freeswitch/works 该密码和用户名可以在 conf/autoload_configs/xml_rpc.conf.xml中修改。
执行结果
freeswitch@iZ2ze4vgyc2dc22jup6dv7Z> load mod_xml_rpc
+OK Reloading XML
+OK
2020-09-14 02:28:51.388607 [CONSOLE] switch_loadable_module.c:1803 Successfully Loaded [mod_xml_rpc]
出现下面错处理:
freeswitch portal error 404 not found
我的版本是1.10.,出现以上错误,通过分析得知是没有找到http静态文件,故直接从github上下载源码。在文档中我们得知htdocs_dir的默认位置 /usr/share/freeswitch/htdocs
cd /usr/share/freeswitch/htdocs
apt install git -y
git clone https://github.com/seven1240/FreeSWITCH-Portal.git portal
查看API帮助
http://youdomain.com:8080/webapi/help