<?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>ubuntu 2020 guides Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/ubuntu-2020-guides/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 Asterisk 17 on Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-asterisk-17-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-asterisk-17-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 24 Aug 2020 06:59:12 +0000</pubDate>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[asterisk installation on linux]]></category>
		<category><![CDATA[Asterisk installation Ubuntu 20.04]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[How To Install Asterisk 17 on Ubuntu 20.04]]></category>
		<category><![CDATA[how to install asterisk on ubuntu]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[ubuntu 2020 guides]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=22801</guid>

					<description><![CDATA[<p>Today, we are going to learn that how to install asterisk on Ubuntu 20.04. Let&#8217;s have a short introduction about asterisk before going to the installation process. What is Asterisk? Asterisk is free Open Source software used to design different communication application for small as well as large business. With the help of Asterisk, you [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-asterisk-17-on-ubuntu-20-04/">How To Install Asterisk 17 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>Today, we are going to learn that <a href="https://www.osradar.com/?p=22801" target="_blank" rel="noreferrer noopener">how to install asterisk on Ubuntu 20.04</a>. Let&#8217;s have a short introduction about asterisk before going to the installation process.</p>



<h3><strong>What is Asterisk?</strong></h3>



<p>Asterisk is free Open Source software used to design different communication application for small as well as large business. With the help of Asterisk, you can turn your computer into communication server. So, let&#8217;s begin with the installation process.</p>



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



<p>As usual we do, update your system to have the latest updates installed.</p>



<pre class="wp-block-verse">sudo apt update &amp;&amp; sudo apt upgrade</pre>



<p>Once the update complete reboot your system.</p>



<pre class="wp-block-verse">sudo systemctl reboot</pre>



<h3>Step 2: Installing Build Dependencies</h3>



<p>Install the required build dependencies by hitting the below command in your terminal.</p>



<pre class="wp-block-verse">sudo apt update<br>sudo add-apt-repository universe<br>sudo apt -y install git curl wget libnewt-dev libssl-dev libncurses5-dev subversion libsqlite3-dev build-essential libjansson-dev libxml2-dev uuid-dev</pre>



<h3>Step 3: Download Asterisk 17 Tarball On Ubuntu 20.04</h3>



<p>Now, download the latest release of Asterisk in their official system repositories. Here I&#8217;m going to manually download the tarball &amp; then I&#8217;ll build the application from source. You can get the Asterisk 16 version on Ubuntu 20.04.</p>



<pre class="wp-block-verse">abir@Ubuntu20:~$<strong> sudo apt policy asterisk</strong>
[sudo] password for sabir:
asterisk:
Installed: (none)
Candidate: 1:16.2.1~dfsg-2ubuntu1
Version table:
1:16.2.1~dfsg-2ubuntu1 500
500 http://pk.archive.ubuntu.com/ubuntu focal/universe amd64 Packages</pre>



<p>And with the help of wget, download the package.</p>



<pre class="wp-block-verse">wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-17-current.tar.gz</pre>



<p>Once the download finished, extract the files.</p>



<pre class="wp-block-verse">tar xvf asterisk-17-current.tar.gz</pre>



<p>And then hit the below command to download the mp3 decoder library into the source tree.</p>



<pre class="wp-block-verse">cd asterisk-17*/<br>contrib/scripts/get_mp3_source.sh</pre>



<p>Output:</p>



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



<pre class="wp-block-verse">A addons/mp3
A addons/mp3/MPGLIB_README
A addons/mp3/common.c
A addons/mp3/huffman.h
A addons/mp3/tabinit.c
A addons/mp3/Makefile
A addons/mp3/README
A addons/mp3/decode_i386.c
A addons/mp3/dct64_i386.c
A addons/mp3/MPGLIB_TODO
A addons/mp3/mpg123.h
A addons/mp3/layer3.c
A addons/mp3/mpglib.h
A addons/mp3/decode_ntom.c
A addons/mp3/interface.c
Exported revision 202.</pre>



<p>Make sure that all the required dependencies are resolved. To check, type the following command in your terminal.</p>



<pre class="wp-block-verse">sudo contrib/scripts/install_prereq install</pre>



<p>Output:</p>



<p>You&#8217;ll see the below message upon successful installation.</p>



<pre class="wp-block-verse">##############################
## install completed successfully
##############################</pre>



<h3>Step 4: Build &amp; Install Asterisk 17</h3>



<p>Once you finished with the dependencies installation setup, go to the build process from the source we downloaded earlier.</p>



<p>To verify the build dependencies, type the configure command.</p>



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



<p>Result: Upon success, you&#8217;ll see the similar result.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="596" height="551" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/08/1-14.png" alt="How To Install Asterisk 17 on Ubuntu 20.04" class="wp-image-22988" srcset="https://www.osradar.com/wp-content/uploads/2020/08/1-14.png 596w, https://www.osradar.com/wp-content/uploads/2020/08/1-14-300x277.png 300w" sizes="(max-width: 596px) 100vw, 596px" /></figure>



<p>After it setup the menu options with the help of below command.</p>



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



<p>Make use of arrow keys to navigate and press the Enter key to select.</p>



<p>Choose Addons to enable</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="638" height="185" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/08/2-8.png" alt="How To Install Asterisk 17 on Ubuntu 20.04" class="wp-image-22989" srcset="https://www.osradar.com/wp-content/uploads/2020/08/2-8.png 638w, https://www.osradar.com/wp-content/uploads/2020/08/2-8-300x87.png 300w" sizes="(max-width: 638px) 100vw, 638px" /></figure>



<p>And enable the core sound modules that you&#8217;ll use.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="640" height="345" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/08/3-7.png" alt="How To Install Asterisk 17 on Ubuntu 20.04" class="wp-image-22990" srcset="https://www.osradar.com/wp-content/uploads/2020/08/3-7.png 640w, https://www.osradar.com/wp-content/uploads/2020/08/3-7-300x162.png 300w" sizes="(max-width: 640px) 100vw, 640px" /></figure>



<p>If you want to add additional MOH packages, select that option also.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="631" height="286" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/08/4-7.png" alt="How To Install Asterisk 17 on Ubuntu 20.04" class="wp-image-22992" srcset="https://www.osradar.com/wp-content/uploads/2020/08/4-7.png 631w, https://www.osradar.com/wp-content/uploads/2020/08/4-7-300x136.png 300w" sizes="(max-width: 631px) 100vw, 631px" /></figure>



<p>Also enable the Extra Sound Packages.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="622" height="302" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/08/5-4.png" alt="How To Install Asterisk 17 on Ubuntu 20.04" class="wp-image-22993" srcset="https://www.osradar.com/wp-content/uploads/2020/08/5-4.png 622w, https://www.osradar.com/wp-content/uploads/2020/08/5-4-300x146.png 300w" sizes="(max-width: 622px) 100vw, 622px" /></figure>



<p>You can also go for the other menu options as listed to select what you need for your use case.</p>



<p>After selecting all, hit the make command in your terminal.</p>



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



<p>Result:</p>



<pre class="wp-block-verse">…..
TROLEnc.o ooh323cDriver.o -&gt; chan_ooh323.so
[CC] format_mp3.c -&gt; format_mp3.o
[CC] mp3/common.c -&gt; mp3/common.o
[CC] mp3/dct64_i386.c -&gt; mp3/dct64_i386.o
[CC] mp3/decode_ntom.c -&gt; mp3/decode_ntom.o
[CC] mp3/layer3.c -&gt; mp3/layer3.o
[CC] mp3/tabinit.c -&gt; mp3/tabinit.o
[CC] mp3/interface.c -&gt; mp3/interface.o
[LD] format_mp3.o mp3/common.o mp3/dct64_i386.o mp3/decode_ntom.o mp3/layer3.o mp3/tabinit.o mp3/interface.o -&gt; format_mp3.so
[CC] res_config_mysql.c -&gt; res_config_mysql.o
[LD] res_config_mysql.o -&gt; res_config_mysql.so
Building Documentation For: third-party channels pbx apps codecs formats cdr cel bridges funcs tests main res addons
+--------- Asterisk Build Complete ---------+
Asterisk has successfully been built, and +
can be installed by running: +
+
make install +
+-------------------------------------------+</pre>



<p>And finally, run the given command to install Asterisk on Ubuntu 20.04</p>



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



<p>Output:</p>



<pre class="wp-block-verse">….
make[1]: Entering directory '/home/jkmutai/asterisk-17.6.0/sounds'
make[1]: Leaving directory '/home/jkmutai/asterisk-17.6.0/sounds'
find rest-api -name "*.json" | while read x; do \
/usr/bin/install -c -m 644 $x "/var/lib/asterisk/rest-api" ; \
done
+---- Asterisk Installation Complete -------+
+
YOU MUST READ THE SECURITY DOCUMENT +
+
Asterisk has successfully been installed. +
If you would like to install the sample +
configuration files (overwriting any +
existing config files), run: +
+
For generic reference documentation: +
make samples +
+
For a sample basic PBX: +
make basic-pbx +
+
+
+----------------- or ---------------------+
+
You can go ahead and install the asterisk +
program documentation now or later run: +
+
make progdocs +
+
<strong>Note</strong> This requires that you have +
doxygen installed on your local system +
+-------------------------------------------+</pre>



<p>If you need documentation,hit.</p>



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



<p>And then type the following commands to install configuration &amp; samples.</p>



<pre class="wp-block-verse">sudo make samples<br>sudo make config<br>sudo ldconfig</pre>



<h3>Step 5: Start Asterisk Services On Ubuntu 20.04</h3>



<p>Add the asterisk user &amp; group &amp; give access to the specific permissions as required.</p>



<pre class="wp-block-verse">sudo groupadd asterisk<br>sudo useradd -r -d /var/lib/asterisk -g asterisk asterisk<br>sudo usermod -aG audio,dialout asterisk<br>sudo chown -R asterisk.asterisk /etc/asterisk<br>sudo chown -R asterisk.asterisk /var/{lib,log,spool}/asterisk<br>sudo chown -R asterisk.asterisk /usr/lib/asterisk</pre>



<p>And choose the asterisk for default user of Asterisk.</p>



<pre class="wp-block-verse">sudo nano /etc/default/asterisk
AST_USER="asterisk"
AST_GROUP="asterisk"

sudo nano /etc/asterisk/asterisk.conf
runuser = asterisk ; The user to run as.
rungroup = asterisk ; The group to run as.</pre>



<p>After these configuration, restart the Asterisk services.</p>



<pre class="wp-block-verse">sudo systemctl restart asterisk</pre>



<p>If you want to start asterisk services on start/system boot, hit the below command.</p>



<pre class="wp-block-verse">sudo systemctl enable asterisk</pre>



<p>Verify the status of Asterisk services by</p>



<pre class="wp-block-verse">$ <strong>systemctl status asterisk</strong>
● asterisk.service - LSB: Asterisk PBX
Loaded: loaded (/etc/init.d/asterisk; generated)
Active: active (running) since Sat 2020-08-22 12:04:41 CEST; 9s ago
Docs: man:systemd-sysv-generator(8)
Tasks: 82 (limit: 4567)
Memory: 44.6M
CGroup: /system.slice/asterisk.service
└─54142 /usr/sbin/asterisk -U asterisk -G asterisk</pre>



<p>Also make sure that you can connect to Asterisk CLI.</p>



<pre class="wp-block-verse">$ <strong>sudo asterisk -rvv</strong>
Asterisk 17.6.0, Copyright (C) 1999 - 2018, Digium, Inc. and others.
Created by Mark Spencer <a href="mailto:markster@digium.com">markster@digium.com</a>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
Running as user 'asterisk'
Running under group 'asterisk'
Connected to Asterisk 17.6.0 currently running on ubuntu (pid = 54142)
ubuntu*CLI&gt;</pre>



<p>Then allow firewall access on port 5060 and 5061.</p>



<pre class="wp-block-verse">sudo ufw allow proto tcp from any to any port 5060,5061</pre>



<p>So, this is how you can install Asterisk on Ubuntu 20.04. If you&#8217;ve any queries regarding this guide, leave a comment below.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-asterisk-17-on-ubuntu-20-04/">How To Install Asterisk 17 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-asterisk-17-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
