<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HOWTO :: VoIP: Whosesale :: Calling Card :: OpenSer :: Radius :: Asterisk :: FreeSwitch :: A2Billing :: IVR :: Colo :: Colocations :: GADGETS &#187; FreeSwitch</title>
	<atom:link href="http://callsolutions.org/category/voip-tutorial/freeswitch/feed/" rel="self" type="application/rss+xml" />
	<link>http://callsolutions.org</link>
	<description>You can also find CCNA :: CCNAP :: Exam, Brandump, CheatSheet, Sample Exams</description>
	<lastBuildDate>Thu, 29 Apr 2010 14:23:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FreeSwitch Installation</title>
		<link>http://callsolutions.org/freeswitch-installation/</link>
		<comments>http://callsolutions.org/freeswitch-installation/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 00:00:43 +0000</pubDate>
		<dc:creator>nelson</dc:creator>
				<category><![CDATA[FreeSwitch]]></category>

		<guid isPermaLink="false">http://callsolutions.org/?p=37</guid>
		<description><![CDATA[FreeSwitch Installation Howto:
This FreeSwitch Installation is derived from FreeSwitch Wiki Installation. I used this to install to my Debian Etch Server that runs in AMD Opteron Dual Proc Server.
Download Source Tarball

 Unix Source freeswitch-1.0.1.tar.gz
 Nightly Snapshot of SVN Source freeswitch-snapshot.tar.gz


FreeSWITCH 1.0.1 &#8220;Phoenix&#8221; Release
Here is the much awaited Freeswitch 1.0.1 &#8220;Phoenix&#8221; tarball located at http://files.freeswitch.org/
Follow the [...]]]></description>
			<content:encoded><![CDATA[<h2><a href="http://callsolutions.org/voip-tutorial/freeswitch/freeswitch-softswitch/">FreeSwitch</a> Installation Howto:</h2>
<p>This <strong>FreeSwitch</strong> Installation is derived from FreeSwitch Wiki Installation. I used this to install to my Debian Etch Server that runs in AMD Opteron Dual Proc Server.</p>
<h2><strong>Download Source Tarball</strong></h2>
<ul>
<li> Unix Source <a class="external text" title="http://files.freeswitch.org/freeswitch-1.0.1.tar.gz" rel="nofollow" href="http://files.freeswitch.org/freeswitch-1.0.1.tar.gz">freeswitch-1.0.1.tar.gz</a></li>
<li> Nightly Snapshot of SVN Source <a class="external text" title="http://files.freeswitch.org/freeswitch-snapshot.tar.gz" rel="nofollow" href="http://files.freeswitch.org/freeswitch-snapshot.tar.gz">freeswitch-snapshot.tar.gz</a></li>
</ul>
<p><a name="FreeSWITCH_1.0.1_.22Phoenix.22_Release"></a></p>
<h2><strong><a href="http://callsolutions.org/voip-tutorial/freeswitch/freeswitch-softswitch/">FreeSWITCH</a> 1.0.1 &#8220;Phoenix&#8221; Release</strong></h2>
<p>Here is the much awaited Freeswitch 1.0.1 &#8220;Phoenix&#8221; tarball located at <a class="external free" title="http://files.freeswitch.org/" rel="nofollow" href="http://files.freeswitch.org/">http://files.freeswitch.org/</a></p>
<p>Follow the instructions below to be a proud user:</p>
<pre>wget http://files.freeswitch.org/freeswitch-1.0.1.tar.gz
tar xvfz freeswitch-1.0.1.tar.gz
cd &lt;freeswitch dir&gt;</pre>
<pre>./configure
make all install</pre>
<p><a name="Quick_and_Dirty_Install_for_the_Impatient_Ones"></a></p>
<h2>Quick and Dirty Install for the Impatient Ones</h2>
<p>If you are impatient and know Linux at least moderately well then hop over to the <a title="Quick and Dirty Install" href="http://wiki.freeswitch.org/wiki/Quick_and_Dirty_Install">quick and dirty install</a> page!</p>
<p><a name="Binary_Installation_or_ISO_CD-ROM_Installation"></a></p>
<h2>Binary Installation or ISO CD-ROM Installation</h2>
<p>The FreeSWITCH™ project maintains binary packages for a number of Linux distributions on the <a class="external text" title="http://opensuse.org" rel="nofollow" href="http://opensuse.org/">openSUSE</a> <a class="external text" title="http://build.opensuse.org" rel="nofollow" href="http://build.opensuse.org/">Build Service</a>. All external dependencies required by these FreeSWITCH™ packages are either part of the base Linux distros or available in the repository at: <a class="external free" title="http://software.opensuse.org/download/network:/telephony/" rel="nofollow" href="http://software.opensuse.org/download/network:/telephony/">http://software.opensuse.org/download/network:/telephony/</a></p>
<p>There are unofficial Ubuntu Hardy packages available at;</p>
<pre>deb <a class="external free" title="http://ppa.launchpad.net/hads/ubuntu" rel="nofollow" href="http://ppa.launchpad.net/hads/ubuntu">http://ppa.launchpad.net/hads/ubuntu</a> hardy main</pre>
<p>Another option is the <a class="external text" title="http://www.trixswitch.org" rel="nofollow" href="http://www.trixswitch.org/">trixswitch</a> ISO install package, a <a class="external text" title="http://centos.org" rel="nofollow" href="http://centos.org/">CentOS</a>-based CD-ROM image that creates a boot CD that will automatically install CentOS and FreeSWITCH™.</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Warning" href="http://wiki.freeswitch.org/wiki/Image:Warning.png"><img longdesc="/wiki/Image:Warning.png" src="http://wiki.freeswitch.org/images/thumb/c/cb/Warning.png/64px-Warning.png" alt="Warning" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<hr />installing trixswitch will erase the hard drive!<br />
<hr /></div>
</div>
<p>If your preferred Linux distro and version is listed there, then we recommend you use these packages. If however you wish to build the source yourself, continue reading.</p>
<p><a name="Obtaining_the_Source_Code"></a></p>
<h2>Obtaining the Source Code</h2>
<p>Ensure that you have met the dependencies listed below. Once that is completed, you have two methods to obtain the source code. Via subversion (svn) or by downloading a tarball. Subversion provides access to the latest features and bug fixes, while the tarballs are created nightly. There are subversion clients for windows as well as Unix-like systems. This document assumes that you are using a command-line subversion client. You will want to save the source somewhere convenient, execute the following from the directory appropriate for your operating system eg c:\source, /usr/local/src or /usr/src .</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>svn checkout <a class="external free" title="http://svn.freeswitch.org/svn/freeswitch/trunk" rel="nofollow" href="http://svn.freeswitch.org/svn/freeswitch/trunk">http://svn.freeswitch.org/svn/freeswitch/trunk</a> freeswitch</pre>
</div>
</div>
<p>You can download Freeswitch 1.0.1 release source in a tarball from the following links.</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre><a class="external free" title="http://files.freeswitch.org/freeswitch-1.0.1.tar.gz" rel="nofollow" href="http://files.freeswitch.org/freeswitch-1.0.1.tar.gz">http://files.freeswitch.org/freeswitch-1.0.1.tar.gz</a></pre>
</div>
</div>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre><a class="external free" title="http://files.freeswitch.org/freeswitch-1.0.1.tar.bz2" rel="nofollow" href="http://files.freeswitch.org/freeswitch-1.0.1.tar.bz2">http://files.freeswitch.org/freeswitch-1.0.1.tar.bz2</a></pre>
</div>
</div>
<p>You can download the latest tagged release source in a tarball from the following link.</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre><a class="external free" title="http://files.freeswitch.org/freeswitch-1.0.latest.tar.gz" rel="nofollow" href="http://files.freeswitch.org/freeswitch-1.0.latest.tar.gz">http://files.freeswitch.org/freeswitch-1.0.latest.tar.gz</a></pre>
</div>
</div>
<p>Or you may download other tarballs from marked releases or binary releases from the following link</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre><a class="external free" title="http://files.freeswitch.org/" rel="nofollow" href="http://files.freeswitch.org/">http://files.freeswitch.org/</a></pre>
</div>
</div>
<p>If you download the tarball you will need to untar it, in Windows you may use a tool like <a class="external text" title="http://www.winzip.com" rel="nofollow" href="http://www.winzip.com/">WinZip</a> Unix-like systems come with tar preinstalled (and most modern ones with gunzip). If you are in a Unix-like system execute the following:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>tar zxvf freeswitch-snapshot.tar.gz</pre>
</div>
</div>
<p>If you are facing problems because of web proxy you could try something like this:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>svn co <a class="external free" title="http://svn.freeswitch.org/svn/freeswitch/trunk" rel="nofollow" href="http://svn.freeswitch.org/svn/freeswitch/trunk">http://svn.freeswitch.org/svn/freeswitch/trunk</a> freeswitch.trunk
 cd freeswitch.trunk
 svn propedit svn:externals . --editor-cmd=[your favorite editor here]
 remove the :81 from both externals urls
 save/exit
 svn update</pre>
</div>
</div>
<p><a name="Compiling_the_Source_Code"></a></p>
<h2>Compiling the Source Code</h2>
<p><a name="Windows"></a></p>
<h3>Windows</h3>
<ul>
<li> Open Freeswitch.sln</li>
<li> Right click the main solution node at the top of the Solution Explorer</li>
<li> Right click and select Build</li>
</ul>
<p>Note that building for Windows within a tree that has previously been built for a different platform will result in numerous errors and build failures. To resolve, delete the following generated files:</p>
<ul>
<li> libs/apr/include/apr.h</li>
<li> libs/js/config.h</li>
<li> libs/js/src/jsautocfg.h</li>
<li> libs/js/nsprpub/pr/include/prcpucfg.h</li>
<li> libs/iksemel/include/config.h</li>
<li> libs/xmlrpc/xmlrpc_config.h</li>
<li> libs/libsndfile/src/sfconfig.h; also rename libs/win32/libsndfile/config.h to libs/win32/libsndfile/sfconfig.h</li>
<li> libs/sofia-sip/libsofia-sip-ua/su/sofia-sip/su_configure.h</li>
</ul>
<p>then Rebuild the solution.</p>
<p>Building under VS 2008 may require that you disable &#8220;Enable Minimal Rebuild&#8221; in the properties pane for FreeSwitchCoreLib project if VS reports an internal compilation error in SimpleGlob.h.</p>
<p>You may also need to &#8220;Enable default libraries&#8221; in the properties pane for XML Interfaces\mod_xml_rpc if VS complains of numerous unresolved external symbols, e.g., _memset, _strcmp.</p>
<p>After following the instructions above to build for Windows, you will need to delete &#8220;libs/js/nsprpub/pr/include/prcpucfg.h&#8221; and rerun &#8220;./bootstrap.sh&#8221; before building for another platform.</p>
<p><a name="Unix-like_systems_.28Linux.2C_BSD.2C_OS_X.29"></a></p>
<h3>Unix-like systems (Linux, BSD, OS X)</h3>
<p>All commands should be executed from within the main source repository. If you downloaded a tarball you may skip this step, jumping to ./configure</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>./bootstrap.sh</pre>
</div>
</div>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Informational Tip" href="http://wiki.freeswitch.org/wiki/Image:Info.png"><img longdesc="/wiki/Image:Info.png" src="http://wiki.freeswitch.org/images/thumb/b/b3/Info.png/64px-Info.png" alt="Informational Tip" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<hr />Some Linux distributions (Debian, for example) include both autoconf2.13 and autoconf2.50 along with a script called &#8220;autoconf&#8221; that automatically selects between the two. The numbers appended to the programs show which flavor of autoconf it provides, but autoconf2.50 can actually be autoconf version 2.61. bootstrap.sh checks for the version of autoconf, but the autoconf script returns version 2.13 by default. If bootstrap.sh fails with a complaint about needing autoconf 2.59 or above and you have installed the prerequisites listed below, try:</p>
<hr /></div>
</div>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>AUTOCONF=/usr/bin/autoconf ./bootstrap.sh</pre>
</div>
</div>
<p>By default FreeSWITCH is installed in the /usr/local/freeswitch prefix. To configure:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>./configure</pre>
</div>
</div>
<p>If you don’t have root access add &#8211;prefix=~/freeswitch to the command. For configuring with ODBC support see <a title="Mod spidermonkey odbc" href="http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc">here</a>.</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>./configure --prefix=/usr/local/freeswitch</pre>
</div>
</div>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Informational Tip" href="http://wiki.freeswitch.org/wiki/Image:Info.png"><img longdesc="/wiki/Image:Info.png" src="http://wiki.freeswitch.org/images/thumb/b/b3/Info.png/64px-Info.png" alt="Informational Tip" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<hr />Not all Debian releases have /usr/bin/gcc. Instead you can find something like /usr/bin/gcc-X.Y so ./configure will fail, if it is missing. To execute without problem ./configure, try:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>ln -s /usr/bin/gcc-X.Y /usr/bin/gcc</pre>
</div>
</div>
<p>on such a release. Remember to change X.Y with the correct numbers. It will work like a charm.</p>
<hr /></div>
</div>
<p>On ubuntu hardy, configure will complain about missng curses library. libcurses5 is installed by default, so just make a symbolic link:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>ln -s /lib/libncurses.so.5 /lib/libncurses.so</pre>
</div>
</div>
<p>You should now create a modules.conf.</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>cp build/modules.conf.in modules.conf</pre>
</div>
</div>
<p>Edit modules.conf so that it will build the modules you desire. If you are unsure, leave this to the defaults. FreeSWITCH™ comes with a good set of modules as the default, until you become more familiar with FreeSWITCH™ it is advised that you not edit modules.conf. A # at the beginning will omit that module from being built. A list of the modules can be obtained from the <a title="Modules" href="http://wiki.freeswitch.org/wiki/Modules">Modules</a> page.</p>
<p>Once you are done configuring the build environment you need to run the following commands:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>make
make install
make sounds-install
make moh-install</pre>
</div>
</div>
<p><strong>Suse 10.3 Note:</strong> Compiling on Suse 10.3 if you get this error:</p>
<pre>libtool: link: `src/jsapi.lo' is not a valid libtool object
make[6]: *** [libjs.la] Error 1
make[5]: *** [/usr/src/freeswitch.trunk/libs/js/libjs.la] Error 2
make[4]: *** [all] Error 1
make[3]: *** [mod_spidermonkey-all] Error 1
make[2]: *** [all-recursive] Error 1</pre>
<p>Try the following procedure:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>cd libs/js/
make clean
make
cd ../..
make</pre>
</div>
</div>
<p>I don&#8217;t know why it won&#8217;t build correctly on Suse 10.3 the first time around, but bkw suggested that as a workaround mid July 2008 and it seems to work for both the x86 and x86_64 platforms.<br />
There are also higher bitrate sounds available for download and installation with:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>make uhd-sounds-install
make uhd-moh-install
make hd-sounds-install
make hd-moh-install</pre>
</div>
</div>
<p><a name="FreeBSD"></a></p>
<h3>FreeBSD</h3>
<p><strong>Installing FreeBSD dependencies:</strong></p>
<p>SVN: Several Choices.</p>
<p>GNUMAKE: The GNU version of make. (will be installed automatically as a dependency to autoconf)</p>
<p>AUTOCONF: Version 2.50 or higher. Note that version 2.62 does <strong>not</strong> seem to work (at the time writing at least), <tt>./configure</tt> will fail in libsndfile if you are using that version. Version 2.61 seems to work just fine.</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>pkg_add -r autoconf261</pre>
</div>
</div>
<p>GCC: Version 3.95 or higher</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>pkg_add -r gcc34</pre>
</div>
</div>
<p>WGET: Almost any version</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>pkg_add -r wget</pre>
</div>
</div>
<p>AUTOMAKE:  Version 1.70 or higher</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>pkg_add -r automake19</pre>
</div>
</div>
<p>GLIBTOOL:  Version 1.5.14 or higher</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>pkg_add -r libtool</pre>
</div>
</div>
<p>LIBNCURSES:  Almost any version</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>pkg_add -r ncurses</pre>
</div>
</div>
<p>SVN:  Subversion</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>pkg_add -r subversion</pre>
</div>
</div>
<p>Get source with wget:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>cd /usr/src
/usr/local/bin/wget <a class="external free" title="http://files.freeswitch.org/freeswitch-snapshot.tar.gz" rel="nofollow" href="http://files.freeswitch.org/freeswitch-snapshot.tar.gz">http://files.freeswitch.org/freeswitch-snapshot.tar.gz</a>
tar zxvf freeswitch-snapshot.tar.gz
cd freeswitch-snapshot</pre>
</div>
</div>
<p>Note: ./bootstrap.sh has already been run for Full and Release Candidate versions.<br />
Or get source with SVN</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>cd /usr/src
/usr/local/bin/svn co <a class="external free" title="http://svn.freeswitch.org/svn/freeswitch/trunk" rel="nofollow" href="http://svn.freeswitch.org/svn/freeswitch/trunk">http://svn.freeswitch.org/svn/freeswitch/trunk</a> freeswitch.trunk
cd freeswitch.trunk</pre>
</div>
</div>
<p><strong>Build Process</strong> After downloading the source with svn or with wget</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>./bootstrap.sh
./configure
gmake install
gmake samples
gmake sounds-install
gmake moh-install</pre>
</div>
</div>
<p>Make sure you are using gmake and not make, it does not build properly with make at the moment on FreeBSD.</p>
<p><strong>Run Freeswitch</strong></p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>cd /usr/local/freeswitch/bin
./freeswitch</pre>
</div>
</div>
<p><a name="Cross_Compiling_for_ARM_on_Linux"></a></p>
<h3>Cross Compiling for ARM on Linux</h3>
<p>These instructions were tested on Linux 2.6.18 (Centos 5) Cross compiling Linux 2.6.21 for ARM using gcc 3.4.6</p>
<p>All commands should be executed from within the main source repository.</p>
<p>Create a modules.conf. (this can be done after configure but it is convenient to do it now)</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>cp build/modules.conf.in modules.conf</pre>
</div>
</div>
<p>Decide if you want to include cpp code, if you are running on a small embedded system and don&#8217;t want to install the 2+MBytes libstdc++.so edit Makefile.am in the root of the source repository and remove all references to switch_cpp.cpp and switch_cpp.h, there is one of each. This will also disable all of FreeSWITCH&#8217;s language modules, edit modules.conf and comment out all the language modules, that is all the lines starting with &#8220;language&#8221;. You can still write C applications with the cpp disabled.</p>
<p>I was not able to get javascript working so you should comment out languages/mod_spidermonkey* from modules.conf and comment out the line &#8220;AC_CONFIG_SUBDIRS(libs/js)&#8221; in the file configure.in. If you figure out a way to get it working update this page, I wasn&#8217;t motivated as I did not intend to use it.</p>
<p>If you want to reduce the build time you can comment out other support libraries from configure.in, I only used and tested the following, it saves a lot of build time and I don&#8217;t know if the other libraries will build: libs/srtp libs/sqlite libs/libresample libs/libedit libs/pcre libs/apr libs/apr-util libs/codec/ilbc libs/sofia-sip libs/libsndfile libs/voipcodecs I already had a version of curl cross compiled so I did not use the version that comes with FreeSWITCH.<br />
Run this command next, it will create all the configure scripts</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>./bootstrap.sh</pre>
</div>
</div>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Informational Tip" href="http://wiki.freeswitch.org/wiki/Image:Info.png"><img longdesc="/wiki/Image:Info.png" src="http://wiki.freeswitch.org/images/thumb/b/b3/Info.png/64px-Info.png" alt="Informational Tip" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<hr />Some Linux distributions (Debian, for example) include both autoconf2.13 and autoconf2.50 along with a script called &#8220;autoconf&#8221; that automatically selects between the two. The numbers appended to the programs show which flavor of autoconf it provides, but autoconf2.50 can actually be autoconf version 2.61. bootstrap.sh checks for the version of autoconf, but the autoconf script returns version 2.13 by default. If bootstrap.sh fails with a complaint about needing autoconf 2.59 or above and you have installed the prerequisites listed below, try:</p>
<hr /></div>
</div>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>AUTOCONF=/usr/bin/autoconf ./bootstrap.sh</pre>
</div>
</div>
<p>Several of the packages cannot detect capabilities of the Cross Compile environment correctly so configure needs to be called with many options to get it to work correctly. Check that the options I have match your Cross Compile environment. Prior to running this the following environment variables must be set: TARGET_CC &#8211; the cross compiler HOSTCC &#8211; the host compiler CFLAGS &#8211; CFLAGS for the cross compiler CPPFLAGS &#8211; CPPFLAGS for the cross compiler LDFLAGS &#8211; LDFLAGS for the cross compiler These environment variables also need to be set to point to the appropriate tool in the cross compiler&#8217;s toolchain CC, CXX, AR, LD, GCC, AS, NM, RANLIB, STRIP, SIZE, OBJCOPY &amp; OBJDUMP. Not sure if they are all used, but this is what worked for me.</p>
<p>You will need to adjust some setting to fit your environment, set the &#8220;path&#8221; in ac_cv_path__libcurl_config and &#8211;with-curl, or remove them if you use the version that comes with FreeSWITCH. Set &#8211;with-modinstdir to point to where the FreeSWITCH modules will be on the target filesystem.</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>export config_TARGET_CC="$(TARGET_CC)"; \
   export config_BUILD_CC="$(HOSTCC)"; \
   export config_TARGET_CFLAGS="$(CFLAGS)"; \
   export config_TARGET_LIBS="$(LDFLAGS)"; \
   export CC_FOR_BUILD="$(HOSTCC)"; \
   export CFLAGS_FOR_BUILD=" "; \
   export ac_cv_file__dev_zero=no; \
   export apr_cv_tcp_nodelay_with_cork=yes; \
   export ac_cv_sizeof_ssize_t=4; \
   export ac_cv_file_dbd_apr_dbd_mysql_c=yes; \
   export ac_cv_path__libcurl_config=/path/curl-config; \
   export apr_cv_mutex_recursive=yes; \
   export ac_cv_func_pthread_rwlock_init=yes; \
   export apr_cv_type_rwlock_t=yes; \
       ./configure \
       --target=$(GNU_TARGET_NAME) \
       --host=$(GNU_TARGET_NAME) \
       --build=$(GNU_HOST_NAME) \
       --with-libcurl=/path/install \
       --with-devrandom=/dev/urandom \
       --with-modinstdir=/mod \</pre>
</div>
</div>
<p>If you have not done so edit modules.conf so that it will build the modules you desire. If you are unsure, leave this to the defaults. FreeSWITCH™ comes with a good set of modules as the default, until you become more familiar with FreeSWITCH™ it is advised that you not edit modules.conf. A # at the beginning will omit that module from being built. A list of the modules can be obtained from the <a title="Modules" href="http://wiki.freeswitch.org/wiki/Modules">Modules</a> page.</p>
<p>Once you are done configuring the build environment you need to run the following command. (Your PATH must point to the cross compiler toolchain)</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>make</pre>
</div>
</div>
<p>I found little use for make install as I didn&#8217;t want the Cross Compiled version installed on the build system. You will need to copy the freeswitch binary, library and modules directly out of the build tree into where ever you need them.</p>
<p><a name="Compile_Errors.3F"></a></p>
<h2>Compile Errors?</h2>
<p>Did you get any compile errors or notice any bugs? Remember FreeSWITCH is still in development and requires contribution from everybody. If you encounter a bug please file a bug report at <a class="external free" title="http://jira.freeswitch.org" rel="nofollow" href="http://jira.freeswitch.org/">http://jira.freeswitch.org</a> or email freeswitch-dev@lists.freeswitch.org (we prefer that you use Jira so that we can track all issues). Sometimes bugs are fixed by the time you notice them, if you do encounter a bug you may wish to get a more recent version of the source code and rebuild.</p>
<p><a name="Rebuilding"></a></p>
<h2>Rebuilding</h2>
<p>After doing a &#8220;svn update&#8221; or changing some source files, you may want to clean out your build area. To ensure that your build is clean, you should execute:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>make clean modwipe</pre>
</div>
</div>
<p>Alternatively, you can simply execute &#8220;make current&#8221; which will handle the svn up, clean up, and rebuild in one step:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>make current</pre>
</div>
</div>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Warning" href="http://wiki.freeswitch.org/wiki/Image:Warning.png"><img longdesc="/wiki/Image:Warning.png" src="http://wiki.freeswitch.org/images/thumb/c/cb/Warning.png/64px-Warning.png" alt="Warning" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<hr />NOTE: make current will take a while as it <strong>completely</strong> cleans the build environment and rebuilds FreeSWITCH!<br />
<hr /></div>
</div>
<p>Also, the clean targets leave the &#8220;modules.conf&#8221; file. To see if there are any new modules you may want to execute</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>diff build/modules.conf.in modules.conf</pre>
</div>
</div>
<p>Once you are satisfied with your options, follow the build directions above. If you have enabled a module that was not previously enabled, and you want to build just that module, or rebuild one that has changed, you may execute the following:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>make mod_name-install</pre>
</div>
</div>
<p>where mod_name is the name of the module you wish to rebuild.</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Informational Tip" href="http://wiki.freeswitch.org/wiki/Image:Info.png"><img longdesc="/wiki/Image:Info.png" src="http://wiki.freeswitch.org/images/thumb/b/b3/Info.png/64px-Info.png" alt="Informational Tip" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<hr />that doing a &#8220;make install&#8221; will not overwrite any existing files in $(PREFIX)/conf if there already exists a $(PREFIX)/conf/freeswitch.xml file.</p>
<hr /></div>
</div>
<p><a name="Prerequisites"></a></p>
<h2>Prerequisites</h2>
<p>In order to build FreeSWITCH™ from the source code, you will need to have several tools installed. The list varies from platform to platform, and are listed here. Some distributions come with these requirements while others require you to obtain them.</p>
<p><a name="Unix-like_systems"></a></p>
<h3>Unix-like systems</h3>
<ul>
<li> <strong>SVN</strong>: an SVN client gives you access to the current code repository. Alternatively you may select to get a nightly tarball of the source instead of using SVN.</li>
<li> <strong>GNUMAKE</strong>: The GNU version of make.</li>
<li> <strong>AUTOCONF</strong>: Version 2.50 or higher</li>
<li> <strong>AUTOMAKE</strong>: Version 1.70 or higher</li>
<li> <strong>GLIBTOOL</strong>: Version 1.5.14 or higher</li>
<li> <strong>GCC</strong>: Version 3.95 or higher</li>
<li> <strong>WGET</strong>: Almost any version</li>
<li> <strong>LIBNCURSES</strong>: Almost any version</li>
</ul>
<p><a name="Mac_OS_X"></a></p>
<h4>Mac OS X</h4>
<p>You will need to install the Apple <a class="external text" title="http://connect.apple.com" rel="nofollow" href="http://connect.apple.com/">XCode development software</a> (which requires registration, but is free).  This should be performed first.</p>
<p>One easy way to install any missing tools is by using <a class="external text" title="http://www.finkproject.org" rel="nofollow" href="http://www.finkproject.org/">Fink</a>. Fink is a MacOS X tool that allows you to download convenient, pre-compiled binaries as well as source code for over 1,700 software packages.</p>
<p>The standard &#8220;fink install&#8221; includes the 1.5.10 version of glibtool, in order to get the 1.5.14 or later version, you must tell Fink to use the unstable branch (fink.conf man page), which then leads to an automatic download and install of the latest glibtool version.</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>"fink install svn-client make automake1.9 autoconf2.5 libtool14 wget"</pre>
</div>
</div>
<p>However you install these tools, you will need to make certain they&#8217;re on your PATH.</p>
<p><a name="pfSense_package_with_GUI"></a></p>
<h4>pfSense package with GUI</h4>
<p>pfSense FreeSWITCH package is available for pfSense 1.2.1. The package includes a GUI for FreeSWITCH&#8217;s configuration. The naming convention for the GUI has been designed to closely match the XML tag names and file names used in the default XML configuration as closely as possible. Install pfSense 1.2.1 based on FreeBSD7, Then go to System -&gt; Packages and click the &#8216;+&#8217; add button on the right to install FreeSWITCH from the packages list. The package is around 50mb because it includes 8khz, and 16khz sounds and music on hold. After the installation FreeSWITCH will automatically start. By default it will bind to the WAN IP.</p>
<p>To download pfSense 1.2.1 go to: <a class="external free" title="http://www.pfsense.com/" rel="nofollow" href="http://www.pfsense.com/">http://www.pfsense.com/</a></p>
<p>The pfSense FreeeSWITCH package is being used on several live systems on dedicated hardware. It also has been tested and used from VMware and the audio quality is great.</p>
<p>If you already have a firewall in place and just want to use this package as an easy FreeSWITCH install you can turn off the firewall in pfSense by going to System -&gt; Advanced -&gt; Disable Firewall then put a check mark in &#8216;Disable all packet filtering.&#8217;</p>
<p>A pfSense based FreeSWITCH appliance under development and coming soon.</p>
<p><a name="Trixswitch_ISO"></a></p>
<h4>Trixswitch ISO</h4>
<p>To work with souce, you will need to install the c++ compiler: yum install gcc-c++ and also for trixswitch v.0.4 (at least) yum install subversion yum install make</p>
<p>After the foregoing are installed, you can use the &#8220;svn&#8221; i.e. subversion system to download the source as described in the main article, above.</p>
<p>Then, you must run the following files to install automake,autoconf, and libtool:</p>
<p>fixlibtool.sh fixautomake.sh fixautoconf.sh</p>
<p>You can find these scripts in freeswitch/bin/trunk/build/</p>
<p>If you do wind up installing gcc-c++ after an aborted build, you must start back at the beginning with ./configure</p>
<p><a name="Debian_Linux"></a></p>
<h4>Debian Linux</h4>
<p><a class="external text" title="http://www.debian.org" rel="nofollow" href="http://www.debian.org/">Debian</a> uses the aptitude <em>a.k.a. “apt”</em> package manager.  This allows you to quickly and easily install the prerequisites.</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>aptitude install subversion subversion-tools automake1.9 gcc-4.1 autoconf make wget libtool g++ libncurses5 libncurses5-dev</pre>
</div>
</div>
<p>For Python integration, the following will work. Ensure you update /usr/bin/python to point at /usr/bin/python2.5 afterwards and configure will find a working Python library.</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>aptitude install python2.5 python2.5-dev</pre>
</div>
</div>
<p>For TLS to work (needed to use Dingaling with gmail.com), also GNUTLS is necessary.</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>aptitude install libgnutls-dev</pre>
</div>
</div>
<p>The source tree includes a <strong>debian/</strong> directory, so you can build a package using standard debian tools. First, do the svn checkout into a directory named after the version in the debian/changelog (i.e. freeswitch-1.0~beta3) or move it there immediately after the svn checkout. Then you still need to start with the ./bootstrap.sh step, and once done you <strong>SHOULD NOT</strong> move the directory, as explicit paths will have been inserted into some of the Makefiles (don&#8217;t run bootstrap.sh if you are going to use the <strong>debuild</strong> tool since its not needed, it will do it for you).</p>
<p>One of the several ways of then building the package is:</p>
<ul>
<li> ensure that you have the <a class="external text" title="http://packages.debian.org/stable/devscripts" rel="nofollow" href="http://packages.debian.org/stable/devscripts">devscripts</a> package installed.</li>
</ul>
<ul>
<li> Then (optionally) change the package version to something that includes the SVN version you&#8217;re building. This can be done by running <strong>dch -i</strong> and setting the version to something like: 1.0~beta3-0~svn7245</li>
</ul>
<ul>
<li> Perhaps (if you know what you&#8217;re doing) edit the modules to build that are set near the start of <strong>debian/rules</strong></li>
</ul>
<ul>
<li> then just run <strong>debuild -i -us -uc -b</strong> (which might tell you that there are some build dependencies missing, in which case, just install them and try again)</li>
</ul>
<p>After that, you should have a several <em>.deb</em> files in the directory above the source directory which can be installed with <strong>dpkg -i <em>packagename.</em>deb</strong></p>
<p><a name="Experience_compiling_FreeSwitch_1.0.1"></a></p>
<h5>Experience compiling FreeSwitch 1.0.1</h5>
<p>Another way is to first install the &#8220;build-essential&#8221; package:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>aptitude install build-essential</pre>
</div>
</div>
<p>Then run &#8220;dpkg-buildpackage&#8221; to build all the required .deb files:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>dpkg-buildpackage</pre>
</div>
</div>
<p>(Start dpkg-buildpackage in the freeswitch source directory.) dpkg-buildpackage will complain about missing dependencies, use the list of missing packages as indicated above; for example:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>aptitude install debhelper automake1.9 autoconf libtool unixodbc-dev libasound2-dev libcurl4-openssl-dev libssl-dev libogg-dev libvorbis-dev libperl-dev libgdbm-dev libdb-dev libgnutls-dev</pre>
</div>
</div>
<p>and restart &#8220;dpkg-buildpackage&#8221; to finish building the Debian packages.</p>
<p>Recommend packages are freeswitch_1.0.1-1_i386.deb and freeswitch-lang-de_1.0.1-1_i386.deb, the packages freeswitch-spidermonkey, freeswitch-lua, freeswitch-perl, freeswitch-sounds-music-8000 and monit are suggested by the base freeswitch package. The package monit have to be installed from the standard repository.</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>dpkg -i freeswitch_1.0.1-1_i386.deb freeswitch-lang-en_1.0.1-1_i386.deb freeswitch-spidermonkey_1.0.1-1_i386.deb freeswitch-lua_1.0.1-1_i386.deb freeswitch-perl_1.0.1-1_i386.deb freeswitch-sounds-music-8000_1.0.1-1_i386.deb</pre>
</div>
</div>
<p>Installing monit with aptitude:</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>aptitude install monit</pre>
</div>
</div>
<p>Monit is used to monitor the fs process and restart it if it dies, but it won&#8217;t start unless it is configured. First you have to activate it in &#8220;/etc/default/monit&#8221; with setting the value startup to 1. The second step is to uncomment &#8220;set daemon 120&#8243; in /etc/monit/monitrc and add &#8220;include /etc/monit/freeswitch.monitrc&#8221; in the end of the file. After all you should be able to start monit with the provided init-script.</p>
<p>Note: Once you install the packages (using &#8220;dpkg -i freeswitch_1.0.1-1_i386.deb&#8221;, etc.), the installation is non-standard since freeswitch will end up in /opt/freeswitch. The configuration files will be in /opt/freeswitch/conf.</p>
<p><a name="For_a_Novice.2C_Another_Debian_Way_1.0.2"></a></p>
<h5>For a Novice, Another Debian Way 1.0.2</h5>
<p>I also found this guy&#8217;s instructions rather very simple for a novice  courtsey of <a class="external free" title="http://madhawa.com/?p=10" rel="nofollow" href="http://madhawa.com/?p=10">http://madhawa.com/?p=10</a></p>
<p><a name="CentOS"></a></p>
<h4>CentOS</h4>
<p><a class="external text" title="http://www.centos.org" rel="nofollow" href="http://www.centos.org/">CentOS</a> uses yum as a package manager; the following installs the required prerequisites on a base install of CentOS 5.0 and 5.1.</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>yum install subversion autoconf automake libtool gcc-c++ ncurses-devel make</pre>
</div>
</div>
<p><a name="Fedora"></a></p>
<h4>Fedora</h4>
<p><a class="external text" title="http://www.fedoraproject.org" rel="nofollow" href="http://www.fedoraproject.org/">Fedora</a> also uses yum as a package manager; the following installs the required prerequisites on a base install of Fedora Core 8 and 9.</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>yum install subversion autoconf automake libtool gcc-c++ ncurses-devel make</pre>
</div>
</div>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Informational Tip" href="http://wiki.freeswitch.org/wiki/Image:Info.png"><img longdesc="/wiki/Image:Info.png" src="http://wiki.freeswitch.org/images/thumb/b/b3/Info.png/64px-Info.png" alt="Informational Tip" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<hr />Note: if you are building <a title="Mod xml curl" href="http://wiki.freeswitch.org/wiki/Mod_xml_curl">mod_xml_curl</a>, be aware that the latest Fedora releases have a broken libcurl shipped with yum and you will end up with an unloadable mod_xml_curl module due to missing symbols. You will probably need to configure FreeSWITCH using the &#8211;without-libcurl switch, this will make the build process to download and compile its own libcurl version, and then link the mod_xml_curl module with that.</p>
<hr /></div>
</div>
<p><a name="Gentoo_Linux"></a></p>
<h4>Gentoo Linux</h4>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Warning" href="http://wiki.freeswitch.org/wiki/Image:Warning.png"><img longdesc="/wiki/Image:Warning.png" src="http://wiki.freeswitch.org/images/thumb/c/cb/Warning.png/64px-Warning.png" alt="Warning" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<hr /><strong>The FreeSWITCH ebuild has been removed from the Gentoo voip overlay, please use one of the supported binary-only distributions (or the manual installation method, if it really has to be Gentoo).</strong><br />
<hr /></div>
</div>
<div style="text-align: center;">Or use a local overlay, I tested the following ebuilds and they work for me. &#8211;<a class="new" title="User:Cjc" href="http://wiki.freeswitch.org/index.php?title=User:Cjc&amp;action=edit">Cjc</a> 04:48, 6 September 2008 (EDT)<br />
There are some <a class="external text" title="http://oss.axsentis.de/gitweb/?p=axsentis-overlay.git;a=tree;f=net-misc;hb=HEAD" rel="nofollow" href="http://oss.axsentis.de/gitweb/?p=axsentis-overlay.git;a=tree;f=net-misc;hb=HEAD">ebuilds available from axsentis.de</a>.<br />
See Gentoo bug <a class="external text" title="http://bugs.gentoo.org/show_bug.cgi?id=150527" rel="nofollow" href="http://bugs.gentoo.org/show_bug.cgi?id=150527">#150527</a> and <a class="external text" title="http://bugs.gentoo.org/show_bug.cgi?id=233174" rel="nofollow" href="http://bugs.gentoo.org/show_bug.cgi?id=233174">#233174</a> for more information.</div>
<p><a name="Solaris"></a></p>
<h4>Solaris</h4>
<p><a class="external text" title="http://www.sun.com" rel="nofollow" href="http://www.sun.com/">Solaris</a> use the <a class="external text" title="http://opensolaris.org/os/project/jds/contributing/building/#jds-cbe" rel="nofollow" href="http://opensolaris.org/os/project/jds/contributing/building/#jds-cbe">jds-cbe</a> environment or fix path to working tr (as per <a class="external text" title="http://jira.freeswitch.org/browse/FSBUILD-30" rel="nofollow" href="http://jira.freeswitch.org/browse/FSBUILD-30">FSBUILD-30</a>).</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>export PATH=/usr/xpg4/bin:$PATH</pre>
</div>
</div>
<ul>
<li> Use <a class="external text" title="http://developers.sun.com/sunstudio/index.jsp" rel="nofollow" href="http://developers.sun.com/sunstudio/index.jsp">SunStudio 12</a></li>
<li> Install <a class="external text" title="http://pkgbuild.sourceforge.net/spec-files-extra/" rel="nofollow" href="http://pkgbuild.sourceforge.net/spec-files-extra/">SFE (Spec Files Extra)</a></li>
<li> Add SFEunixODBC to your Solaris installation</li>
</ul>
<p><a name="OpenSolaris_Nevada"></a></p>
<h4>OpenSolaris Nevada</h4>
<p>This is the distribution from the opensolaris.org guys, do not mix that up with os200805 which is the new OpenSolaris based distro from SUN.</p>
<ul>
<li> Select your development user. I will assume for the time being that the user is called freeswitch.</li>
<li> Create the target directory for freeswitch</li>
</ul>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>mkdir /opt/freeswitch; chown freeswitch /opt/freeswitch</pre>
</div>
</div>
<ul>
<li> Give your build and development user software installation rights</li>
</ul>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>usermod -P "Software Installation" freeswitch</pre>
</div>
</div>
<ul>
<li> log out and log back in as the freeswitch user (so that the new permissions become active)</li>
</ul>
<ul>
<li> download and unpack the new jds-cbe beta package:</li>
</ul>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>/usr/sfw/bin/wget <a class="external free" title="http://dlc.sun.com/osol/jds/downloads/cbe/test/desktop-cbe-1.7.0-rc1-x86.tar.bz2" rel="nofollow" href="http://dlc.sun.com/osol/jds/downloads/cbe/test/desktop-cbe-1.7.0-rc1-x86.tar.bz2">http://dlc.sun.com/osol/jds/downloads/cbe/test/desktop-cbe-1.7.0-rc1-x86.tar.bz2</a>
gtar xvfz desktop-cbe-1.7.0-rc1-x86.tar.bz2"</pre>
</div>
</div>
<p>Install JDS-CBE</p>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>cd desktop-cbe-1.7.0-rc1
./cbe-install</pre>
</div>
</div>
<ul>
<li> leave everything as default. Select the SunStudio compiler as your default compiler.</li>
</ul>
<ul>
<li> Download the spec-files-extra repository into a subdirectory called SFE</li>
</ul>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>svn co <a class="external free" title="https://pkgbuild.svn.sourceforge.net/svnroot/pkgbuild/spec-files-extra/trunk" rel="nofollow" href="https://pkgbuild.svn.sourceforge.net/svnroot/pkgbuild/spec-files-extra/trunk">https://pkgbuild.svn.sourceforge.net/svnroot/pkgbuild/spec-files-extra/trunk</a> SFE</pre>
</div>
</div>
<ul>
<li> Load the jds-cbe environment</li>
</ul>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>. /opt/dtbld/bin/env.sh</pre>
</div>
</div>
<ul>
<li> Compile and install SFEunixodbc</li>
</ul>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>cd SFE
pkgtool --download build SFEunixodbc.spec</pre>
</div>
</div>
<ul>
<li> Download freeswitch trunk</li>
</ul>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>svn co <a class="external free" title="http://svn.freeswitch.org/svn/freeswitch/trunk" rel="nofollow" href="http://svn.freeswitch.org/svn/freeswitch/trunk">http://svn.freeswitch.org/svn/freeswitch/trunk</a> fstrunk</pre>
</div>
</div>
<ul>
<li> Prepare the freeswitch sources</li>
</ul>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>cd fstrunk; ./bootstrap.sh</pre>
</div>
</div>
<ul>
<li> and edit the modules.conf file to select which modules you would like to have installed</li>
</ul>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>vim modules.conf</pre>
</div>
</div>
<ul>
<li> Configure freeswitch sources for 64bit</li>
</ul>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>CFLAGS=-m64 CXXYFLAGS=-m64 LDFLAGS=-m64 ./configure --prefix=/opt/freeswitch --enable-core-odbc-support \
--enable-core-libedit-support --enable-64 --with-openssl=/usr/sfw</pre>
</div>
</div>
<ul>
<li> or for 32bit</li>
</ul>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>CFLAGS=-m32 CXXYFLAGS=-m32 LDFLAGS=-m32 ./configure --prefix=/opt/freeswitch --enable-core-odbc-support \
--enable-core-libedit-support --with-openssl=/usr/sfw</pre>
</div>
</div>
<ul>
<li> Drink a cup of coffee</li>
</ul>
<ul>
<li> run make :)</li>
</ul>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>gmake</pre>
</div>
</div>
<ul>
<li> Install freeswitch into its target directory</li>
</ul>
<div style="float: left; width: 100%;">
<div class="floatleft"><span><a class="image" title="Type This" href="http://wiki.freeswitch.org/wiki/Image:Keyboard.png"><img longdesc="/wiki/Image:Keyboard.png" src="http://wiki.freeswitch.org/images/thumb/a/a9/Keyboard.png/64px-Keyboard.png" alt="Type This" width="64" height="64" /></a></span></div>
<div style="float: left; width: 90%;">
<pre>gmake install</pre>
</div>
</div>
<p>You are done :)</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a title="Edit section: Windows" href="http://wiki.freeswitch.org/index.php?title=Download_%26_Installation_Guide&amp;action=edit&amp;section=26">edit</a>]</div>
<p><a name="Windows_2"></a></p>
<h3>Windows</h3>
<div class="editsection" style="float: right; margin-left: 5px;">[<a title="Edit section: Precompiled Binaries" href="http://wiki.freeswitch.org/index.php?title=Download_%26_Installation_Guide&amp;action=edit&amp;section=27">edit</a>]</div>
<p><a name="Precompiled_Binaries"></a></p>
<h4>Precompiled Binaries</h4>
<p>For those that do not want to compile, I&#8217;ve put together an MSI install file for Windows (currently SVN 10175 &#8211; 10/27/08). Direct link: <a class="external free" title="http://files.freeswitch.org/freeswitch.msi" rel="nofollow" href="http://files.freeswitch.org/freeswitch.msi">http://files.freeswitch.org/freeswitch.msi</a></p>
<p>This build includes the standard modules and libraries. In addition:</p>
<p><a class="external text" title="http://wiki.freeswitch.org/wiki/Mod_cepstral" rel="nofollow" href="http://wiki.freeswitch.org/wiki/Mod_cepstral">mod_cepstral</a> (if you plan to enable this module you&#8217;ll need the Windows release of Cepstral installed).<br />
<a class="external text" title="http://wiki.freeswitch.org/wiki/Mod_flite" rel="nofollow" href="http://wiki.freeswitch.org/wiki/Mod_flite">mod_flite</a><br />
<a class="external text" title="http://wiki.freeswitch.org/wiki/Mod_pocketsphinx" rel="nofollow" href="http://wiki.freeswitch.org/wiki/Mod_pocketsphinx">mod_pocketsphinx</a><br />
<a class="external text" title="http://wiki.freeswitch.org/wiki/Mod_shout" rel="nofollow" href="http://wiki.freeswitch.org/wiki/Mod_shout">mod_shout</a><br />
8khz sound files</p>
<p>Before starting up FreeSwitch, make sure you have the Microsoft VC++ 2008 redistributable library installed:</p>
<pre><a class="external free" title="http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;displaylang=en" rel="nofollow" href="http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;displaylang=en</a>   (free download)</pre>
<p>If you let the MSI install under the default path, it&#8217;ll place everything in &#8220;C:\Program Files\FreeSWITCH&#8221;. The main executable is under this folder, the MSI will setup a program group with a shortcut to this exe.</p>
<p>Also, this build has the mod_cepstral module compiled so if you have the Windows version of Cepstral installed you&#8217;ll want to make sure you enable this module (enable it from modules.conf.xml in c:\program files\freeswitch\conf\autoload_configs). If you&#8217;re coming from the Asterisk world think of the conf folder as /etc/asterisk. Since most of the config files are built from *nix machines, you&#8217;ll probably need Microsoft Word to edit them.</p>
<p>You&#8217;ll note there&#8217;s a large repository of scripts under the scripts folder. All of these are examples from the src. You might be interested in checking out the wiki page I wrote up on <a class="external text" title="http://wiki.freeswitch.org/wiki/Mod_rss" rel="nofollow" href="http://wiki.freeswitch.org/wiki/Mod_rss">mod_rss</a>. It makes great use of mod_cepstral for TTS tranlations of RSS news feeds. You can replace all the references to /opt/freeswitch on that page to &#8220;C:\Program Files\FreeSWITCH&#8221;.</p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a title="Edit section: Windows quick start" href="http://wiki.freeswitch.org/index.php?title=Download_%26_Installation_Guide&amp;action=edit&amp;section=28">edit</a>]</div>
<p><a name="Windows_quick_start"></a></p>
<h4>Windows quick start</h4>
<p>It would probably help to know some basic console commands! Once you launch the FreeSWITCH exe you will be placed in the console. From here:</p>
<p>&#8220;help&#8221; displays all available console commands.</p>
<p>&#8220;sofia status&#8221; will display all sip profiles, gateways and their status.</p>
<p>You can drill down and say &#8220;sofia status profile internal&#8221; to list the internal profile and all registered internal endpoints.</p>
<p>&#8220;show channels&#8221; will display all active sessions.</p>
<p>&#8220;status&#8221; gives you uptime information.</p>
<p>&#8220;version&#8221; will display version information.</p>
<p>&#8220;shutdown&#8221; will bring down the switch. You cannot exit from the initial console that starts the switch without shutting it down. There is a socket based perl script in scripts/socket folder (fsconsole.pl) which will allow you to remotely connect to the console.</p>
<p>&#8220;load &lt;module&gt;&#8221; and &#8220;unload &lt;module&#8221; work similar to the Asterisk equivalent.</p>
<p>&#8220;reloadxml&#8221; is useful when editing your dialplan and can&#8217;t afford to restart the server. Just be aware of some restrictions: <a class="external free" title="http://wiki.freeswitch.org/wiki/FreeSwitch_FAQ#Q:_Does_reloadxml_reload_all_xml_files.3F" rel="nofollow" href="http://wiki.freeswitch.org/wiki/FreeSwitch_FAQ#Q:_Does_reloadxml_reload_all_xml_files.3F">http://wiki.freeswitch.org/wiki/FreeSwitch_FAQ#Q:_Does_reloadxml_reload_all_xml_files.3F</a></p>
<p>All of the console commands are covered on this wiki page: <a class="external free" title="http://wiki.freeswitch.org/wiki/Mod_commands#Core_Commands" rel="nofollow" href="http://wiki.freeswitch.org/wiki/Mod_commands#Core_Commands">http://wiki.freeswitch.org/wiki/Mod_commands#Core_Commands</a></p>
<p>Finally, the Getting Started wiki page has some useful extensions to try out <a class="external free" title="http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Some_stuff_to_try_out.21" rel="nofollow" href="http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Some_stuff_to_try_out.21">http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Some_stuff_to_try_out.21</a> The default configuration includes 20 endpoint definitions in <em>prefix</em>\conf\directory\default (1000-1019).xml. More information on endpoints: <a class="external free" title="http://wiki.freeswitch.org/wiki/Getting_Started_Guide#User_Configuration" rel="nofollow" href="http://wiki.freeswitch.org/wiki/Getting_Started_Guide#User_Configuration">http://wiki.freeswitch.org/wiki/Getting_Started_Guide#User_Configuration</a></p>
<p>See here to configure a trunk (gateway) &#8211; <a class="external free" title="http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Sample_Gateway_Configuration" rel="nofollow" href="http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Sample_Gateway_Configuration">http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Sample_Gateway_Configuration</a></p>
<p>And to dial out via your newly created gateway &#8211; <a class="external free" title="http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Dialing_out_via_Gateway" rel="nofollow" href="http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Dialing_out_via_Gateway">http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Dialing_out_via_Gateway</a></p>
<p>Finally, receiving inbound calls from your gateway &#8211; <a class="external free" title="http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Receiving_an_inbound_call_from_a_Gateway" rel="nofollow" href="http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Receiving_an_inbound_call_from_a_Gateway">http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Receiving_an_inbound_call_from_a_Gateway</a></p>
<div class="editsection" style="float: right; margin-left: 5px;">[<a title="Edit section: Voicemail via email" href="http://wiki.freeswitch.org/index.php?title=Download_%26_Installation_Guide&amp;action=edit&amp;section=29">edit</a>]</div>
<p><a name="Voicemail_via_email"></a></p>
<h4>Voicemail via email</h4>
<p>A recent svn release of FreeSWITCH includes sending voicemail via SMTP from Windows (this was not possible before). See this page for more information: <a class="external free" title="http://wiki.freeswitch.org/wiki/Windows_email" rel="nofollow" href="http://wiki.freeswitch.org/wiki/Windows_email">http://wiki.freeswitch.org/wiki/Windows_email</a></p>
<p><a name="Building_from_source"></a></p>
<h4>Building from source</h4>
<p>To compile FreeSWITCH on Windows, you will need Visual C++ 2005 and if you are installing the Express Edition, the platform SDK (see these instructions for more details).</p>
]]></content:encoded>
			<wfw:commentRss>http://callsolutions.org/freeswitch-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeSwitch Softswitch</title>
		<link>http://callsolutions.org/freeswitch-softswitch/</link>
		<comments>http://callsolutions.org/freeswitch-softswitch/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 23:49:37 +0000</pubDate>
		<dc:creator>nelson</dc:creator>
				<category><![CDATA[FreeSwitch]]></category>
		<category><![CDATA[free switch]]></category>
		<category><![CDATA[free switch h323]]></category>
		<category><![CDATA[freeswitch h323]]></category>
		<category><![CDATA[freeswitch sip]]></category>
		<category><![CDATA[soft switch]]></category>
		<category><![CDATA[softswitch]]></category>

		<guid isPermaLink="false">http://callsolutions.org/?p=35</guid>
		<description><![CDATA[What is FreeSWITCH?
Here is from freeswitch.org
FreeSWITCH is an open source telephony platform designed to facilitate the creation of voice and chat driven products scaling from a soft-phone up to a soft-switch.  It can be used as a simple switching engine, a PBX, a media gateway or a media server to host IVR applications using simple [...]]]></description>
			<content:encoded><![CDATA[<h1>What is FreeSWITCH?</h1>
<p>Here is from <strong>freeswitch.org</strong></p>
<blockquote><p><span><strong>FreeSWITCH</strong> is an open source telephony platform designed to facilitate the creation of voice and chat driven products scaling from a soft-phone up to a soft-switch.  It can be used as a simple switching engine, a PBX, a media gateway or a media server to host IVR applications using simple scripts or XML to control the callflow.</p>
<p>We support various communication technologies such as SIP, H.323, IAX2 and GoogleTalk making it easy to interface with other open source PBX systems such as sipX, OpenPBX, Bayonne, YATE or <a title="asterisk" href="http://callsolutions.org/category/voip-tutorial/asterisk-pbx/installation/" target="_blank">Asterisk</a>.</p>
<p><strong>FreeSWITCH</strong> supports many advanced SIP features such as presence/BLF/SLA as well as TCP TLS and sRTP. It also can be used as a transparent proxy with and without media in the path to act as a SBC (session border controller) and proxy T.38 and other end to end protocols.</p>
<p><strong>FreeSWITCH</strong> supports both wide and narrow band codecs making it an ideal solution to bridge legacy devices to the future. The voice channels and the conference bridge module all can operate at 8, 16 or 32 kilohertz and can bridge channels of different rates.</p>
<p><strong>FreeSWITCH</strong> builds natively and runs standalone on several operating systems including Windows, Max OS X, Linux, BSD and Solaris on both 32 and 64 bit platforms.</p>
<p>Our developers are heavily involved in open source and have donated code and other resources to other telephony projects including openSER, sipX, The Asterisk Open Source PBX and Call Weaver.</span></p></blockquote>
<h2>Possible Uses</h2>
<ul>
<li>Rating &amp; Routing Server</li>
<li>Transcoding B2BUA</li>
<li>IVR &amp; Announcement Server</li>
<li>Conference Server</li>
<li>Voicemail Server</li>
<li>SBC (Session Border Controller)</li>
<li>Basic Topology Hiding Session Border Controller</li>
<li>Zaptel, Sangoma, Rhino, PIKA Hardware Support (Analog and PRI)</li>
</ul>
<p><a name="Features"></a></p>
<h2>Features</h2>
<ul>
<li>Centralized User/Domain Directory (directory.xml)</li>
<li>Nano Second CDR granularity</li>
<li>Call recording (In Stereo caller/callee left/right)</li>
<li>High Performance Multi-Threaded Core engine</li>
<li>Configuration via CURL to your http server (xml_curl).</li>
<li>XML Config files for easy parsing.</li>
<li>Protocol Agnostic</li>
<li>Configurable RFC2833 Payload type</li>
<li>Inband DTMF generation and detection.</li>
<li>Software based Conference (no hardware requirement)</li>
<li>Wideband Conferencing</li>
<li>Media / No Media modes</li>
<li>Proper ENUM/ISN dialing built in</li>
<li>Detailed CDR in XML</li>
<li>Radius CDR</li>
<li>Subscription server
<ul>
<li>Shared Line Appearances</li>
<li>Bridged Line Appearances</li>
</ul>
</li>
<li>Enterprise/Carrier grade Eventing Engine.  (XML Events, Name Value Events, Multicast Events)</li>
<li>Loadable File formats and streaming</li>
<li>Stream to Shoutcast</li>
<li>Multi-lingual Speech Phrase Interface</li>
<li>ASR/TTS support (native and via MRCP)</li>
<li>Basic IP/PBX features</li>
<li>Automated Attendant</li>
<li>Custom Ring Back Tones</li>
<li>XML RPC support</li>
<li>Multiple format CDR&#8217;s supported</li>
<li>SQL Engine provides session persistence</li>
<li>Thread Isolation</li>
<li>Parallel Hunting</li>
<li>Serial Hunting</li>
<li>Mozilla Public License</li>
<li>Support
<ul>
<li>Paid support available</li>
<li>Free support via IRC &amp; e-mail</li>
</ul>
</li>
<li>Many supported codecs
<ul>
<li>G.722 (wideband)</li>
<li>G.711</li>
<li>G.726 (16k,24k,32k,48k) AAL2 and RFC3551</li>
<li>G.723.1 (passthru)</li>
<li>G.729 (passthru)</li>
<li>AMR (passthru)</li>
<li>iLBC</li>
<li>speex (narrow and wideband)</li>
<li>lpc10</li>
<li>DVI4 (ADPCM) 8khz and 16khz</li>
</ul>
</li>
</ul>
<p><a name="Applications"></a></p>
<h2>Applications</h2>
<ul>
<li>Voicemail
<ul>
<li>Multitenancy &#8211; Enterprise/Carrier configuration</li>
<li>Time of Day Greetings</li>
<li>Urgent Message Tagging</li>
<li>EMail Delivery</li>
<li>Playback and Rerecord messages before delivery.</li>
<li>Keys are templates so you can rearrange to fit your needs.</li>
<li>Callback support from inside voicemail.</li>
<li>Podcast of Voicemail (RSS)</li>
<li>Message Waiting Indicator (MWI)</li>
</ul>
</li>
<li>Support for Queues (via mod_fifo)</li>
<li>Parking (via mod_fifo)</li>
<li>Conference
<ul>
<li>Software based Conferencing without any hardware requirements.</li>
<li>Wideband conferences.</li>
<li>Multiple on-demand or scheduled conferences with entry/exit announcements</li>
<li>Play files into the conference or a single member.</li>
<li>Relationships</li>
<li>TTS integration</li>
<li>Transfers</li>
<li>Outbound Calling</li>
<li>Configurable Key Lay</li>
<li>Volume, Gain and Energy level per call.</li>
<li>Bridge to Conference trasition</li>
<li>Multi Party outbound dialing.</li>
</ul>
</li>
<li>RSS Reader</li>
<li>T.30 Audio Fax (via <a title="Mod fax" href="http://wiki.freeswitch.org/wiki/Mod_fax">mod_fax</a>)</li>
</ul>
<p><a name="Protocols"></a></p>
<h2>Protocols</h2>
<ul>
<li>SIP
<ul>
<li>UDP, TCP, SCTP and TLS transports for full sip compliance.</li>
<li>IPv6 Support</li>
<li>SIP Session timers</li>
<li>RTP Timers</li>
<li>RFC3263 (SRV and NAPTR)</li>
<li>SRTP via SDES (works with polycom, snom, linksys and grandstream)</li>
<li>Blind SIP Registration</li>
<li>STUN Support</li>
<li>Jitter buffer</li>
<li>NAT Support</li>
<li>Distributed sip registrations</li>
<li>Late Codec Negotiation</li>
<li>Multiple sip registrations per user account.</li>
<li>Multitenancy &#8211; Multiple sip UAs</li>
<li>SIP Reinvites.</li>
<li>Can act as an SBC (session border controller)</li>
<li>Manage Presence</li>
<li>SIP/SIMPLE (can gateway to other chat protocols)</li>
<li>SIP Multicast Paging support for Linksys and Snom</li>
<li>Intercom/AutoAnswer support.</li>
<li>Call features like Call Hold(Re-INVITE), Blind Transfer(REFER), Call Forward(302) etc.</li>
</ul>
</li>
</ul>
<ul>
<li>IAX (Via a modified libiax2.)</li>
</ul>
<ul>
<li>Jingle
<ul>
<li>Interop with GoogleTalk and <a class="external text" title="http://telepathy.freedesktop.org/wiki/" rel="nofollow" href="http://telepathy.freedesktop.org/wiki/">Telepathy</a></li>
</ul>
</li>
</ul>
<ul>
<li>h.323 (Currently only supports H.323 via the Woomera protocol.  This should change soon.)</li>
</ul>
<p><a name="Languages"></a></p>
<h2>Languages</h2>
<ul>
<li>Javascript (Using the Spidermonkey Javascripting engine.)
<ul>
<li>ODBC Support from inside your Javascript</li>
<li>Extendable modules for Javascript</li>
<li>Tone Generation</li>
</ul>
</li>
</ul>
<ul>
<li>Python</li>
<li>Perl</li>
<li>Lua</li>
</ul>
<p><a name="Cross_Platform"></a></p>
<h2>Cross Platform</h2>
<ul>
<li>Builds native on Windows in MSVC</li>
<li>Builds on Mac OS X, Linux, Solaris and *BSD.</li>
</ul>
<p><a name="Minimum.2FRecommended_System_Requirements"></a></p>
<h2>Minimum/Recommended System Requirements</h2>
<ul>
<li>32bit OS (64bit recommended)</li>
<li>512MB Ram (1GB recommended)</li>
<li>50MB of Disk Space</li>
</ul>
<p>System requirements depend on your deployment needs.  We recommend you plan for 50% duty cycle.</p>
<p><a name="Performance"></a></p>
<h2>Performance</h2>
<ul>
<li>Tested under load for over 100 hours</li>
<li>10,000,000+ calls</li>
<li>At rates exceeding 50 CPS</li>
</ul>
<p>Performance will vary depending on application.  You will need to test for your particular situation.</p>
]]></content:encoded>
			<wfw:commentRss>http://callsolutions.org/freeswitch-softswitch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
