1.安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
2.破解宝塔
升级到宝塔专业版
wget -O update.sh http://download.bt.cn/install/update_pro.sh && bash update.sh pro
运行
echo > /www/server/panel/data/userInfo.json
然后重启你的面板
/etc/init.d/bt restart
3.登陆宝塔,安装环境
php7.0 nginx mysql
4.安装freeswitch
yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release
yum install -y git alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel e2fsprogs-devel flite-devel g722_1-devel gcc-c++ gdbm-devel gnutls-devel ilbc2-devel ldns-devel libcodec2-devel libcurl-devel libedit-devel libidn-devel libjpeg-devel libmemcached-devel libogg-devel libsilk-devel libsndfile-devel libtheora-devel libtiff-devel libtool libuuid-devel libvorbis-devel libxml2-devel lua-devel lzo-devel mongo-c-driver-devel ncurses-devel net-snmp-devel openssl-devel opus-devel pcre-devel perl perl-ExtUtils-Embed pkgconfig portaudio-devel postgresql-devel python26-devel python-devel soundtouch-devel speex-devel sqlite-devel unbound-devel unixODBC-devel wget which yasm zlib-devel
yum install unixODBC-devel -y
yum install mysql-connector-odbc -y
yum install libshout-devel mpg123-devel lame-devel -y](https://img-blog.csdnimg.cn/20200719123251712.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0FJX3d4XzMzMDc2MjMxNzI=,size_16,color_FFFFFF,t_70#pic_center)
5.配置freeswitch
上传zip包到/root/
没有压缩包的WX:3307623172(备注:csdn)
解压
mv -f freeswitch /usr/local/
ln -s /usr/local/freeswitch/bin/freeswitch /usr/local/bin/freeswitch
ln -s /usr/local/freeswitch/bin/fs_cli /usr/local/bin/fs_cli
6.安装 smartivr
cd
unzip install.zip
cd install
cp -r smartivr da2server /var/
cd /var/smartivr
chmod +x bin/smartivr
chmod +x bin/gender
chmod +x aiui/aiui
chmod +x iflytek/iflytek
chmod +x cgi/cgi
cd /var/da2server
chmod +x daserver
chmod +x libcrypto.so.1.0.0
chmod +x libjsoncpp.so.0
chmod +x libPocoData.so.60
chmod +x libPocoDataSQLite.so.60
chmod +x libPocoFoundation.so.60
cp libcrypto.so.1.0.0 libjsoncpp.so.0 libPocoData.so.60 libPocoDataSQLite.so.60 libPocoFoundation.so.60 /usr/lib64/
cp ~/install/libda2.so /usr/local/freeswitch/lib/
7.搭建网站
8.创建数据库
robot
telrobot
ln -s /www/wwwroot/你的IP/uploads/ /var/smartivr/