{"id":844,"date":"2013-01-12T12:41:44","date_gmt":"2013-01-12T09:41:44","guid":{"rendered":"http:\/\/joseph.zikusooka.com\/?p=844"},"modified":"2013-01-12T17:26:37","modified_gmt":"2013-01-12T14:26:37","slug":"how-to-install-asterisk-11-%e2%80%93-part-1","status":"publish","type":"post","link":"https:\/\/joseph.zikusooka.com\/?p=844","title":{"rendered":"How to install Asterisk 11 \u2013 Part 1"},"content":{"rendered":"<p>Asterisk is the popular open source telephony platform.  With just a few hours to spare, you can turn any spare PC in to a world class PBX system.  In part 1, I will list the steps involved in installing asterisk using sources.  The steps below can be used with RedHat based systems like Fedora.  It shouldn&#8217;t be that hard to replicate on other Linux distributions like Ubuntu.<\/p>\n<p>Update your system and reboot if there&#8217;s a kernel upgrade:<br \/>\n<code>yum update<\/code><\/p>\n<p>For Redhat systems, disable selinux:<br \/>\n<code>sed s\/SELINUX=enforcing\/SELINUX=disabled\/g \/etc\/selinux\/config<\/code><\/p>\n<p>Install required dependencies:<br \/>\n<code>yum -y install make wget openssl-devel ncurses-devel newt-devel libxml2-devel kernel-devel gcc gcc-c++ sqlite-devel<\/code><\/p>\n<p>Download current asterisk 11 sources:<br \/>\n<code> cd \/usr\/src<br \/>\nwget http:\/\/downloads.asterisk.org\/pub\/telephony\/asterisk\/asterisk-11-current.tar.gz<br \/>\nwget http:\/\/downloads.asterisk.org\/pub\/telephony\/libpri\/libpri-1.4-current.tar.gz<br \/>\nwget http:\/\/downloads.asterisk.org\/pub\/telephony\/dahdi-linux-complete\/dahdi-linux-complete-current.tar.gz<br \/>\n<\/code><\/p>\n<p>Note: Dahdi is only needed if you will be using a telephony card to access the PSTN. Timing provided by dahdi is also no longer needed with the new conferencing capabilities in Asterisk 11<\/p>\n<p>Unpack and install the source packages. Please note that the installation order is very important:<\/p>\n<p><code><\/p>\n<p>a) dahdi<br \/>\ntar zxvf dahdi-linux-complete-current.tar.gz<br \/>\ncd dahdi-linux-complete*<br \/>\nmake && make install<br \/>\nmake config (Generates sample configs)<\/p>\n<p>b) libpri<br \/>\ntar zxvf libpri-1.4-current.tar.gz<br \/>\ncd libpri-1.4*<br \/>\nmake && make install<\/p>\n<p>c) tar zxvf asterisk-11-current.tar.gz<br \/>\ncd asterisk*<br \/>\n.\/configure --libdir={LIBDIR} e.g \/usr\/lib64 (use uname -a to confirm architecture\"<br \/>\nmake menuselect (optional)<br \/>\nmake && make install<br \/>\nmake samples (on fresh install only)<br \/>\nmake config<br \/>\n<\/code><\/p>\n<p>Start services<br \/>\n<code>service dahdi start<br \/>\nservice asterisk start<br \/>\n<\/code><\/p>\n<p>Check to ensure is running:<br \/>\n<code>asterisk -vr<\/code><\/p>\n<p>In part 2, I will go over how to configure your asterisk server.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Asterisk is the popular open source telephony platform. With just a few hours to spare, you can turn any spare PC in to a world class PBX system. In part 1, I will list the steps involved in installing asterisk using sources. The steps below can be used with RedHat based systems like Fedora. It [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-844","post","type-post","status-publish","format-standard","hentry","category-apps"],"_links":{"self":[{"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=\/wp\/v2\/posts\/844","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=844"}],"version-history":[{"count":3,"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=\/wp\/v2\/posts\/844\/revisions"}],"predecessor-version":[{"id":848,"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=\/wp\/v2\/posts\/844\/revisions\/848"}],"wp:attachment":[{"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}