{"id":556,"date":"2011-03-10T13:18:48","date_gmt":"2011-03-10T20:18:48","guid":{"rendered":"http:\/\/www.michel2010.name\/blog\/?p=556"},"modified":"2011-03-10T13:18:48","modified_gmt":"2011-03-10T20:18:48","slug":"freeswitch-howto-installation","status":"publish","type":"post","link":"https:\/\/blog.michel2010.name\/eric\/2011\/03\/10\/freeswitch-howto-installation\/","title":{"rendered":"Freeswitch Howto: Installation"},"content":{"rendered":"<p>I&#8217;m not going to cover the installation of CentOS 5.5, nor will I cover how to setup a software RAID. \u00a0There are plenty of other tutorials already done that explain those things. \u00a0Here is what I did, though, step by step to get Freeswitch and the wanpipe drivers installed on our system (I&#8217;m assuming a basic working knowledge of the Linux command line).<\/p>\n<p>Note:  All of the following commands should be run as root.<\/p>\n<p><span style=\"color: #008080;\">yum list updates<\/span><\/p>\n<p><span style=\"color: #008080;\">yum update<\/span><\/p>\n<p><span style=\"color: #008080;\">yum install unixODBC-devel gnutls-devel libtiff-devel autoconf automake awk* bison core-devel curl-devel expat-devel flex gcc* gettext-devel  gnutls gnutls-devel kernel-devel-$(uname -r) libjpeg-devel libtiff libtiff-devel libtool libX11-devel libzrtpmake ncurses-devel openssl patch python-devel unixODBC-devel zlib zlib-devel<\/span><\/p>\n<p>The above commands should install all the dependencies needed for git, the Sangoma drivers, and freeswitch.<\/p>\n<h2>Install Git<\/h2>\n<p>Make sure \/usr\/local\/lib is in your ld.so.conf, this is required for git-http-push to correctly link up to the Curl version you are installing.<\/p>\n<p><span style=\"color: #008080;\">vi \/etc\/ld.so.conf<\/span><\/p>\n<p>Insert the following:<br \/>\n<span style=\"color: #008080;\">\/usr\/local\/lib<\/span><\/p>\n<p>Save the file, then run:<br \/>\n<span style=\"color: #008080;\">ldconfig<\/span><\/p>\n<p>Now download and install Git:<br \/>\n<span style=\"color: #008080;\">cd \/usr\/local\/src<\/span><br \/>\n<span style=\"color: #008080;\"> wget http:\/\/www.codemonkey.org.uk\/projects\/git-snapshots\/git\/git-latest.tar.gz<\/span><br \/>\n<span style=\"color: #008080;\"> tar xzvf git-latest.tar.gz<\/span><br \/>\n<span style=\"color: #008080;\"> cd git-{date}<\/span><br \/>\n<span style=\"color: #008080;\"> autoconf<\/span><br \/>\n<span style=\"color: #008080;\"> .\/configure &#8211;with-curl=\/usr\/local<\/span><br \/>\n<span style=\"color: #008080;\"> make<\/span><br \/>\n<span style=\"color: #008080;\"> make install<\/span><\/p>\n<h2>Install Sangoma Drivers<\/h2>\n<p><span style=\"color: #008080;\">cd \/usr\/local\/src<\/span><br \/>\n<span style=\"color: #008080;\"> wget ftp:\/\/ftp.sangoma.com\/linux\/current_wanpipe\/wanpipe-latest.tgz<\/span><br \/>\n<span style=\"color: #008080;\"> tar xfz wanpipe-latest.tgz<\/span><br \/>\n<span style=\"color: #008080;\"> cd wanpipe-.tgz<\/span><br \/>\n<span style=\"color: #008080;\"> make freetdm<\/span><br \/>\n<span style=\"color: #008080;\"> make install<\/span><\/p>\n<h2>Install Freeswitch<\/h2>\n<p><span style=\"color: #008080;\">cd \/usr\/local\/src<\/span><br \/>\n<span style=\"color: #008080;\"> git clone git:\/\/git.freeswitch.org\/freeswitch.git<\/span><br \/>\n<span style=\"color: #008080;\"> cd freeswitch<\/span><br \/>\n<span style=\"color: #008080;\"> .\/bootstrap.sh<\/span><\/p>\n<p>Edit modules.conf  remove the \u201c#\u201d from the freetdm and flite modules:<br \/>\n<span style=\"color: #008080;\">vi \/usr\/local\/src\/freeswitch\/modules.conf<\/span><\/p>\n<p>When your done editing save and continue with the installation:<br \/>\n<span style=\"color: #008080;\">.\/configure<\/span><br \/>\n<span style=\"color: #008080;\"> make<\/span><br \/>\n<span style=\"color: #008080;\"> make install<\/span><br \/>\n<span style=\"color: #008080;\"> make all cd-sounds-install cd-moh-install<\/span><br \/>\nThe last command will download about 300Mb of sound files. \u00a0These are for the voice mail\/IVR system and the music on hold.<\/p>\n<p>Run this command to configure the Sangoma hardware.  When I set this up I had to turn off hardware DTMF.  When it was on using calling cards was almost impossible.  Calling cards work just fine with the software DTMF.<\/p>\n<p><span style=\"color: #008080;\">\/usr\/sbin\/wancfg_fs<\/span><\/p>\n<p>This will start freeswitch.  To start it as a daemon freeswitch -nc.<br \/>\n<span style=\"color: #008080;\">cd \/usr\/local\/freeswitch\/bin<\/span><br \/>\n<span style=\"color: #008080;\"> .\/freeswitch<\/span><\/p>\n<p>This will start the freeswitch command line when the command \u201cfs_cli\u201d is run.<br \/>\n<span style=\"color: #008080;\">ln -s \/usr\/local\/freeswitch\/bin\/fs_cli \/usr\/local\/bin\/fs_cli<\/span><\/p>\n<p>That&#8217;s it. \u00a0I would suggest starting Freeswitch with the -nc option, unless your having problems and need to trouble shoot.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m not going to cover the installation of CentOS 5.5, nor will I cover how to setup a software RAID. \u00a0There are plenty of other tutorials already done that explain those things. \u00a0Here is what I did, though, step by step to get Freeswitch and the wanpipe drivers installed on our system (I&#8217;m assuming a &hellip; <a href=\"https:\/\/blog.michel2010.name\/eric\/2011\/03\/10\/freeswitch-howto-installation\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Freeswitch Howto: Installation&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,3],"tags":[],"class_list":["post-556","post","type-post","status-publish","format-standard","hentry","category-freeswitch","category-tech"],"_links":{"self":[{"href":"https:\/\/blog.michel2010.name\/eric\/wp-json\/wp\/v2\/posts\/556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.michel2010.name\/eric\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.michel2010.name\/eric\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.michel2010.name\/eric\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.michel2010.name\/eric\/wp-json\/wp\/v2\/comments?post=556"}],"version-history":[{"count":0,"href":"https:\/\/blog.michel2010.name\/eric\/wp-json\/wp\/v2\/posts\/556\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.michel2010.name\/eric\/wp-json\/wp\/v2\/media?parent=556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.michel2010.name\/eric\/wp-json\/wp\/v2\/categories?post=556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.michel2010.name\/eric\/wp-json\/wp\/v2\/tags?post=556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}