This post is a follow up for creating Switchvox (CentOS 5) EC2 EBS AMI with root partition on LVM.
The Problem
Dahdi module needs to be recompiled for a Xen kernel when running Switchvox on Amazon EC2. The kernel version we’re using:
# uname -rvm 2.6.18-371.9.1.el5xen #1 SMP Tue Jun 10 20:24:13 EDT 2014 i686
Switchvox version:
# cat /etc/redhat-release PBX build 64078
The error message:
Removing dahdi module: ERROR: Module dahdi does not exist in /proc/modules [FAILED] Loading dahdi framework: FATAL: Module dahdi not found. [FAILED] Waiting for zap to come online...Error: missing /dev/dahdi!
Install Dahdi Framework
Install GNU C compiler:
# yum install gcc
Download and unpack dadhi source files:
# wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
# tar xvfz dahdi-linux-complete-current.tar.gz # cd dahdi-linux-complete-*
Build the source and install:
# make all && make install ################################################### ### ### DAHDI tools installed successfully. ### If you have not done so before, install init scripts with: ### ### make config ### ################################################### make[1]: Leaving directory `/root/dahdi-linux-complete-2.9.1.1+2.9.1/tools'
Start dadhi service:
# /etc/init.d/dahdi start Loading dahdi framework: [ OK ] Waiting for zap to come online...OK Loading dahdi hardware modules: dahdi_transcode wct4xxp wcte43x wct1xxp wcte11xp wcte12xp wcte13xp wcfxo wctdm wctdm24xxp wcaxx wcb4xxp wctc4xxp No functioning zap hardware found in /proc/dahdi, loading dahdi_dummy Running dahdi_cfg: [ OK ]
Check for kernel modules to be loaded:
# lsmod | grep dahdi dahdi_voicebus 53920 2 wctdm24xxp,wcte12xp dahdi_transcode 12036 1 wctc4xxp dahdi 214716 14 wcb4xxp,wcaxx,wctdm24xxp,wctdm,wcfxo,wcte13xp,wcte12xp,dahdi_voicebus,wcte11xp,wct1xxp,wcte43x,wct4xxp,oct612x,dahdi_transcode crc_ccitt 6337 2 wctdm24xxp,dahdi