<?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>FreeSwitch PBX installation guide Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/freeswitch-pbx-installation-guide/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 07 Dec 2020 08:51:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install FreeSwitch PBX on Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-freeswitch-pbx-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-freeswitch-pbx-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Wed, 26 Aug 2020 14:26:04 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Business]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[FreeSwitch PBX installation guide]]></category>
		<category><![CDATA[how to install freeswitch pbx]]></category>
		<category><![CDATA[How To Install FreeSwitch PBX on Ubuntu 20.04]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[installation of freeswitch pbx on ubuntu 20.04]]></category>
		<category><![CDATA[ubuntu 20.04]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=22806</guid>

					<description><![CDATA[<p>In this tutorial, you&#8217;ll learn that how to install FreeSwitch PBX on Ubuntu 20.04. Before going to the installation process, let&#8217;s have a short introduction about the topic. Introduction: PBX stand for Private Branch Exchange. PBX is a private telephone system used by the organizations for the communication purposes within the organization. The purpose of [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-freeswitch-pbx-on-ubuntu-20-04/">How To Install FreeSwitch PBX on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial, you&#8217;ll learn that <a href="https://www.osradar.com/?p=22806" target="_blank" rel="noreferrer noopener">how to install FreeSwitch PBX on Ubuntu 20.04</a>. Before going to the installation process, let&#8217;s have a short introduction about the topic.</p>



<h2>Introduction:</h2>



<p>PBX stand for Private Branch Exchange. PBX is a private telephone system used by the organizations for the communication purposes within the organization. The purpose of using PBX is that it provides free and easy calls within the organization to the users and also can be used for external calls with the help of VoIP. It provides the features of call queues, digital reception, forward calls, voice mails and call recordings. Here in this guide we are going to use FreePBX. So, FreePBX also provides the same features as listed earlier along with the better communication. Here are some salient features of FreeSwitch PBX listed below:</p>



<ul><li>Supports Windows, Linux &amp; FreeBSD</li><li>WebRTC support</li><li>IVR API</li><li>Recording facility for calls</li><li>Better performance</li><li>Automatic Attendant</li></ul>



<p>And much more you can google it. Now we are moving toward the installation procedure.</p>



<h3>Step 1: Update Your System</h3>



<p>As it is a good practice to have the latest packages installed on our system so before going to install any new package, update your system</p>



<pre class="wp-block-verse">sudo apt -y update</pre>



<h3>Step 2: Install Required Dependencies</h3>



<p>Hit the below command to get install the required dependencies for the installation of FreeSwitch on Ubuntu 20.04.</p>



<pre class="wp-block-verse">sudo apt install -y git subversion build-essential autoconf automake libtool libncurses5 libncurses5-dev make libjpeg-dev libtool libtool-bin libsqlite3-dev libpcre3-dev libspeexdsp-dev libldns-dev libedit-dev yasm liblua5.2-dev libopus-dev cmake</pre>



<p>Also install the below additional packages for better performance but they are optional.</p>



<pre class="wp-block-verse">sudo apt install -y libcurl4-openssl-dev libexpat1-dev libgnutls28-dev libtiff5-dev libx11-dev unixodbc-dev libssl-dev python-dev zlib1g-dev libasound2-dev libogg-dev libvorbis-dev libperl-dev libgdbm-dev libdb-dev uuid-dev libsndfile1-dev</pre>



<p>After these, install the libks &amp; signal wire with the help of following commands.</p>



<pre class="wp-block-verse">cd /usr/src
sudo git clone https://github.com/signalwire/libks.git
cd libks
sudo cmake .
sudo make
sudo make install
cd /usr/src
sudo git clone https://github.com/signalwire/signalwire-c.git
cd signalwire-c
sudo cmake .
sudo make
sudo make install</pre>



<h3>Step 3: Install FreeSwitch on Ubuntu 20.04</h3>



<p>Now, visit the official page of FreeSwitch to obtain the <a rel="noreferrer noopener" href="https://files.freeswitch.org/freeswitch-releases/" target="_blank">latest version</a> or download it by wget command.</p>



<pre class="wp-block-verse">cd /usr/src
sudo wget https://files.freeswitch.org/freeswitch-releases/freeswitch-1.10.3.-release.zip
sudo apt -y install unzip
sudo unzip freeswitch-1.10.3.-release.zip
cd freeswitch-1.10.3.-release/</pre>



<p>If you&#8217;ve not installed the unzip, simply run the below command before running above command.</p>



<pre class="wp-block-verse">sudo apt -y install unzip</pre>



<p>And now run the final command to install the package.</p>



<pre class="wp-block-verse">sudo ./configure -C
sudo make</pre>



<p><strong>Note:</strong> If any error occurred during the compilation, simply comment that module or install the missing dependencies if any. And then restart the compilation as seen below:</p>



<pre class="wp-block-verse">sudo ./configure &amp;&amp; sudo make clean &amp;&amp; sudo make</pre>



<p>Successful compilation will print the following result:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="489" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/08/1-16-1024x489.png" alt="How To Install FreeSwitch PBX on Ubuntu 20.04" class="wp-image-23007" srcset="https://www.osradar.com/wp-content/uploads/2020/08/1-16-1024x489.png 1024w, https://www.osradar.com/wp-content/uploads/2020/08/1-16-300x143.png 300w, https://www.osradar.com/wp-content/uploads/2020/08/1-16-768x367.png 768w, https://www.osradar.com/wp-content/uploads/2020/08/1-16-696x333.png 696w, https://www.osradar.com/wp-content/uploads/2020/08/1-16-1068x510.png 1068w, https://www.osradar.com/wp-content/uploads/2020/08/1-16.png 1082w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>If everything okay, hit the below command to install the FreeSwitch</p>



<pre class="wp-block-verse">sudo make install</pre>



<p>Result:</p>



<p>You&#8217;ll see the similar screen</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="489" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/08/1-15-1024x489.png" alt="How To Install FreeSwitch PBX on Ubuntu 20.04" class="wp-image-23006" srcset="https://www.osradar.com/wp-content/uploads/2020/08/1-15-1024x489.png 1024w, https://www.osradar.com/wp-content/uploads/2020/08/1-15-300x143.png 300w, https://www.osradar.com/wp-content/uploads/2020/08/1-15-768x367.png 768w, https://www.osradar.com/wp-content/uploads/2020/08/1-15-696x333.png 696w, https://www.osradar.com/wp-content/uploads/2020/08/1-15-1068x510.png 1068w, https://www.osradar.com/wp-content/uploads/2020/08/1-15.png 1082w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>And then compile the sound by typing</p>



<pre class="wp-block-verse">sudo make all cd-sounds-install cd-moh-install</pre>



<p>After that create the simlinks to use the service in more convenient way.</p>



<pre class="wp-block-verse">sudo ln -s /usr/local/freeswitch/bin/freeswitch /usr/bin/<br>sudo ln -s /usr/local/freeswitch/bin/fs_cli /usr/bin</pre>



<p>Then create the new user for FreeSwitch to operate it with low privileges.</p>



<pre class="wp-block-verse">cd /usr/local
sudo groupadd freeswitch
sudo adduser --disabled-password --quiet --system --home /usr/local/freeswitch --gecos "FreeSWITCH Voice Platform" --ingroup freeswitch freeswitch
sudo chown -R freeswitch:freeswitch /usr/local/freeswitch/
sudo chmod -R ug=rwX,o= /usr/local/freeswitch/
sudo chmod -R u=rwx,g=rx /usr/local/freeswitch/bin/</pre>



<p>Now, add the new systemd unit file.</p>



<pre class="wp-block-verse">sudo nano /etc/systemd/system/freeswitch.service</pre>



<p>Then add the below data into it and save the file.</p>



<pre class="wp-block-verse">[Unit]
Description=freeswitch
Wants=network-online.target
Requires=syslog.socket network.target local-fs.target
After=syslog.socket network.target network-online.target local-fs.target
[Service]
Type=forking
Environment="DAEMON_OPTS=-nonat"
EnvironmentFile=-/etc/default/freeswitch
ExecStartPre=/bin/chown -R freeswitch:freeswitch /usr/local/freeswitch
ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait $DAEMON_OPTS
TimeoutSec=45s
Restart=always
RestartSec=90
StartLimitInterval=0
StartLimitBurst=6
User=root
Group=daemon
LimitCORE=infinity
LimitNOFILE=100000
LimitNPROC=60000
LimitSTACK=250000
LimitRTPRIO=infinity
LimitRTTIME=infinity
IOSchedulingClass=realtime
IOSchedulingPriority=2
CPUSchedulingPolicy=rr
CPUSchedulingPriority=89
UMask=0007
NoNewPrivileges=false
[Install]
WantedBy=multi-user.target</pre>



<h3>Step 4: Start FreeSwitch PBX Services</h3>



<p>Run the following command to start and enable the FreeSwitch services on Ubuntu 20.04.</p>



<pre class="wp-block-verse">sudo chmod ugo+x freeswitch.service<br>sudo systemctl start freeswitch.service<br>sudo systemctl enable freeswitch.service</pre>



<p>Verify the status by running below command.</p>



<pre class="wp-block-verse">sabir@Ubuntu20:/usr/local$ <strong>sudo systemctl status freeswitch.service</strong>
● freeswitch.service - freeswitch
Loaded: loaded (/etc/systemd/system/freeswitch.service; enabled; vendor preset: enabled)
Active: <strong>active (running)</strong> since Sat 2020-08-22 13:49:50 PKT; 38s ago
Main PID: 243622 (freeswitch)
Tasks: 22 (limit: 3449)
Memory: 56.4M
CGroup: /system.slice/freeswitch.service
└─243622 /usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat
اگست 22 13:49:50 Ubuntu20 freeswitch[243614]: FreeSWITCH[243614] Waiting for background process pid:243622 to be ready..&gt;
اگست 22 13:49:50 Ubuntu20 freeswitch[243614]: FreeSWITCH[243614] Waiting for background process pid:243622 to be ready..&gt;
اگست 22 13:49:50 Ubuntu20 freeswitch[243614]: FreeSWITCH[243614] Waiting for background process pid:243622 to be ready..&gt;
اگست 22 13:49:50 Ubuntu20 freeswitch[243614]: FreeSWITCH[243614] Waiting for background process pid:243622 to be ready..&gt;
اگست 22 13:49:50 Ubuntu20 freeswitch[243614]: FreeSWITCH[243614] Waiting for background process pid:243622 to be ready..&gt;
اگست 22 13:49:50 Ubuntu20 freeswitch[243614]: FreeSWITCH[243614] Waiting for background process pid:243622 to be ready..&gt;
اگست 22 13:49:50 Ubuntu20 freeswitch[243614]: FreeSWITCH[243614] Waiting for background process pid:243622 to be ready..&gt;
اگست 22 13:49:50 Ubuntu20 freeswitch[243614]: FreeSWITCH[243614] Waiting for background process pid:243622 to be ready..&gt;
اگست 22 13:49:50 Ubuntu20 freeswitch[243614]: FreeSWITCH[243614] System Ready pid:243622
اگست 22 13:49:50 Ubuntu20 systemd[1]: Started freeswitch.
lines 1-19/19 (END)</pre>



<h3>Step 5: Connect to FreeSwitch Client</h3>



<p>Fire the below command to connect to the FreeSwitch client.</p>



<pre class="wp-block-verse">fs_cli -r</pre>



<p>Result:</p>



<p>You&#8217;ll see the similar screen below:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="535" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/08/2-9-1024x535.png" alt="How To Install FreeSwitch PBX on Ubuntu 20.04" class="wp-image-23010" srcset="https://www.osradar.com/wp-content/uploads/2020/08/2-9-1024x535.png 1024w, https://www.osradar.com/wp-content/uploads/2020/08/2-9-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2020/08/2-9-768x401.png 768w, https://www.osradar.com/wp-content/uploads/2020/08/2-9-696x364.png 696w, https://www.osradar.com/wp-content/uploads/2020/08/2-9-1068x558.png 1068w, https://www.osradar.com/wp-content/uploads/2020/08/2-9.png 1104w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>So, this is how you can install FreeSwitch PBX on Ubuntu 20.04. For more tutorials, visit our website and explore your interesting articles.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-freeswitch-pbx-on-ubuntu-20-04/">How To Install FreeSwitch PBX on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-freeswitch-pbx-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
