freeswitch介紹安裝部署(centos6+, win7,win8,win10)
安裝freeswitch
freeswitch:是電話軟交換開源專案, 電話軟交換結合硬體解決方案.即可以跟固話閘道器,無線閘道器等進行電話交換,也可以通過對接系統做到把電話管理起來.自行開發實現電話統計,報表,績效等.
1,支援說明(本人實踐過):
windows支援版本:win7,win8,win10 其他版本也有可能有支援的,只是沒有實踐過.
liunx支援版本:centos6,centos7,centos8,其他版本也有可能有支援的,只是沒有實踐過.
2,建議使用閘道器(本人實踐過):
無線閘道器:三匯SMG無線閘道器
固話閘道器:VOXSTACK閘道器
3,準備工作:
建議用centos6+以上系統
4,原始碼與安裝檔案:
連結: https://pan.baidu.com/s/1IW3nbJVZPscLEKE4J-mHVQ 提取碼: dmya
5,centos6+版本安裝部署:
- 執行命令:vi /etc/yum.repos.d/linuxtech.repo
新增如下內容:
[linuxtech]
name=LinuxTECH
baseurl=http://pkgrepo.linuxtech.net/el6/release/
enabled=1
gpgcheck=1
gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET
- 執行命令:sudo yum install -y http://mirror.centos.org/centos/6/os/x86_64/Packages/libshout-2.2.2-11.el7.x86_64.rpm epel-release
- 執行命令:sudo yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release
- 執行命令:sudo yum install -y git alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel libmpg123-devel libmp3lame-devel db-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
- 執行命令:sudo yum install libvorbis libvorbis-devel libogg libogg-devel
- 執行命令:cd /usr/local/src
- 執行命令:取得freeswitch原始碼,也可以去官方下載.
- 執行命令:cd /usr/local/src/freeswitch
- 執行命令:./bootstrap.sh -j (許可權不夠賦權:chmod -R 777 /usr/local/src/freeswitch )
- 執行命令:./configure --enable-core-odbc-support --enable-zrtp \
--enable-core-pgsql-support \
--enable-static-v8 --disable-parallel-build-v8
- 編輯 vi modules.conf
執行命令:i
#applications/mod_callcenter 、 #say/mod_say_zh #applications/mod_curl 給開放出來
執行命令::wq!
- 執行命令:make
- 執行命令:make -j install
- 執行命令:make -j cd-sounds-install
- 執行命令:make -j cd-moh-install
- 啟動命令:nohup bin/freeswitch -nc &
- 檢視埠:netstat -ntulp |grep freeswitch (檢視是否有:5060,8021埠)
- 關閉命令:pkill -f freeswitch
6,win7+版本安裝部署:
- 安裝:
- 啟動:
7,成功後日志:
8,配置conf:
參考(最上面的下載連結): FreeSWITCH權威指南 PDF電子書