Asterisk Upgrade 1.4 - 1.8 For CentOS (RedHat distros)


Asterisk Upgrade 1.4 - 1.8 For CentOS (RedHat distros)

For CentOS (RedHat distros)
yum -y install kernel-devel-$(uname -r) libtool* make gcc patch perl bison gcc-c++ ncurses-devel flex libtermcap-devel autoconf* automake* autoconf libxml2-devel cmake

For Ubuntu/Debian


apt-get -y install gcc g++ automake autoconf libtool make libncurses5-dev flex bison patch libtool autoconf linux-headers-$(uname -r) libxml2-devel cmake



  1. Download all your software in /usr/src/ directory.Change directory to /usr/src:
    #cd/usr/src
  2. Copy&paste each of the lines below (one by one) in your command line (in /usr/src) to automatically download each software package (.tgz files) 
  3. #wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz 
    #wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8-current.tar.gz
    #wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz

    Do not download libpri (the third line) if you only require Analog card support

    You have now finished downloading Asterisk, DAHDI and LibPRI software for your server

     


Installing Software Packages

The following instructions will guide you to uncompress the downloaded '.tgz' Asterisk/DAHDI/LibPRI files and install using make command
  1. DAHDI Installation

    Untar DAHDi software packagepreviously downloaded in /usr/src/ and install
    * If there are any error messages while trying to the above commands, you are missing system dependencies listed in previous steps
      
  2. #tar xvzf dahdi-linux-complete<version>cd dahdi-linux-complete <version> 
    #make 
    #make install
    #make config
  3. LibPRI Installation (required for PRI/BRI only)

    Untar libPRI sources previously downloaded in /usr/src/ and install
    #tar xvfz libpri-<version>
    #cd libpri-<version>
    #make 
    #make install
    

    * If there are any error messages while trying to the above commands, you are missing system dependencies listed in previous steps
  4. Asterisk Installation

         Note:
     if you are upgrading Asterisk make sure that old asterisk modules are removed from /usr/lib/asterisk/modules
    #cd /usr/lib/asterisk
    #mv modules modules.old

  5. Untar asterisk sources previously downloaded in /usr/src/ and install

    #tar xvfz asterisk-<version>.tgz
    #cd asterisk-<version>
    #./configure
    #make
    #make installmake samples (will create new config files)
    

    * If there are any error messages while trying to the above commands, you are missing system dependencies listed in previous steps
  1. Start Asterisk
  2. Access the Asterisk CLI and fun some basic commands to verify your Asterisk suite is ready for production
CLI> asterisk -rv

Comments

Popular posts from this blog

VICIdial Scratch Install CentOS 7 & MariaDB & Asterisk 11

How to Change Default CRON Password in VICIdial.

VICIdial Scratch Install CentOS 7 & MariaDB & Asterisk 13