{"id":62,"date":"2019-11-01T13:46:42","date_gmt":"2019-11-01T06:46:42","guid":{"rendered":"http:\/\/naitinoi.com\/?p=62"},"modified":"2019-11-01T13:55:45","modified_gmt":"2019-11-01T06:55:45","slug":"fs18-install-production","status":"publish","type":"post","link":"https:\/\/omtel.ltd\/index.php\/2019\/11\/01\/fs18-install-production\/","title":{"rendered":"### FS18 Install Production ###"},"content":{"rendered":"<p>https:\/\/freeswitch.org\/confluence\/display\/FREESWITCH\/Debian+9+Stretch<\/p>\n<p>Building From Source<br \/>\nCompiling Release Branch (production)<\/p>\n<p>root@fs18ast16:~# wget -O &#8211; https:\/\/files.freeswitch.org\/repo\/deb\/freeswitch-1.8\/fsstretch-archive-keyring.asc | apt-key add &#8211;<br \/>\nroot@fs18ast16:~# echo &#8220;deb http:\/\/files.freeswitch.org\/repo\/deb\/freeswitch-1.8\/ stretch main&#8221; &gt; \/etc\/apt\/sources.list.d\/freeswitch.list<br \/>\nroot@fs18ast16:~# echo &#8220;deb-src http:\/\/files.freeswitch.org\/repo\/deb\/freeswitch-1.8\/ stretch main&#8221; &gt;&gt; \/etc\/apt\/sources.list.d\/freeswitch.list<br \/>\nroot@fs18ast16:~# apt-get update<br \/>\nroot@fs18ast16:~# apt-get build-dep freeswitch<br \/>\nroot@fs18ast16:~# cd \/usr\/src\/<br \/>\nroot@fs18ast16:\/usr\/src# git clone https:\/\/freeswitch.org\/stash\/scm\/fs\/freeswitch.git -bv1.8 freeswitch<br \/>\nroot@fs18ast16:\/usr\/src# cd freeswitch<br \/>\nroot@fs18ast16:\/usr\/src\/freeswitch# git config pull.rebase true<br \/>\nroot@fs18ast16:\/usr\/src\/freeswitch# .\/bootstrap.sh -j<br \/>\nroot@fs18ast16:\/usr\/src\/freeswitch# ee modules.conf<br \/>\nsay\/mod_say_th<br \/>\napplications\/mod_esl<\/p>\n<p>Edit BANNER &gt;<\/p>\n<p>root@fs18ast16:\/usr\/src\/freeswitch# cd \/usr\/src\/freeswitch\/libs\/esl<br \/>\nroot@fs18ast16:\/usr\/src\/freeswitch\/libs\/esl# cp fs_cli.c   fs_cli.backup<br \/>\nroot@fs18ast16:\/usr\/src\/freeswitch\/libs\/esl# ee fs_cli.c<\/p>\n<p>SEARCH : banner<br \/>\nremove old banner and add new<\/p>\n<p>static const char *banner =&#8221;YOUR BANNER HERE&lt; teee@local.com&gt;&#8221;;<\/p>\n<p>static const char *inf = &#8220;Type \/help <enter> to see a list of commands\\n\\n\\n&#8221;;<\/enter><\/p>\n<p>root@fs18ast16:\/usr\/src\/freeswitch\/libs\/esl# cd \/usr\/src\/freeswitch\/src\/include<br \/>\nroot@FS18:\/usr\/src\/freeswitch\/src\/include# mv cc.h  cc.bak<\/p>\n<p>Create NEW<br \/>\nroot@FS18:\/usr\/src\/freeswitch\/src\/include# ee cc.h<\/p>\n<p>const char *cc = &#8220;&#8221;;<br \/>\nconst char *cc_s = &#8220;&#8221;;<\/p>\n<p>root@fs18ast16:\/usr\/src\/freeswitch\/src\/include# cd \/usr\/src\/freeswitch<br \/>\nroot@fs18ast16:\/usr\/src\/freeswitch# .\/configure<br \/>\nroot@fs18ast16:\/usr\/src\/freeswitch# make<br \/>\nroot@fs18ast16:\/usr\/src\/freeswitch# make install<br \/>\nroot@fs18ast16:\/usr\/src\/freeswitch#<\/p>\n<p>root@fs18ast16:\/usr\/src\/freeswitch#  make cd-sounds-install &amp;&amp; make cd-moh-install &amp;&amp;  make uhd-sounds-install &amp;&amp;  make uhd-moh-install  &amp;&amp;<br \/>\nmake hd-sounds-install &amp;&amp; make hd-moh-install &amp;&amp; make sounds-install &amp;&amp;  make moh-install<\/p>\n<p>root@fs18ast16:\/usr\/src\/freeswitch# make samples<\/p>\n<p>### SECURE YOUR EVENT SOCKET ###<\/p>\n<p>root@fs18ast16:\/usr\/src\/freeswitch# ee \/etc\/fs_cli.conf<br \/>\nroot@fs18ast16:\/usr\/src\/freeswitch# ee \/usr\/local\/freeswitch\/conf\/autoload_configs\/event_socket.conf.xml<br \/>\nroot@fs18ast16:\/usr\/local\/freeswitch# cd \/usr\/local\/freeswitch\/bin<br \/>\nroot@fs18ast16:\/usr\/local\/freeswitch\/bin# ln -s \/usr\/local\/freeswitch\/bin\/freeswitch \/bin\/freeswitch<br \/>\nroot@fs18ast16:\/usr\/local\/freeswitch\/bin# ln -s \/usr\/local\/freeswitch\/bin\/fs_cli \/bin\/fs_cli<br \/>\nroot@fs18ast16:\/usr\/local\/freeswitch\/bin# ee \/usr\/local\/freeswitch\/conf\/vars.xml<br \/>\n<x-pre-process cmd=\"set\" data=\"default_password=YOURPASSWORDHERE\"><\/x-pre-process><br \/>\nroot@fs18ast16:\/usr\/local\/freeswitch\/conf\/autoload_configs# ee \/usr\/local\/freeswitch\/conf\/autoload_configs\/event_socket.conf.xml<\/p>\n<p><configuration name=\"event_socket.conf\" description=\"Socket Client\"><br \/>\n<settings>\n    <param name=\"nat-map\" value=\"false\">\n    <param name=\"listen-ip\" value=\"YOUR-FS-IPADDR\">\n    <param name=\"listen-port\" value=\"8021\">\n    <param name=\"user\" value=\"YOUR-USER\">\n    <param name=\"password\" value=\"YOUR-PASSWD\">\n    <param name=\"apply-inbound-acl\" value=\"loopback.auto\">\n    <!--<param name=\"stop-on-bind-error\" value=\"true\"\/>--><br \/>\n<\/settings><br \/>\n<\/configuration><br \/>\nroot@fs18ast16:\/usr\/local\/freeswitch\/conf\/autoload_configs# ee \/etc\/fs_cli.conf<br \/>\n[default]<br \/>\n; Put me in \/etc\/fs_cli.conf or ~\/.fs_cli_conf<br \/>\nkey_f1 =&gt; help<br \/>\nkey_f2 =&gt; status<br \/>\nkey_f3 =&gt; show channels<br \/>\nkey_f4 =&gt; show calls<br \/>\nkey_f5 =&gt; sofia status<br \/>\nkey_f6 =&gt; reloadxml<br \/>\nkey_f7 =&gt; \/log console<br \/>\nkey_f8 =&gt; \/log debug<br \/>\nkey_f9 =&gt; sofia status profile internal<br \/>\nkey_f10 =&gt; fsctl pause<br \/>\nkey_f11 =&gt; fsctl resume<br \/>\nkey_f12 =&gt; version<\/p>\n<p>[default]<br \/>\nprofile  =&gt; YOUR-USER<br \/>\nhost     =&gt; YOUR-FS-IPADDR<br \/>\nport     =&gt; 8021<br \/>\npassword =&gt; YOUR-PASSWD<br \/>\ndebug    =&gt; 2<br \/>\nloglevel =&gt; debug<\/p>\n<p>root@fs:\/usr\/src\/freeswitch# ee \/usr\/local\/freeswitch\/conf\/autoload_configs\/acl.conf.xml<\/p>\n<p>root@fs18ast16:\/usr\/local\/freeswitch\/conf\/autoload_configs# ee acl.conf.xml<\/p>\n<p><!-- ADD ALLOW LOOPBACK INTERFACE -->\n   \t \t \t \t \t<list name=\"loopback.auto\" default=\"allow\">\n  <node type=\"allow\" cidr=\"ALLOW-YOUR-SUBNET-HERE\/21\"><br \/>\n<\/node><\/list>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/freeswitch.org\/confluence\/display\/FREESWITCH\/De [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-62","post","type-post","status-publish","format-standard","hentry","category-freeswitch"],"_links":{"self":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts\/62","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=62"}],"version-history":[{"count":2,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts\/62\/revisions"}],"predecessor-version":[{"id":64,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts\/62\/revisions\/64"}],"wp:attachment":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/media?parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/categories?post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/tags?post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}