yum install git gcc-c++ autoconf automake libtool libogg-devel wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel patch libICE
cd /usr/src git clone https://freeswitch.org/stash/scm/fs/freeswitch.git cd /usr/src/freeswitch ./bootstrap.sh –j
mod_rtmp mod_directory mod_callcenter mod_tts_commandline mod_dingaling mod_flite mod_shout mod_cidlookup mod_curl mod_xml_curl
./configure -C make make install
make sounds-install make moh-install make hd-moh-install make hd-sounds-install make uhd-moh-install make uhd-sounds-install make cd-sounds-install make cd-moh-install
make sounds-ru-install make cd-sounds-ru-install make uhd-sounds-ru-install make hd-sounds-ru-install
useradd --system --home-dir /usr/local/freeswitch freeswitch passwd -l freeswitch
chown -R freeswitch:freeswitch /usr/local/freeswitch/ chmod -R g+w /usr/local/freeswitch/ cp /usr/src/freeswitch/build/freeswitch.init.redhat /etc/init.d/freeswitch && chmod +x /etc/init.d/freeswitch cp /usr/src/freeswitch/build/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 chkconfig --level 5 freeswitch on
rm -rf /usr/local/freeswitch/conf/dialplan/default/00* /usr/local/freeswitch/conf/dialplan/default/01_Talking_Clock.xml cd /usr/local/bin/ && ln -s /usr/local/freeswitch/bin/fs_cli fs_cli
/usr/local/freeswitch/conf/vars.xml <X-PRE-PROCESS cmd="set" data="default_password=__"/>
/usr/local/freeswitch/conf/vars.xml <X-PRE-PROCESS cmd="set" data="sound_prefix=$${sounds_dir}/ru/RU/elena"/>
<X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMU,PCMA"/> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA"/>
/usr/local/freeswitch/conf/dialplan/default.xml
<action application="record_session" data="$${base_dir}/recordings/${strftime(%Y%m%d_%H%M%S)}_${caller_id_number}_${destination_number}.wav"/>
/usr/local/freeswitch/conf/sip_profiles/internal.xml <param name="ws-binding" value=":5066"/>
fs_cli -x "sofia status profile internal" | grep WS-BIND-URL WS-BIND-URL sip:mod_sofia@XXXX:5066;transport=ws
/usr/local/freeswitch/conf/sip_profiles/internal.xml <param name="enable-timer" value="false"/>
/usr/local/freeswitch/conf/sip_profiles/internal.xml <param name="liberal-dtmf" value="true"/>
Source: https://habr.com/ru/post/249701/