<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=Freeswitch_HowTo2</id>
	<title>Freeswitch HowTo2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=Freeswitch_HowTo2"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=Freeswitch_HowTo2&amp;action=history"/>
	<updated>2026-10-25T10:24:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>http://wiki.osgrid.org/index.php?title=Freeswitch_HowTo2&amp;diff=48&amp;oldid=prev</id>
		<title>Osgridadmin: Created page with &quot;This tutorial has been originally writen by Carlos Roundel, owner of Cyberlandia, italian grid.This tutorial is under Creative Commons License [BY-SA]  Here is an english tran...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=Freeswitch_HowTo2&amp;diff=48&amp;oldid=prev"/>
		<updated>2017-12-29T00:49:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This tutorial has been originally writen by Carlos Roundel, owner of Cyberlandia, italian grid.This tutorial is under Creative Commons License [BY-SA]  Here is an english tran...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This tutorial has been originally writen by Carlos Roundel, owner of Cyberlandia, italian grid.This tutorial is under Creative Commons License [BY-SA]&lt;br /&gt;
&lt;br /&gt;
Here is an english translation by [http://www.olivierbattini.fr/lang/en-us/freeswitch-install-tutorial/ Oliver Battini]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= &amp;lt;br&amp;gt;1. Preparing environment =&lt;br /&gt;
&lt;br /&gt;
Let’s prepare the environment. We are here running Ubuntu 8.04.2 Server.&lt;br /&gt;
&lt;br /&gt;
apt-get update&lt;br /&gt;
&lt;br /&gt;
apt-get install -y autoconf automake libtool build-essential subversion libxml2&amp;lt;br&amp;gt;apt-get install -y libxml2-dev libtiff4 libtiff4-dev php5 php5-cli&amp;lt;br&amp;gt;apt-get install -y php5-common php5-mcrypt php5-mysql php5-gd php5-pgsql php-pear php-db&amp;lt;br&amp;gt;apt-get install -y libmysqlclient15-dev curl sox libssl-dev libncurses5-dev bison&amp;lt;br&amp;gt;apt-get install -y libaudiofile-dev libnewt-dev libcurl4-gnutls-dev &amp;lt;br&amp;gt;apt-get install -y libnet-ssleay-perl openssl ssl-cert libauthen-pam-perl&amp;lt;br&amp;gt;apt-get install -y libio-pty-perl libmd5-perl&amp;lt;br&amp;gt;apt-get install -y libpg-perl libdbd-pg-perl sqlite3&amp;lt;br&amp;gt;apt-get install -y libsqlite3-dev openssl ssl-cert&amp;lt;br&amp;gt;apt-get install -y libapache2-mod-php5 libmcrypt-dev&lt;br /&gt;
&lt;br /&gt;
mkdir /home/opensim/freeswitch&amp;lt;br&amp;gt;cd /home/opensim/freeswitch&lt;br /&gt;
&lt;br /&gt;
= 2. Freeswitch install =&lt;br /&gt;
&lt;br /&gt;
Let’s now download compile and install the current Freeswitch trunk.&lt;br /&gt;
&lt;br /&gt;
svn checkout http://svn.freeswitch.org/svn/freeswitch/trunk freeswitch&lt;br /&gt;
&lt;br /&gt;
cd freeswitch&amp;lt;br&amp;gt;cd build&amp;lt;br&amp;gt;cp modules.conf.in modules.conf&lt;br /&gt;
&lt;br /&gt;
vi modules.conf&lt;br /&gt;
&lt;br /&gt;
Look for the line :&lt;br /&gt;
&lt;br /&gt;
#codecs/mod_siren&lt;br /&gt;
&lt;br /&gt;
and remove the # character.&lt;br /&gt;
&lt;br /&gt;
Look for the line :&lt;br /&gt;
&lt;br /&gt;
#xml_int/mod_xml_curl&lt;br /&gt;
&lt;br /&gt;
and remove the # character.&lt;br /&gt;
&lt;br /&gt;
Save the file ([ESCAPE] then [:wq])&lt;br /&gt;
&lt;br /&gt;
cd ..&amp;lt;br&amp;gt;AUTOCONF=/usr/bin/autoconf ./bootstrap.sh&lt;br /&gt;
&lt;br /&gt;
Wait some minutes until the operation finishes, then type :&lt;br /&gt;
&lt;br /&gt;
./configure –prefix=/usr/local/freeswitch&lt;br /&gt;
&lt;br /&gt;
Wait again some minutes until it finishes then :&lt;br /&gt;
&lt;br /&gt;
make&lt;br /&gt;
&lt;br /&gt;
Some more minutes of patience (skype, secondlife, facebook…) then,&lt;br /&gt;
&lt;br /&gt;
make install&amp;lt;br&amp;gt;make mod_siren-install&lt;br /&gt;
&lt;br /&gt;
make mod_xml_curl-install&amp;lt;br&amp;gt;make sounds-install&lt;br /&gt;
&lt;br /&gt;
make sounds-install&lt;br /&gt;
&lt;br /&gt;
make moh-install&amp;lt;br&amp;gt;make moh-install&lt;br /&gt;
&lt;br /&gt;
Note that the repetition of both commands are not an error ! Then type :&lt;br /&gt;
&lt;br /&gt;
make samples&lt;br /&gt;
&lt;br /&gt;
= 3. Freeswitch configuration for OpenSim  =&lt;br /&gt;
&lt;br /&gt;
Let’s suppose that&amp;amp;nbsp;: &lt;br /&gt;
&lt;br /&gt;
*our server is connect directly to the internet with a public IP address like&amp;amp;nbsp;: 192.111.222.33&amp;lt;br&amp;gt; * there is no firewall limiting any ingoing or outgoing connexion&amp;lt;br&amp;gt; * OpenSim runs on the TCP port 9000 on the same server where freeswitch is installed&lt;br /&gt;
&lt;br /&gt;
Now, let’s type&amp;amp;nbsp;: &lt;br /&gt;
&lt;br /&gt;
cd /usr/local/freeswitch/conf/autoload_configs/ &lt;br /&gt;
&lt;br /&gt;
vi modules.conf.xml &lt;br /&gt;
&lt;br /&gt;
Look for the line&amp;amp;nbsp;: &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;!-- &amp;amp;lt;load module=&amp;quot;mod_xml_curl&amp;quot;/&amp;amp;gt; --&amp;amp;gt; &lt;br /&gt;
&lt;br /&gt;
and replace it with&amp;amp;nbsp;: &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;load module=&amp;quot;mod_xml_curl&amp;quot;/&amp;amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[EDIT]&amp;amp;nbsp;: The following lines are already uncommented in recent versions.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strike&amp;gt;Look for the line&amp;amp;nbsp;:&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strike&amp;gt;&amp;amp;lt;!--&amp;amp;lt;load module=&amp;quot;mod_siren&amp;quot;/&amp;amp;gt;--&amp;amp;gt;&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strike&amp;gt;and replace it with&amp;amp;nbsp;:&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strike&amp;gt;&amp;amp;lt;load module=&amp;quot;mod_siren&amp;quot;/&amp;amp;gt;&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file ([ESCAPE] then [:wq]) &lt;br /&gt;
&lt;br /&gt;
cd /usr/local/freeswitch/conf/autoload_configs &lt;br /&gt;
&lt;br /&gt;
vi xml_curl.conf.xml &lt;br /&gt;
&lt;br /&gt;
Remove all lines (press [dd] many times if you use vi) &lt;br /&gt;
&lt;br /&gt;
and replace with&amp;amp;nbsp;: &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;configuration name=&amp;quot;xml_curl.conf&amp;quot; description=&amp;quot;cURL XML Gateway&amp;quot;&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;bindings&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;binding name=&amp;quot;example&amp;quot;&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;param name=&amp;quot;gateway-url&amp;quot; value=&amp;quot;http://192.111.222.33:9000/api/freeswitch-config&amp;quot; bindings=&amp;quot;directory&amp;quot;/&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;param name=&amp;quot;disable-100-continue&amp;quot; value=&amp;quot;true&amp;quot;/&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;/binding&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;binding name=&amp;quot;local&amp;quot;&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;param name=&amp;quot;gateway-url&amp;quot; value=&amp;quot;http://192.111.222.33:9000/api/freeswitch-config&amp;quot; bindings=&amp;quot;dialplan&amp;quot;/&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;param name=&amp;quot;disable-100-continue&amp;quot; value=&amp;quot;true&amp;quot;/&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;/binding&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;/bindings&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;/configuration&amp;amp;gt; &lt;br /&gt;
&lt;br /&gt;
(replace 192.111.222.33 with the server public IP address where OpenSim runs). &lt;br /&gt;
&lt;br /&gt;
Save the file. &lt;br /&gt;
&lt;br /&gt;
cd /usr/local/freeswitch/conf/ &lt;br /&gt;
&lt;br /&gt;
vi vars.xml &lt;br /&gt;
&lt;br /&gt;
Look for the line&amp;amp;nbsp;: &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;X-PRE-PROCESS cmd=&amp;quot;set&amp;quot; data=&amp;quot;global_codec_prefs=G722,PCMU,PCMA,GSM&amp;quot;/&amp;amp;gt; &lt;br /&gt;
&lt;br /&gt;
and replace it with&amp;amp;nbsp;: &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;X-PRE-PROCESS cmd=&amp;quot;set&amp;quot; data=&amp;quot;global_codec_prefs=G722,PCMU,PCMA,GSM,G7221@32000h&amp;quot;/&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
= 4. Starting Freeswtich =&lt;br /&gt;
&lt;br /&gt;
screen -S voice&lt;br /&gt;
&lt;br /&gt;
cd /usr/local/freeswitch/bin/&amp;lt;br&amp;gt;./freeswitch&lt;br /&gt;
&lt;br /&gt;
Ignore Freeswitch error messages or warnings and detach the screen with :&lt;br /&gt;
&lt;br /&gt;
[CTRL][A][D]&lt;br /&gt;
&lt;br /&gt;
= &amp;lt;br&amp;gt;5. OpenSim configuration =&lt;br /&gt;
&lt;br /&gt;
Edit the OpenSim.ini configuration file and put these lines :&lt;br /&gt;
&lt;br /&gt;
[FreeSwitchVoice]&amp;lt;br&amp;gt; ; In order for this to work you need a functioning freeswitch pbx set&amp;lt;br&amp;gt; ; up. Configuration for that will be posted in the wiki soon.&amp;lt;br&amp;gt; enabled = true&amp;lt;br&amp;gt; ;FreeSwitch server is going to contact us and ask us all&amp;lt;br&amp;gt; ;sorts of things.&amp;lt;br&amp;gt; freeswitch_server_user = freeswitch&amp;lt;br&amp;gt; freeswitch_server_pass = password&amp;lt;br&amp;gt; freeswitch_api_prefix = /api&amp;lt;br&amp;gt; ; this is the IP of your sim&amp;lt;br&amp;gt; freeswitch_service_server = 192.111.222.33&amp;lt;br&amp;gt; ; this should be the same port the region listens on&amp;lt;br&amp;gt; freeswitch_service_port = 9000&amp;lt;br&amp;gt; freeswitch_realm = 192.111.222.33&amp;lt;br&amp;gt; freeswitch_sip_proxy = 192.111.222.33:5060&amp;lt;br&amp;gt; freeswitch_attempt_stun = false&amp;lt;br&amp;gt; freeswitch_stun_server = 192.111.222.33&amp;lt;br&amp;gt; freeswitch_echo_server = 192.111.222.33&amp;lt;br&amp;gt; freeswitch_echo_port = 50505&amp;lt;br&amp;gt; freeswitch_well_known_ip = 192.111.222.33&lt;br /&gt;
&lt;br /&gt;
;Type the address of your http server here, hostname is allowed. This is provided so you can specify a hostname&amp;lt;br&amp;gt; ;This is used by client for account verification. By default, it&amp;#039;s the same as the freeswitch service server.&lt;br /&gt;
&lt;br /&gt;
;opensim_well_known_http_address = Address_Of_your_SIM_HTTP_Server_Hostname_Allowed&lt;br /&gt;
&lt;br /&gt;
freeswitch_default_timeout = 5000&amp;lt;br&amp;gt; freeswitch_subscribe_retry = 120&amp;lt;br&amp;gt; ; freeswitch_password_reset_url = &lt;br /&gt;
&lt;br /&gt;
Finished !&lt;br /&gt;
&lt;br /&gt;
Start OpenSim normally. At this moment, the voice should be available !&lt;br /&gt;
&lt;br /&gt;
Check that :&lt;br /&gt;
&lt;br /&gt;
* your parcels are enabled for spatial voice chat&amp;lt;br&amp;gt; * your headset and microphone are on&lt;br /&gt;
&lt;br /&gt;
Carlos Roundel followed the official tutorial on http://www.opensimulator.org&lt;br /&gt;
&lt;br /&gt;
Special thanks to Carlos from Cyberlandia for giving us a working tutorial and allowing us to bring voice to New World Grid.&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Osgridadmin</name></author>
	</entry>
</feed>