FreeSWITCH Centos 7 install
cd /usr/local/src/freeswitch/build
cp freeswitch.service /etc/systemd/system/
cd /etc/systemd/system/multi-user.target.wants/
ln -s /etc/systemd/system/freeswitch.service freeswitch.service
nano /etc/systemd/system/freeswitch.service
[Unit]
Description=FreeSWITCH
After=syslog.target network.target
After=postgresql.service postgresql-9.3.service postgresql-9.4.service mysqld.service httpd.service
[Service]
User=asterisk
EnvironmentFile=-/etc/sysconfig/freeswitch
# RuntimeDirectory is not yet supported in CentOS 7. A workaround is to use /etc/tmpfiles.d/freeswitch.conf
#RuntimeDirectory=/run/freeswitch
#RuntimeDirectoryMode=0750
WorkingDirectory=/usr/local/freeswitch
ExecStart=/usr/local/freeswitch/bin/freeswitch -nc -nf $FREESWITCH_PARAMS
ExecReload=/usr/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
cp 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
cd /usr/local/bin/
ln -s /usr/local/freeswitch/bin/fs_cli fs_cli
http://r00ssyp.blogspot.ru/2015/11/freeswitch-1.html
freeswitch