freeswitch安装过程总结记录
2015-11-24 18:05
375 查看
# 升级update
yum update -y
# 安装必要软件
yum -y install subversion autoconf automake libtool gcc-c++ git-core ncurses-devel make expat-devel bison zlib zlib-devel ghostscript gettext-devel
yum -y install nano openssl-devel gnutls-devel libogg-devel libvorbis-devel curl-devel libtiff-devel libjpeg-devel python-devel expat-devel zlib zlib-devel bzip2
# 关闭selinux
/bin/sed -i -e s,'SELINUX=enforcing','SELINUX=disabled', /etc/selinux/config
touch /.autorelabel
# 安装mysql和odbc
yum install -y mysql-server mysql mysql-deve
chkconfig mysqld on #开机启动
service mysqld start
mysql # 进入mysql
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('mysqlpasswd')
# 设置mysql的root用户密码
yum install unixODBC unixODBC-devel mysql-connector-odbc
# 为使freeswitch支持odbc数据库应在configure freeswitch之前安装;
ln /usr/lib64/libmyodbc5.so /usr/lib64/libmyodbc.so
vim /etc/odbcinst.ini # 默认配置可以使用
[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/libmyodbc5.so
Setup = /usr/lib/libodbcmyS.so
Driver64 = /usr/lib64/libmyodbc5.so
Setup64 = /usr/lib64/libodbcmyS.so
FileUsage = 1
Threading
= 0
vim /etc/odbc.ini #配置DSN(即数据源名称)
[freeswitch]
Driver = MySQL
# or /usr/lib64/libmyodbc.so
SERVER = localhost
PORT = 3306
DATABASE = freeswitch
OPTION = 67108864
Socket = /var/lib/mysql/mysql.sock
USER = root
PASSWORD = yourpassword
Threading = 0
odbcinst -j #查看信息
unixODBC 2.2.14
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /root/.odbc.ini
SQLULEN Size.......: 4
SQLLEN Size........: 4
SQLSETPOSIROW Size.: 2
service mysqld restart #
# 安装freeswitch
yum install sqlite-devel pcre-devel speex-devel # 防止出现Package xxxx was not found in the pkg-config search path.
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -ivh http://mirror.cedia.org.ec/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install ldns-devel ldns # 否则 error: You need to either install libldns-dev or disable mod_enum in modules.conf
yum install libedit-devel
./bootstrap.sh
./configure
make
make install
make samples
make sounds-install
make moh-install
useradd -M freeswitch
cd /usr/local/
chown -R freeswitch:freeswitch freeswitch
chmod -R g+w freeswitch
cd /usr/src/freeswitch/build
cp freeswitch.init.redhat /etc/init.d/freeswitch
chmod +x /etc/init.d/freeswitch
cp freeswitch.sysconfig /etc/sysconfig/freeswitch
cat >> /etc/sysconfig/freeswitch <<EOT
PID_FILE=/var/run/freeswitch/freeswitch.pid
FS_USER=freeswitch
FS_FILE=/usr/local/freeswitch/bin/freeswitch
FS_HOME=/usr/local/freeswitch
EOT
chmod 765 /etc/init.d/freeswitch
/sbin/chkconfig --add freeswitch
/sbin/chkconfig freeswitch on
/sbin/chkconfig --list freeswitch
cd /usr/local/bin/
ln -s /usr/local/freeswitch/bin/fs_cli fs_cli
# 安装apache和php
yum install httpd httpd-devel php php-pdo php-mysql
service httpd start
cd /usr/local/freeswitch/conf/dialplan/default
mv 00_ladspa.xml 00_ladspa.noload
mv 00_pizza_demo.xml 00_pizza_demo.noload
mv 01_Talking_Clock.xml 01_Talking_Clock.noload
cd /var/www/html
chown -R apache:apache fusionpbx
cd /usr/local/freeswitch/conf/
chmod 770 `find . -type d`
chmod 660 `find . -type f`
usermod -a -G freeswitch apache
service freeswitch restart
service httpd restart
libtool:
libtool: Version mismatch error. This is libtool 2.4.2 Debian-2.4.2-1ubuntu1, but the
libtool: definition of this LT_INIT comes from libtool 2.4.
运行 autoreconf -ivf 即可
####ubuntu下安装顺序如下###############
sudo apt-get install git-core subversion build-essential autoconf automake libtool libncurses5 libncurses5-dev make libjpeg-dev
sudo apt-get install gawk
update-alternatives --set awk /usr/bin/gawk
sudo apt-get install libsqlite3-dev libcurl4-openssl-dev libldns-dev libedit-dev
./configure
sudo make install
sudo make uhd-sounds-install
sudo make uhd-moh-install
sudo make samples
sudo cp debian/freeswitch-sysvinit.freeswitch.init /etc/init.d/freeswitch
sudo chmod 755 /etc/init.d/freeswitch
#make the init.d/freeswitch script start at boot
sudo update-rc.d -f freeswitch defaults
sudo cp debian/freeswitch-sysvinit.freeswitch.default /etc/default/freeswitch
sudo ln -s /usr/local/freeswitch/bin/freeswitch /usr/local/bin/
sudo ln -s /usr/local/freeswitch/bin/fs_cli /usr/local/bin/
##### 网上搜索到的安装顺序如下:
yum update -y
/bin/sed -i -e s,'SELINUX=enforcing','SELINUX=disabled', /etc/selinux/config
reboot
yum -y install autoconf automake gcc-c++ git-core libjpeg-devel libtool \
make ncurses-devel unixODBC-devel openssl-devel gnutls-devel libogg-devel \
libvorbis-devel curl-devel libtiff-devel libjpeg-devel subversion autoconf \
automake libtool gcc-c++ ncurses-devel make libX11-devel Xvfb alsa-utils \
libXv libXScrnSaver xorg-x11-fonts* alsa-lib libXScrnSaver libtiff-devel \
libjpeg-devel kernel kernel-devel git xz xz-devel mesa-dri-drivers \
alsa-lib fontconfig freetype glibc libgcc \
libICE libSM libstdc++ libX11 libXau libxcb \
libXcursor libXext libXfixes libXi libXinerama \
libXrandr libXrender libXScrnSaver libXv \
sqlite sqlite-devel pcre pcre-devel speex-devel libedit-devel bison patch \
php php-pdo php-mysql
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
yum install ldns ldns-devel -y
yum install http*
yum install mysql*
chkconfig mysqld on
service mysqld start
/usr/bin/mysqladmin -u root password "yourpassword"
yum install unixODBC-devel mysql-connector-odbc
ln /usr/lib64/libmyodbc5.so /usr/lib64/libmyodbc.so
# odbcinst -j
unixODBC 2.2.14
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /root/.odbc.ini
SQLULEN Size.......: 4
SQLLEN Size........: 4
SQLSETPOSIROW Size.: 2
/etc/odbc.ini
[DEFAULT]
Driver = MySQL
[freeswitch]
Driver = MySQL
SERVER = localhost
PORT = 3306
DATABASE = fusionpbx
OPTION = 67108864
Socket = /var/lib/mysql/mysql.sock
cd /usr/src
git clone https://freeswitch.org/stash/scm/fs/freeswitch.git
cd freeswitch
./bootstrap.sh
modules.conf
mod_rtmp
mod_directory
mod_callcenter
mod_tts_commandline
mod_dingaling
mod_flite
mod_shout
mod_pocketsphinx
mod_cidlookup
mod_skypopen
mod_curl
mod_xml_curl
cd /usr/src/freeswitch
./configure
make
make install
make sounds-install
make moh-install
useradd freeswitch
cd /usr/local/
chown -R freeswitch:freeswitch freeswitch
chmod -R g+w freeswitch
cd /usr/src/freeswitch/build
cp freeswitch.init.redhat /etc/init.d/freeswitch
chmod +x /etc/init.d/freeswitch
cp freeswitch.sysconfig /etc/sysconfig/freeswitch
cat >> /etc/sysconfig/freeswitch <<EOT
PID_FILE=/var/run/freeswitch/freeswitch.pid
FS_USER=freeswitch
FS_FILE=/usr/local/freeswitch/bin/freeswitch
FS_HOME=/usr/local/freeswitch
EOT
chmod 765 /etc/init.d/freeswitch
/sbin/chkconfig --add freeswitch
/sbin/chkconfig freeswitch on
/sbin/chkconfig --list freeswitch
cd /usr/local/freeswitch/conf/dialplan/default
mv 00_ladspa.xml 00_ladspa.noload
mv 00_pizza_demo.xml 00_pizza_demo.noload
mv 01_Talking_Clock.xml 01_Talking_Clock.noload
cd /usr/local/bin/
ln -s /usr/local/freeswitch/bin/fs_cli fs_cli
cd /var/www/html
mkdir fusionpbx
svn co http://fusionpbx.googlecode.com/svn/trunk/fusionpbx fusionpbx
cd /var/www/html
chown -R apache:apache fusionpbx
cd /usr/local/freeswitch/conf/
chmod 770 `find . -type d`
chmod 660 `find . -type f`
usermod -a -G freeswitch apache
service freeswitch start
service httpd restart
chkconfig freeswitch on
chkconfig httpd on
yum install monit
service monit start
chkconfig monit on
http://youraddress/fusionpbx
yum update -y
# 安装必要软件
yum -y install subversion autoconf automake libtool gcc-c++ git-core ncurses-devel make expat-devel bison zlib zlib-devel ghostscript gettext-devel
yum -y install nano openssl-devel gnutls-devel libogg-devel libvorbis-devel curl-devel libtiff-devel libjpeg-devel python-devel expat-devel zlib zlib-devel bzip2
# 关闭selinux
/bin/sed -i -e s,'SELINUX=enforcing','SELINUX=disabled', /etc/selinux/config
touch /.autorelabel
# 安装mysql和odbc
yum install -y mysql-server mysql mysql-deve
chkconfig mysqld on #开机启动
service mysqld start
mysql # 进入mysql
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('mysqlpasswd')
# 设置mysql的root用户密码
yum install unixODBC unixODBC-devel mysql-connector-odbc
# 为使freeswitch支持odbc数据库应在configure freeswitch之前安装;
ln /usr/lib64/libmyodbc5.so /usr/lib64/libmyodbc.so
vim /etc/odbcinst.ini # 默认配置可以使用
[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/libmyodbc5.so
Setup = /usr/lib/libodbcmyS.so
Driver64 = /usr/lib64/libmyodbc5.so
Setup64 = /usr/lib64/libodbcmyS.so
FileUsage = 1
Threading
= 0
vim /etc/odbc.ini #配置DSN(即数据源名称)
[freeswitch]
Driver = MySQL
# or /usr/lib64/libmyodbc.so
SERVER = localhost
PORT = 3306
DATABASE = freeswitch
OPTION = 67108864
Socket = /var/lib/mysql/mysql.sock
USER = root
PASSWORD = yourpassword
Threading = 0
odbcinst -j #查看信息
unixODBC 2.2.14
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /root/.odbc.ini
SQLULEN Size.......: 4
SQLLEN Size........: 4
SQLSETPOSIROW Size.: 2
service mysqld restart #
# 安装freeswitch
yum install sqlite-devel pcre-devel speex-devel # 防止出现Package xxxx was not found in the pkg-config search path.
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -ivh http://mirror.cedia.org.ec/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install ldns-devel ldns # 否则 error: You need to either install libldns-dev or disable mod_enum in modules.conf
yum install libedit-devel
./bootstrap.sh
./configure
make
make install
make samples
make sounds-install
make moh-install
useradd -M freeswitch
cd /usr/local/
chown -R freeswitch:freeswitch freeswitch
chmod -R g+w freeswitch
cd /usr/src/freeswitch/build
cp freeswitch.init.redhat /etc/init.d/freeswitch
chmod +x /etc/init.d/freeswitch
cp freeswitch.sysconfig /etc/sysconfig/freeswitch
cat >> /etc/sysconfig/freeswitch <<EOT
PID_FILE=/var/run/freeswitch/freeswitch.pid
FS_USER=freeswitch
FS_FILE=/usr/local/freeswitch/bin/freeswitch
FS_HOME=/usr/local/freeswitch
EOT
chmod 765 /etc/init.d/freeswitch
/sbin/chkconfig --add freeswitch
/sbin/chkconfig freeswitch on
/sbin/chkconfig --list freeswitch
cd /usr/local/bin/
ln -s /usr/local/freeswitch/bin/fs_cli fs_cli
# 安装apache和php
yum install httpd httpd-devel php php-pdo php-mysql
service httpd start
cd /usr/local/freeswitch/conf/dialplan/default
mv 00_ladspa.xml 00_ladspa.noload
mv 00_pizza_demo.xml 00_pizza_demo.noload
mv 01_Talking_Clock.xml 01_Talking_Clock.noload
cd /var/www/html
chown -R apache:apache fusionpbx
cd /usr/local/freeswitch/conf/
chmod 770 `find . -type d`
chmod 660 `find . -type f`
usermod -a -G freeswitch apache
service freeswitch restart
service httpd restart
libtool:
libtool: Version mismatch error. This is libtool 2.4.2 Debian-2.4.2-1ubuntu1, but the
libtool: definition of this LT_INIT comes from libtool 2.4.
运行 autoreconf -ivf 即可
####ubuntu下安装顺序如下###############
sudo apt-get install git-core subversion build-essential autoconf automake libtool libncurses5 libncurses5-dev make libjpeg-dev
sudo apt-get install gawk
update-alternatives --set awk /usr/bin/gawk
sudo apt-get install libsqlite3-dev libcurl4-openssl-dev libldns-dev libedit-dev
./configure
sudo make install
sudo make uhd-sounds-install
sudo make uhd-moh-install
sudo make samples
sudo cp debian/freeswitch-sysvinit.freeswitch.init /etc/init.d/freeswitch
sudo chmod 755 /etc/init.d/freeswitch
#make the init.d/freeswitch script start at boot
sudo update-rc.d -f freeswitch defaults
sudo cp debian/freeswitch-sysvinit.freeswitch.default /etc/default/freeswitch
sudo ln -s /usr/local/freeswitch/bin/freeswitch /usr/local/bin/
sudo ln -s /usr/local/freeswitch/bin/fs_cli /usr/local/bin/
##### 网上搜索到的安装顺序如下:
yum update -y
/bin/sed -i -e s,'SELINUX=enforcing','SELINUX=disabled', /etc/selinux/config
reboot
yum -y install autoconf automake gcc-c++ git-core libjpeg-devel libtool \
make ncurses-devel unixODBC-devel openssl-devel gnutls-devel libogg-devel \
libvorbis-devel curl-devel libtiff-devel libjpeg-devel subversion autoconf \
automake libtool gcc-c++ ncurses-devel make libX11-devel Xvfb alsa-utils \
libXv libXScrnSaver xorg-x11-fonts* alsa-lib libXScrnSaver libtiff-devel \
libjpeg-devel kernel kernel-devel git xz xz-devel mesa-dri-drivers \
alsa-lib fontconfig freetype glibc libgcc \
libICE libSM libstdc++ libX11 libXau libxcb \
libXcursor libXext libXfixes libXi libXinerama \
libXrandr libXrender libXScrnSaver libXv \
sqlite sqlite-devel pcre pcre-devel speex-devel libedit-devel bison patch \
php php-pdo php-mysql
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
yum install ldns ldns-devel -y
yum install http*
yum install mysql*
chkconfig mysqld on
service mysqld start
/usr/bin/mysqladmin -u root password "yourpassword"
yum install unixODBC-devel mysql-connector-odbc
ln /usr/lib64/libmyodbc5.so /usr/lib64/libmyodbc.so
# odbcinst -j
unixODBC 2.2.14
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /root/.odbc.ini
SQLULEN Size.......: 4
SQLLEN Size........: 4
SQLSETPOSIROW Size.: 2
/etc/odbc.ini
[DEFAULT]
Driver = MySQL
[freeswitch]
Driver = MySQL
SERVER = localhost
PORT = 3306
DATABASE = fusionpbx
OPTION = 67108864
Socket = /var/lib/mysql/mysql.sock
cd /usr/src
git clone https://freeswitch.org/stash/scm/fs/freeswitch.git
cd freeswitch
./bootstrap.sh
modules.conf
mod_rtmp
mod_directory
mod_callcenter
mod_tts_commandline
mod_dingaling
mod_flite
mod_shout
mod_pocketsphinx
mod_cidlookup
mod_skypopen
mod_curl
mod_xml_curl
cd /usr/src/freeswitch
./configure
make
make install
make sounds-install
make moh-install
useradd freeswitch
cd /usr/local/
chown -R freeswitch:freeswitch freeswitch
chmod -R g+w freeswitch
cd /usr/src/freeswitch/build
cp freeswitch.init.redhat /etc/init.d/freeswitch
chmod +x /etc/init.d/freeswitch
cp freeswitch.sysconfig /etc/sysconfig/freeswitch
cat >> /etc/sysconfig/freeswitch <<EOT
PID_FILE=/var/run/freeswitch/freeswitch.pid
FS_USER=freeswitch
FS_FILE=/usr/local/freeswitch/bin/freeswitch
FS_HOME=/usr/local/freeswitch
EOT
chmod 765 /etc/init.d/freeswitch
/sbin/chkconfig --add freeswitch
/sbin/chkconfig freeswitch on
/sbin/chkconfig --list freeswitch
cd /usr/local/freeswitch/conf/dialplan/default
mv 00_ladspa.xml 00_ladspa.noload
mv 00_pizza_demo.xml 00_pizza_demo.noload
mv 01_Talking_Clock.xml 01_Talking_Clock.noload
cd /usr/local/bin/
ln -s /usr/local/freeswitch/bin/fs_cli fs_cli
cd /var/www/html
mkdir fusionpbx
svn co http://fusionpbx.googlecode.com/svn/trunk/fusionpbx fusionpbx
cd /var/www/html
chown -R apache:apache fusionpbx
cd /usr/local/freeswitch/conf/
chmod 770 `find . -type d`
chmod 660 `find . -type f`
usermod -a -G freeswitch apache
service freeswitch start
service httpd restart
chkconfig freeswitch on
chkconfig httpd on
yum install monit
service monit start
chkconfig monit on
http://youraddress/fusionpbx
相关文章推荐
- Android ActionBar的基本用法
- ELF Format 笔记(十四)—— 段内容
- android使用vitamio
- Java进阶03 IO基础
- 使用Java发送带附件的附件的示例
- 构建java的webSocket应用
- Mac上将mp4视频做成屏保
- 1014. 福尔摩斯的约会 (20)
- hdu 3018 Ant Trip
- crawler: 常用的一些工具
- 1-1-06:空格分隔输出
- android播放视频
- jQuery-1.9.1源码分析系列(十一) DOM操作
- __stdcall和__cdecl的区别
- Android 自定义TextView 自动换行
- Android开发 Handler引起的内存泄露
- IOS9.0 之后友盟分享详细过程
- 1-1-05:输出保留12位小数的浮点数
- 1-1-04:输出保留3位小数的浮点数
- Android ViewPager动画切换