{"id":73,"date":"2019-11-03T19:34:37","date_gmt":"2019-11-03T12:34:37","guid":{"rendered":"http:\/\/naitinoi.com\/?p=73"},"modified":"2019-12-05T05:46:32","modified_gmt":"2019-12-05T12:46:32","slug":"freeswitch-centos-6-x-installation","status":"publish","type":"post","link":"https:\/\/omtel.ltd\/index.php\/2019\/11\/03\/freeswitch-centos-6-x-installation\/","title":{"rendered":"FreeSwitch CentOS 6.x Installation"},"content":{"rendered":"<p>FreeSwitch CentOS 6.x Installation<br \/>\nREF. https:\/\/freeswitch.org\/confluence\/display\/FREESWITCH\/CentOS+6<\/p>\n<p>[root@naitinoi ]# cat \/etc\/redhat-release<br \/>\nCentOS release 6.6 (Final)<br \/>\n[root@naitinoi]# uname -r<br \/>\n2.6.32-504.16.2.el6.x86_64<\/p>\n<p>Install Prerequisites<br \/>\n[root@naitinoi \/]# rpm -ivh http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm<br \/>\n[root@naitinoi \/]# rpm -ivh http:\/\/mirror.cedia.org.ec\/fedora-epel\/6\/x86_64\/epel-release-6-8.noarch.rpm<br \/>\n[root@naitinoi \/]# 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<\/p>\n<p>Install FreeSWITCH<br \/>\n[root@naitinoi \/]# cd \/usr\/src<br \/>\n[root@naitinoi src]# git clone -b v1.4 https:\/\/freeswitch.org\/stash\/scm\/fs\/freeswitch.git<br \/>\nInitialized empty Git repository in \/usr\/src\/freeswitch\/.git\/<br \/>\nremote: Counting objects: 262168, done.<br \/>\nremote: Compressing objects: 100% (51716\/51716), done.<br \/>\nremote: Total 262168 (delta 205126), reused 259999 (delta 203225)<br \/>\nReceiving objects: 100% (262168\/262168), 113.54 MiB | 542 KiB\/s, done.<br \/>\nResolving deltas: 100% (205126\/205126), done.<\/p>\n<p>[root@naitinoi src]# cd \/usr\/src\/freeswitch<br \/>\n[root@naitinoi freeswitch]# .\/bootstrap.sh -j<\/p>\n<p># if you want to add or remove modules from the build, edit modules.conf<br \/>\n[root@naitinoi freeswitch]# ee modules.conf<br \/>\n#TEEE<br \/>\nsay\/mod_say_th<\/p>\n<p>[root@naitinoi freeswitch]# .\/configure -C<br \/>\n[root@naitinoi freeswitch]# make<br \/>\n[root@naitinoi freeswitch]# make install<\/p>\n<p>Install Sounds<br \/>\nCD-Quality Sounds<br \/>\n[root@naitinoi freeswitch]# make cd-sounds-install<br \/>\n[root@naitinoi freeswitch]# make cd-moh-install<\/p>\n<p>8KC Sounds<br \/>\n[root@naitinoi freeswitch]# make sounds-install<br \/>\n[root@naitinoi freeswitch]# make moh-install<\/p>\n<p>Set Owner and Permissions<br \/>\n# create user \u2018freeswitch\u2019<br \/>\n# add it to group \u2018daemon\u2019<br \/>\n# change owner and group of the freeswitch installation<br \/>\n[root@naitinoi freeswitch]# cd \/usr\/local<br \/>\n[root@naitinoi local]# useradd \u2013system \u2013home-dir \/usr\/local\/freeswitch -G daemon freeswitch<br \/>\n[root@naitinoi local]# passwd -l freeswitch<br \/>\nLocking password for user freeswitch.<br \/>\npasswd: Success<\/p>\n<p>[root@naitinoi local]# chown -R freeswitch:daemon \/usr\/local\/freeswitch\/<br \/>\n[root@naitinoi local]# chmod -R 770 \/usr\/local\/freeswitch\/<br \/>\n[root@naitinoi local]# chmod -R 750 \/usr\/local\/freeswitch\/bin\/*<br \/>\n[root@naitinoi local]# mkdir \/var\/run\/freeswitch<br \/>\n[root@naitinoi local]# chown -R freeswitch:daemon \/var\/run\/freeswitch<br \/>\n[root@naitinoi local]# ln -s \/usr\/local\/freeswitch\/bin\/freeswitch \/usr\/bin\/<\/p>\n<p>Automatic Start At Boot<br \/>\n[root@naitinoi local]# cp \/usr\/src\/freeswitch\/build\/freeswitch.init.redhat \/etc\/init.d\/freeswitch<br \/>\n[root@naitinoi local]# chmod 750 \/etc\/init.d\/freeswitch<br \/>\n[root@naitinoi local]# chown freeswitch:daemon \/etc\/init.d\/freeswitch<br \/>\n[root@naitinoi local]# chkconfig \u2013add freeswitch<br \/>\n[root@naitinoi local]# chkconfig \u2013levels 35 freeswitch on<\/p>\n<p>[root@naitinoi local]# service freeswitch restart<br \/>\nShutting down freeswitch:<br \/>\ncannot stop freeswitch: freeswitch is not running. [FAILED]<br \/>\nStarting freeswitch: [ OK ]<\/p>\n<p>[root@naitinoi local]# netstat -lntp<br \/>\nActive Internet connections (only servers)<br \/>\nProto Recv-Q Send-Q Local Address Foreign Address State PID\/Program name<br \/>\ntcp 0 0 10.10.10.21:5060 0.0.0.0:* LISTEN 27000\/freeswitch<br \/>\ntcp 0 0 127.0.0.1:8021 0.0.0.0:* LISTEN 27000\/freeswitch<br \/>\ntcp 0 0 10.10.10.21:5080 0.0.0.0:* LISTEN 27000\/freeswitch<br \/>\ntcp 0 0 ::1:5060 :::* LISTEN 27000\/freeswitch<br \/>\ntcp 0 0 ::1:5080 :::* LISTEN 27000\/freeswitch<br \/>\n[root@naitinoi local]# cd \/usr\/local\/freeswitch\/<br \/>\n[root@naitinoi freeswitch]# ls -l<br \/>\ntotal 60<br \/>\ndrwxrwx\u2014 2 freeswitch daemon 4096 Jun 1 00:32 bin<br \/>\ndrwxr-x\u2014 2 freeswitch freeswitch 4096 Jun 1 00:59 certs<br \/>\ndrwxrwx\u2014 12 freeswitch daemon 4096 Jun 1 00:32 conf<br \/>\ndrwxrwx\u2014 2 freeswitch daemon 4096 Jun 1 01:00 db<br \/>\ndrwxrwx\u2014 2 freeswitch daemon 4096 Jun 1 00:32 grammar<br \/>\ndrwxrwx\u2014 3 freeswitch daemon 4096 Jun 1 00:32 htdocs<br \/>\ndrwxrwx\u2014 2 freeswitch daemon 4096 Jun 1 00:32 include<br \/>\ndrwxrwx\u2014 3 freeswitch daemon 4096 Jun 1 00:32 lib<br \/>\ndrwxrwx\u2014 4 freeswitch daemon 4096 Jun 1 00:59 log<br \/>\ndrwxrwx\u2014 2 freeswitch daemon 4096 Jun 1 00:32 mod<br \/>\ndrwxrwx\u2014 2 freeswitch daemon 4096 Jun 1 00:32 recordings<br \/>\ndrwxrwx\u2014 2 freeswitch daemon 4096 Jun 1 00:59 run<br \/>\ndrwxrwx\u2014 2 freeswitch daemon 4096 Jun 1 00:32 scripts<br \/>\ndrwxrwx\u2014 4 freeswitch daemon 4096 Jun 1 00:51 sounds<br \/>\ndrwxr-x\u2014 3 freeswitch freeswitch 4096 Jun 1 00:59 storage<\/p>\n<p>[root@naitinoi bin]# cd \/usr\/bin<br \/>\n[root@naitinoi bin]# ln -s \/usr\/local\/freeswitch\/bin\/fs_cli .<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FreeSwitch CentOS 6.x Installation REF. https:\/\/freeswi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-73","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":2,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"predecessor-version":[{"id":94,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts\/73\/revisions\/94"}],"wp:attachment":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}