{"id":671,"date":"2013-02-21T23:38:42","date_gmt":"2013-02-21T23:38:42","guid":{"rendered":"http:\/\/cyber-cottage.co.uk\/en\/?p=671"},"modified":"2013-02-21T23:38:42","modified_gmt":"2013-02-21T23:38:42","slug":"installing-asterisk-11-on-centos-6-3","status":"publish","type":"post","link":"https:\/\/www.cyber-cottage.co.uk\/?p=671","title":{"rendered":"Installing Asterisk 11 on Centos 6.3"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/178.62.237.127\/wp-content\/uploads\/2013\/02\/asterisk.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"656\" data-permalink=\"https:\/\/www.cyber-cottage.co.uk\/?attachment_id=656\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2013\/02\/asterisk.png?fit=96%2C82&amp;ssl=1\" data-orig-size=\"96,82\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"asterisk\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2013\/02\/asterisk.png?fit=96%2C82&amp;ssl=1\" class=\"size-full wp-image-656 alignleft\" alt=\"asterisk\" src=\"https:\/\/i0.wp.com\/178.62.237.127\/wp-content\/uploads\/2013\/02\/asterisk.png?resize=96%2C82\" width=\"96\" height=\"82\" \/><\/a>This is a short video tutorial on the installation of Asterisk 11, I have included\u00a0the\u00a0blog and video in one place for ease of viewing<\/p>\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"580\" height=\"327\" src=\"https:\/\/www.youtube.com\/embed\/lfqs2TrIMqo?version=3&#038;rel=0&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-GB&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<p>First, you will want to be sure that your server OS is up to date.<\/p>\n<pre>yum update -y<\/pre>\n<p>Disable SELinux by changing \u201cenforcing\u201d to \u201cdisabled\u201d in \/etc\/selinux\/config. Use a text editor or copy and paste this command.<\/p>\n<pre>sed -i s\/SELINUX=enforcing\/SELINUX=disabled\/g\u00a0\/etc\/selinux\/config<\/pre>\n<p>After you update and disable SELinux, you\u2019ll need to reboot.<\/p>\n<pre>reboot<\/pre>\n<p>Next, you will want to resolve basic dependencies. (<a title=\"Asterisk install dependencies and system requirements\" href=\"https:\/\/wiki.asterisk.org\/wiki\/display\/AST\/System+Requirements\">More information on Asterisk dependencies<\/a>.)<\/p>\n<pre>yum install -y make wget\u00a0openssl-devel\u00a0ncurses-devel  newt-devel\u00a0libxml2-devel\u00a0kernel-devel gcc gcc-c++\u00a0sqlite-devel<\/pre>\n<p>Change into the \/usr\/src\/ directory to store your source code.<\/p>\n<pre>cd \/usr\/src\/<\/pre>\n<p>Download the source tarballs. These commands will get the current release of DAHDI 2.6,\u00a0libpri 1.4\u00a0and Asterisk 11.<\/p>\n<pre>wget\u00a0http:\/\/downloads.asterisk.org\/pub\/telephony\/dahdi-linux-complete\/dahdi-linux-complete-current.tar.gz\nwget\u00a0http:\/\/downloads.asterisk.org\/pub\/telephony\/libpri\/libpri-1.4-current.tar.gz\nwget\u00a0http:\/\/downloads.asterisk.org\/pub\/telephony\/asterisk\/asterisk-11-current.tar.gz<\/pre>\n<p>Extract the files from the tarballs.<\/p>\n<pre>tar zxvf\u00a0dahdi-linux-complete*\ntar zxvf\u00a0libpri*\ntar zxvf asterisk*<\/pre>\n<p>For the next set of commands it is\u00a0<strong>important to follow the proper order<\/strong>: DAHDI first, then libpri, then Asterisk.<\/p>\n<p>Install DAHDI.<\/p>\n<pre>cd \/usr\/src\/dahdi-linux-complete*\nmake &amp;&amp; make install &amp;&amp; make config<\/pre>\n<p>Install libpri.<\/p>\n<pre>cd \/usr\/src\/libpri*\nmake &amp;&amp; make install<\/pre>\n<p>Change to the Asterisk directory.<\/p>\n<pre>cd \/usr\/src\/asterisk*<\/pre>\n<p>In the next step, running the \u201cconfigure\u201d script will vary depending on whether your system is\u00a0<strong>32-bit or 64-bit.\u00a0<\/strong><strong>(Watch the video for more details.)<\/strong>\u00a0When the menuselect command runs, select your options, then choose \u201cSave and Exit\u201d and the install will continue.<\/p>\n<p>Use this command if you are installing Asterisk on\u00a0<strong>32bit<\/strong>\u00a0CentOS.<\/p>\n<pre>.\/configure &amp;&amp; make menuselect &amp;&amp; make &amp;&amp; make install<\/pre>\n<p>Use this command if you are installing Asterisk on\u00a0<strong>64bit<\/strong>\u00a0CentOS.<\/p>\n<pre>.\/configure --libdir=\/usr\/lib64 &amp;&amp; make menuselect &amp;&amp; make &amp;&amp; make install<\/pre>\n<p><strong>Optional<\/strong>: If you ran into errors you will want to clean the install directory before recompiling.<\/p>\n<pre>make clean &amp;&amp; make distclean<\/pre>\n<p>Once you have an error-free install, copy the sample files from the configs subdirectory into \/etc\/asterisk.<\/p>\n<pre>make samples<\/pre>\n<p>Then add the Asterisk start script to the \/etc\/init.d\/ directory<\/p>\n<pre>make config<\/pre>\n<p>Start DAHDI.<\/p>\n<pre>service dahdi start<\/pre>\n<p>Start Asterisk.<\/p>\n<pre>service asterisk start<\/pre>\n<p>Connect to the Asterisk CLI.<\/p>\n<pre>asterisk -rvvv<\/pre>\n<p>And now you have Asterisk 11 running on CentOS 6!<\/p>\n<p>Original Article written by\u00a0Billy Chia @ digium<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a short video tutorial on the installation of Asterisk 11, I have included\u00a0the\u00a0blog and video in one place for ease of viewing First, you will want to be sure that your server OS is up to date. yum update -y Disable SELinux by changing \u201cenforcing\u201d to \u201cdisabled\u201d in \/etc\/selinux\/config. Use a text editor [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Installing Asterisk 11 on Centos 6.3","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[11],"tags":[23,33,51,73,100,76],"class_list":["post-671","post","type-post","status-publish","format-standard","hentry","category-knowledge","tag-asterisk","tag-digium","tag-linux","tag-support","tag-technical","tag-voip"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p5daZy-aP","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=671"}],"version-history":[{"count":0,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/671\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}