Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install freeswitch 1.6.17

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to install freeswitch 1.6.17. I hope you will get something after reading this article. Let's discuss it together.

Download the necessary dependent files first

Wget http://downloads.xiph.org/releases/opus/opus-1.1.4.tar.gzwget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gzwget http://files.freeswitch.org/freeswitch-releases/freeswitch-1.6.17.tar.xzmkdir cd_soundscd cd_soundswget http://files.freeswitch.org/releases/sounds/freeswitch-sounds-en-us-callie-8000-1.0.50.tar.gzwget http : / / files.freeswitch.org/releases/sounds/freeswitch-sounds-en-us-callie-16000-1.0.50.tar.gzwget http://files.freeswitch.org/releases/sounds/freeswitch-sounds-en-us-callie-32000-1.0.50.tar.gzwget http://files.freeswitch.org/releases/sounds/freeswitch-sounds-en-us-callie-48000-1.0.50.tar.gzwget http://files.freeswitch.org/releases/sounds/freeswitch- Sounds-music-8000-1.0.50.tar.gzwget http://files.freeswitch.org/releases/sounds/freeswitch-sounds-music-16000-1.0.50.tar.gzwget http://files.freeswitch.org/releases/sounds/freeswitch-sounds-music-32000-1.0.50.tar.gzwget http://files.freeswitch.org/releases/sounds/freeswitch-sounds-music-48000-1.0.50.tar.gz

Download Zoiper as a test Freeswitch, easy to use and free!

Https://www.zoiper.com/en/voip-softphone/download/zoiper3?cid=home-dlb

How to place the downloaded files?-- directory file structure tree, and then execute the installation script

Chunli@ubuntu:~$ tree install_freeswitch_2017.05.01-21-23/install_freeswitch_2017.05.01-21-23 / ├── cd_sounds │ ├── freeswitch-sounds-en-us-callie-16000-1.0.50.tar.gz │ ├── freeswitch-sounds-en-us-callie-32000-1.0.50.tar.gz │ ├── freeswitch-sounds-en-us-callie-48000-1.0.50.tar. Gz │ ├── freeswitch-sounds-en-us-callie-8000-1.0.50.tar.gz │ ├── freeswitch-sounds-music-16000-1.0.50.tar.gz │ ├── freeswitch-sounds-music-32000-1.0.50.tar.gz │ ├── freeswitch-sounds-music-48000-1.0.50.tar.gz │ └── freeswitch-sounds-music-8000-1.0.50.tar.gz ├── freeswitch-1.6.17.tar.xz ├── install_on_CentOS_6.5.sh ├── install_on_ubuntu14.04.sh ├── opus-1.1.4.tar.gz └── yasm-1.3.0.tar.gz1 directory 13 fileschunli@ubuntu:~$

CentOS 6.5x86 executes the following script based on Basic Server,root users:

Chunli@CentOS- > 14 freeswitch installs $cat install_on_CentOS_6.5.sh #! / bin/bash#CentOS 6.5x86 Basic serverif [0-ne `id-u`] then echo "You are not root user!" Echo "Don't use sudo!" Echo "should use'su -'" exitfiWorkDir= `pwd`yum install-y gccyum install-y gcc-c++yum install-y zlib-develyum install-y libjpeg-turbo-develyum install-y sqlite-develyum install-y libcurl-develyum install-y pcre-develyum install-y speex-develyum install-y libedit-develyum install-y openssl-develyum install-y libsndfile-develyum install-y lua-develrm-rf ${WorkDir} / yasm-1.3.0rm-rf ${WorkDir} / opus-1.1.4rm-rf ${WorkDir} / Freeswitch-1.6.17cd ${WorkDir} tar xf yasm-1.3.0.tar.gztar xf opus-1.1.4.tar.gztar xf freeswitch-1.6.17.tar.xzcp ${WorkDir} / cd_sounds/* ${WorkDir} / freeswitch-1.6.17/yasm-- versionif [$?-ne 0] then cd ${WorkDir} / yasm-1.3.0. / configure & & make-j 4 & & make installfi# this may be A little annoyed with cd ${WorkDir} / opus-1.1.4./configure & & make-j 4 & & make installcp / usr/local/lib/libopus.* / usr/lib/cp-r / root/opus/include/opus/opus* / usr/include/mv / usr/local/lib/pkgconfig/opus.pc / usr/lib/pkgconfig/ldconfig-vexport LD_LIBRARY_PATH=/lib:/usr/lib/:/usr/local/libcd ${WorkDir} / freeswitch-1 .6.17 make distcleansed-I's following applications that use modulated materials such as prefix=$ {HOME} / freeswitch & & make-j 4 & & make install & & make cd-sounds-install & & make cd-moh-install rm-rf ${WorkDir} / freeswitch-1.6.17rm-rf ${WorkDir} / yasm-1.3.0rm-rf ${WorkDir} / opus-1.1.4# [1] start freeswitchiptables-F$ {HOME} / Freeswitch/bin/freeswitch# [2] shutdown freeswitch#$ {HOME} / freeswitch/bin/freeswitch-stop#$ {HOME} / freeswitch/bin/fs_cli-x "shutdown" # [3] SIP device connection freeswitch#windows Android can install XSumi Litefront Zoiper to connect to the freeswitch server # Test dial the following number # number description #-# 9664 Music on hold # 9196 echo Echo test # 9195 echo, echo test, delay 5 seconds # 9197 noise generation # 9198 ring tone generation example # 9180 ring tone test, generated ring tone # 9181 ring tone test, generate British ring tone # 9183 answer first, then send British ring tone # 9184 answer first Then send music ring tone # 5000 sample IVR#4000 to listen to voicemail # [4] multiple SIP devices test each other's voice chunli@CentOS- > 14 freeswitch install $

Execution is completed, as shown in the following figure

You can pick up windows/Android 's Zoiper software at this time.

Add SIP type user 1000, password 1234, dial 5000 to listen to voice.

Ubuntu14.04 x64, an ordinary user with root privileges executes the following script:

Chunli@ubuntu:~/install_freeswitch_2017.05.01-21-23$ cat install_on_ubuntu14.04.sh # install freeswitch for ubuntu 14.04WorkDirr = `pwd`sudo apt-get updatesudo apt-get install-y vimsudo apt-get install-y g++sudo apt-get install-y zlib1g-devsudo apt-get install-y libjpeg-devsudo apt-get install-y libsqlite3-devsudo apt-get install-y libcurl4-gnutls-devsudo apt-get install-y libpcre3-devsudo apt-get install-y libspeexdsp-devsudo apt-get install-y libedit-devsudo Apt-get install-y libssl-devsudo apt-get install-y libopus-devsudo apt-get install-y liblua5.2-devsudo apt-get install-y libldns-devsudo apt-get install-y libsndfile1-dev sudo ln-s / usr/lib/x86_64-linux-gnu/liblua5.2.so.0.0.0 / usr/lib/x86_64-linux-gnu/liblua.sosudo mv / usr/include/lua5.2/lua* / usr/include/sudo mv / usr/include/opus/opus* / usr/include/sudo mv / usr/lib/x86_64-linux-gnu/libsndfile* / usr/lib/sudo ldconfig-vcd ${WorkDir} tar xf yasm-1.3.0.tar.gzcd ${WorkDir} / yasm-1.3.0/./configure & & make & & sudo make installcd ${WorkDir} tar xf freeswitch-1.6.17.tar.xzcp cd_sounds/freeswitch-sounds-* freeswitch-1.6.17/sudo rm-rf ${HOME} / freeswitchcd ${ WorkDir} / freeswitch-1.6.17/./configure-- prefix=$ {HOME} / freeswitch & & make-j 4 & & make install & & make cd-sounds-install & & make cd-moh-install rm-rf ${WorkDir} / freeswitch-1.6.17rm-rf ${WorkDir} / yasm-1.3.0# [1] start freeswitchsudo iptables-F$ {HOME} / freeswitch/bin/freeswitchsleep cycles [2] shutdown freeswitch#$ {HOME} / freeswitch/bin/freeswitch-stop#$ {HOME} / freeswitch/bin/fs_cli-x "shutdown" # [3] SIP device connects to freeswitch#windows Android can install XSumi Litefront Zoiper to connect to the freeswitch server # Test dial the following number # number description #-# 9664 Music on hold # 9196 echo Echo test # 9195 echo, echo test, delay 5 seconds # 9197 noise generation # 9198 ring tone generation example # 9180 ring tone test, generated ring tone # 9181 ring tone test, generate British ring tone # 9183 answer first, then send British ring tone # 9184 answer first Then send music ring tone # 5000 sample IVR#4000 to listen to voicemail # [4] multiple SIP devices voice test each other chunli@ubuntu:~/install_freeswitch_2017.05.01-21-23 $

Execution is completed, as shown in the following figure

You can pick up windows/Android 's Zoiper software at this time.

Add SIP type user 1000, password 1234, dial 5000 to listen to voice.

About the minimum available settings for Zoiper!

After reading this article, I believe you have some understanding of "how to install freeswitch 1.6.17". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report