1.安装宝塔

yum install -y wget && wget -O install.sh&& sh install.sh

2.破解宝塔

升级到宝塔专业版

wget -O update.sh h&& 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 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]

5.配置freeswitch

上传zip包到/root/

解压

WX:kelaile520

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

03-08 03:23