Home > Computers, Website > Asterisk Upgrade

Asterisk Upgrade

October 12th, 2010 Leave a comment Go to comments

The server is running Gentoo, which will by default only install Asterisk 1.2. Unfortunately it is not obvious that this supports the more up to date dahdi drivers required for the Openvox A400P card that I need to install.

I also could not find anything on the web to recommend a stable version of Asterisk, so I just install the latest ebuild available. To enable installation of dahdi and Asterisk with mysql cdr support I did the following:

  • Save my /etc/asterisk configuration files
  • Save the content of /var/lib/asterisk/agi-bin
  • Update /etc/portage/package.use to enable dahdi support in Asterisk:
    net-misc/asterisk-addons mysql
    net-misc/asterisk dahdi
  • Enable the installation of the latest Asterisk packages, by adding the following to /etc/portage/package.keywords
    net-misc/asterisk-addons ~x86
    net-misc/asterisk-app_notify ~x86
    net-misc/dahdi ~x86
    net-misc/asterisk ~x86
    net-misc/asterisk-core-sounds ~x86
    net-misc/asterisk-extra-sounds ~x86
    net-misc/asterisk-moh-opsound ~x86
    net-misc/dahdi-tools ~x86
    net-libs/libpri ~x86
  • Remove the conflicting version of asterisk-addons:
    emerge --remove asterisk-addons
  • Upgrade Asterisk and install dahdi drivers:
    emerge --ask asterisk asterisk-addons dahdi dahdi-tools
  • Use etc-update to upgrade all the /etc/asterisk files, I just overwrote the old versions and manually re-inserted my config, the important files where:
    indications.conf - 'country=uk'
    modules.conf - load => cdr_addon_mysql.so
    extensions.conf - add my macros and contexts
    sip.conf - add my Outbound SIP Registrations and Providers and Devices, configure network domain
  • Add dahdi to init rc-update add dahdi default
  • Load the kernel modules:
    modprobe dahdi
    modprobe wctdm
  • Configure dahdi:
    dahdi_genconfig
    echo "#include dahdi_channels.conf" >> /etc/asterisk/chan_dahdi.conf
    /etc/init.d/dahdi start
    /etc/init.d/asterisk restart
  • Restore the content of /var/lib/asterisk/agi-bin
Categories: Computers, Website Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.