How to Install ztdummy timer for CentOS

7:40 pm in Asterisk by emran

Install the CentOS kernel sources (google it)
Build the kernel source
Make sure /usr/src/kernel/.config is your kernel config
Make sure /lib/modules/`uname -r`/build points to your kernel directory

Required Packages:

  1. Subversion
  2. ncurses
  3. ncurses-devel
  4. newt
  5. newt-devel
  6. bison
  7. bison-devel

cd /usr/src
svn co http://svn.digium.com/svn/zaptel/tags/1.4.2.1 zaptel
cd zaptel
./configure
make
make install
make config
vi /etc/init.d/zaptel
change
    this: action ”Removing zaptel module: ” rmmod zaptel
    to: action ”Removing zaptel module: ” rmmod ztdummy zaptel
mkdir -p /var/lib/digium/licenses/
useradd asterisk
echo zap/*:asterisk:asterisk:660 >> /etc/udev/permissions.d/50-udev.permissions
/sbin/udevstart
/etc/init.d/zaptel start
chkconfig –add zaptel

/etc/init.d/zaptel

If you are running a RedHat based system run
  $ make config
from within the zaptel source directory. This will create a file called zaptel in /etc/init.d/. Edit the file and search or MODULES and RMODULES, you will see a list of all of the zaptel modules i.e. wcfxo and wctdm(OLD:wcfxs). I deleted all of the entires with the quotes “” becasue I didn’t have any additional hardware and added ztdummy to both fields. You can probably just add ztdummy to the list.

Now if you type
   $ sudo service zaptel start
ztdummy should be running. If you use the ntsysv or similar gui utility you can ensure the service starts after all reboots.