freeswitch介紹安裝部署(centos6+, win7,win8,win10)

安裝freeswitch
    python

       freeswitch:是電話軟交換開源項目, 電話軟交換結合硬件解決方案.便可以跟固話網關,無線網關等進行電話交換,也能夠經過對接系統作到把電話管理起來.自行開發實現電話統計,報表,績效等.linux

1,支持說明(本人實踐過):
    windows支持版本:win7,win8,win10 其餘版本也有可能有支持的,只是沒有實踐過.
    liunx支持版本:centos6,centos7,centos8,其餘版本也有可能有支持的,只是沒有實踐過.c++

2,建議使用網關(本人實踐過):
    無線網關:三匯SMG無線網關
    固話網關:VOXSTACK網關git

3,準備工做:
    建議用centos6+以上系統sql

4,源碼與安裝文件:bootstrap

連接: https://pan.baidu.com/s/1IW3nbJVZPscLEKE4J-mHVQ 提取碼: dmya windows

5,centos6+版本安裝部署:centos

  • 執行命令:vi /etc/yum.repos.d/linuxtech.repo

添加以下內容:app

[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.NETcurl

 

  • 執行命令: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電子書 下載 完整版.pdf

相關文章
相關標籤/搜索