Dahdi Support Installation Instructions

    1.  Make sure to have all the package requirements installed: 
      -> http://wiki.sangoma.com/Package-requirements
      -
    2. Retrieve the version of dahdi currently installed on your system
      Type the following command on your Linux CLI:
      -
      -> rpm -qa | grep dahdi
      -
      The following is an example output of the above command (the output on your system might display varying results):
      -
      dahdi-2.3.0.1
      -3
      dahdi-modules-2.3.0.1-3_2.6.18_128.1.10.el5
      -
      The dahdi version is 2.3.0.1 in the above example, it is not 2.3.0.1-3 because the "-3" is an Elastix version and we are just concerned about the dahdi version.- 
      - 
    3. Download the sources for the dahdi version found on your system
      -> Go to the following website and search for the source RPM of your dahdi version:
      -> http://repo.elastix.org/elastix/
      ->  Search for 'SRPMS', the location where the sources for your elastix version exist

      -> Our search results using the above example would find dahdi-2.3.0.1-3.src.rpm

      -> Download the appropriate rpm in /usr/src/
      -> Ex: wget http://repo.elastix.org/elastix/index.php?dir=2.0/updates/SRPMS/&file=dahdi-2.3.0.1-3.src.rpm  *NOTE: the dahdi version will vary
      - 
    4. Create the proper directories for the RPM to install to
      -> cd /usr/src/
      -> mkdir redhat
      -> cd redhat
      -> mkdir SOURCES
      -
      * If you try to install the source RPM without creating the above locations, the rpm will fail to install
      - 
    5. Install the dahdi source RPM
      -> cd /usr/src/
      -> rpm -i <dahdi source.src.rpm>
      -
    6. Build the dahdi sources
      -> cd /usr/src/redhat/SPECS
      -> rpmbuild -bb dahdi.spec
      -> The dahdi sources are now located in /usr/src/redhat/BUILD

      *Note: you must have rpmbuild package in order to perform this step.  To obtain it, type: yum install rpm-build
      - 
    7. Compile and install the dahdi sources
      -> cd /usr/src/redhat/BUILD/<dahdi-version>
      -> make
      -> make install
      -> make config
      - 
    8. Download the Wanpipe Voicetime Driver
      - 
    9. Untar and change directory:
      -> tar xfz wanpipe-voicetime-<ver>.tgz
      -> cd wanpipe-voicetime-<ver>
      - 
    10. Build Wanpipe VoiceTime for Currently Running dahdi Module
      -> make DAHDI_DIR=/usr/src/redhat/SOURCES/dahdi-linux-<ver>/linux

      DAHDI_DIR= location of dahdi source used to build and install the dahdi module
      By default DAHDI_DIR=/usr/src/dahdi
      - 
    11. Install VoiceTime module into current system
      -> make install- -
    12. Install bootup startup script for VoiceTime
      -> make boot

      The wanpipe_voicetime uses /etc/init.d/dahdi script. The dahdi startup script must be installed

      eg: cd /usr/src/dahdi-<version>
      make        #build dahdi
      m
      ake install    #install dahdi modules
      make config        #install dahdi boot script
      - 
    13. Start Wanpipe VoiceTime using dahdi Startup Script
      -> /etc/init.d/dahdi start
      - 
    14. Confirm that VoiceTime Sync Tool is working
      -> Click Here