This article, the original connection: http://blog.csdn.net/freewebsys/article/details/46546205, reprint please indicate the source!
1, about FreeSWITCH
FreeSWITCH is a soft-switching solution for telephony, including a softphone and soft switch to provide voice and chat product drivers. The FreeSWITCH can be used as a switch engine, PBX, multimedia gateway, and multimedia server.
FreeSWITCH supports a variety of communication technology standards, including SIP, IAX2, and Googletalk, which can be easily interfaced with other open source PBX systems such as SIPX, OpenPBX, Bayonne, Yate or Asterisk.
FreeSWITCH supports many advanced SIP features, such as Presence/blf/sla, TCP TLS, and SRTP, which can also be used as a transparent proxy similar to the SBC (Session Border Controller).
Reference: Http://www.oschina.net/p/freeswitch
2, installation
Code migrated, not on GitHub. OS-style CENTOS6, (CENTOS7 operating system also similar)
Https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse
CENTOS6 Installation
Https://freeswitch.org/confluence/display/FREESWITCH/CentOS+6
Install dependencies First:
yum install git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel
There is a problem here, you can not download the master code directly, compile the past, relying on a LIBYUV library. compile with version 1.4.
git clone -b v1.4 https://freeswitch.org/stash/scm/fs/freeswitch.git# The -j argument spawns multiple threads to speed the build process ./bootstrap.sh -j./configure -Cmakemake installmake sounds-installmake moh-install
Installation succeeded:
----------------------------------------------------------------------Libraries has been installed in:/usr/ Local/freeswitch/modif ever happen to want-link against installed Librariesin a given directory, Libdir, you must E Ither use Libtool, andspecify the full pathname of the library, or use the '-llibdir ' flag during linking and does at least O NE of the following:-add Libdir to the ' ld_library_path ' environment variable during execution-add Libdir to T He ' ld_run_path ' environment variable during linking-use the '-WL,-RPATH-WL,LIBDIR ' linker flag-have your SYS TEM Administrator Add Libdir to '/etc/ld.so.conf ' see all operating system documentation about shared libraries Formore inf Ormation, such as the LD (1) and ld.so (8) Manual Pages.----------------------------------------------------------------------MAKE[5]: Leaving directory'/data/freeswitch/src/mod/xml_int/mod_xml_scgi 'MAKE[4]: Leaving directory'/data/freeswitch/src/mod/xml_int/mod_xml_scgi 'MAKE[3]: Leaving directory'/data/freeswitch/src/mod 'MAKE[3]: Entering directory'/data/freeswitch/src 'MAKE[4]: Entering directory'/data/freeswitch/src 'MAKE[4]: Nothing to being done for' Install-exec-am '. Make[4]: Nothing to is done for' Install-data-am '. make[4]: Leaving directory'/data/freeswitch/src 'MAKE[3]: Leaving directory'/data/freeswitch/src 'MAKE[2]: Leaving directory'/data/freeswitch/src 'Making install in buildmake[2]: Entering directory'/data/freeswitch/build '+----------FreeSWITCH Install complete----------++ FreeSWITCH has been successfully installed. + + ++ Install sounds: ++ (Uhd-sounds includes hd-sounds, sounds) ++ (Hd-sounds includes sounds) + + ------------------------------------ ++ make Cd-sounds-install ++ make Cd-moh-install + + ++ make Uhd-sounds-install ++ make Uhd-moh-install + + ++ make Hd-sounds-install ++ make Hd-moh-install + + ++ make Sounds-install ++ make Moh-install + + ++ Install Non 中文版 sounds: ++ Replace XX with language ++ (Ru:russian) ++ (fr:french) + + ------------------------------------ ++ make Cd-sounds-xx-install ++ make Uhd-sounds-xx-install ++ make Hd-sounds-xx-install ++ make Sounds-xx-install + + ++ Upgrade to latest: + + ---------------------------------- ++ Make current + + ++ Rebuild All: + + ---------------------------------- ++ Make sure + + ++ install/re-install Default Config: + + ---------------------------------- ++ Make samples + + + + ++ Additional resources: + + ---------------------------------- ++ https://www.freeswitch.org ++ https://freeswitch.org/confluence ++ Https://freeswitch.org/jira ++ http://lists.freeswitch.org + + ++ irc.freenode.net/#freeswitch + + ++ Register for Cluecon: + + ---------------------------------- ++ https://www.cluecon.com + + + +-------------------------------------------------+.=======================================================================================================.| ____ _ ____ || / ___| |__ ___ / ___|___ _ __ || | | | | | | |/ _ \ | / _ \|' _ \ | | | |___| | |_| | __/ |__| (_) | | | | || \____|_|\__,_|\___|\____\___/|_| |_| || || _____ _ _ ____ __ || |_ _|__| | ___ _ __ | |__ ___ _ __ _ _ / ___|___ _ __ / _| ___ _ __ ___ _ __ ___ ___ || | |/_ \ |/_ \ '_ \|' _ \/_ \| '_ \| | | | | | / _ \|' _ \| |_/_ \ '__/ _\' _ \/__/_ \ | | | | __/ | __/ |_) | | | | (_) | | | | |_| | | |__| (_) | | | | _| __/ | | __/ | | | (_| __/ || |_|\___|_|\___| .__/|_| |_|\___/|_| |_|\__, | \____\___/|_| |_|_| \___|_| \___|_| |_|\___\___| || |_| |___/ || _____ _ _ || | ____|_ _____ _ __ _ _ / \ _ _ __ _ _ _ ___| |_ || | _| \ \//_ \ '__| | | | / _\| | | |/_` | | | / __| __| || | |___ \ V/__/ | | |_| | / ___ \ |_| | (_| | |_| \__ \ |_ || |_____| \_/ \___|_| \__, | /_/ \_\__,_|\__, |\__,_|___/\__| || |___/ |___/ || ____ _ ____ || __ ____ ____ __ / ___| |__ ___ / ___|___ _ __ ___ ___ _ __ ___ || \ \ /\ / /\ \ /\ / /\ \ /\ / / | | | | | | |/ _ \ | / _ \|' _ \/__/_ \| '_ ` _ \ || \ v V/\ V V/\ V V/_ | |___| | |_| | __/ |__| (_) | | | | _ | (_| (_) | | | | | | || \_/\_/ \_/\_/ \_/\_/ (_) \____|_|\__,_|\___|\____\___/|_| |_| (_) \___\___/|_| |_| |_| || |. =======================================================================================================. Checking module Integrity in Target [/usr/local/freeswitch/mod]make[2]: Leaving directory'/data/freeswitch/build 'MAKE[1]: Leaving directory'/data/freeswitch '
3, increase the system service, start the service
Add system services, and start
#拷贝centos6 Service FilesCP Build/freeswitch.init.redhat/etc/init.d/freeswitchchmod -/etc/init.d/freeswitchchkconfig--add Freeswitchchkconfig--levels *FreeSWITCH on#增加用户Useradd--system--home-dir/usr/Local/freeswitch-g Daemon FreeSWITCH#设置权限Chown-R freeswitch:daemon/usr/Local/freeswitch/chmod-R770/usr/Local/freeswitch/chmod-R -/usr/Local/freeswitch/bin/*#创建run目录mkdir/var/run/freeswitchChown-R Freeswitch:daemon v1.4#配置二进制文件LN-s/usr/Local/freeswitch/bin/freeswitch/usr/bin/#启动服务Service FreeSWITCH Start
4, install the client
The client uses X-lite. :
http://www.counterpath.com/x-lite-download/
After starting the configuration of the server, freeswitch default registered 20 accounts, from 1000-1019, the default password is 1234.
Configuration information, assuming that the server address is 192.168.1.100.
Also register 1001 on another computer, then you can dial it.
5, summary
This article, the original connection: http://blog.csdn.net/freewebsys/article/details/46546205, reprint please indicate the source!
FreeSWITCH is still very useful, just need to compile, configure the service on the line.
Open source needs to be studied thoroughly, the main code is written in C, support LUA extension, FreeSWITCH support a lot of features also need to study carefully.
FreeSwitch SIP (1): Linux under Compile and install v1.4