Trixbox CE

    All RPMs compiled for Trixbox CE are dependent on the Kernel Version, the dahdi/zaptel version and the asterisk version that come with default Trixbox CE.  If you change any of these versions you must Install Wanpipe from Source



    Choose one of the following links for the installation steps.

    1.  Wanpipe installation through RPMs  
      1. List of RPMs
      2. Choosing the correct RPM
      3. Download & Installation
      4. Configuring the Sangoma Card
      5. Operation
    2. Wanpipe installation from Source  (when an RPM is not available)
      1. Requirements
      2. Dahdi/Zaptel Download and Compile
      3. DEPRECATED: Asterisk Download and Compile
      4. Wanpipe Driver Download and Install
      5. Configuration of Sangoma Cards
      6. Operation

          

    For the old Trixbox CE Page that contain the drivers for the older versions of Trixbox CE, click here.


     

    WANPIPE INSTALLATION THROUGH RPMS


    The following list contains the Wanpipe Driver RPMS for the stock versions of Trixbox CE, that support ALL Sangoma PRI/BRI/Analog cards.  They are dependent on the specific Dahdi/Zaptel, Asterisk and Kernel versions:

    TRIXBOX 2.8.0.4

    Trixbox
    CE
    Dahdi Kernel Asterisk  Wanpipe Version Wanpipe RPM Md5Sum
    2.8.0.4  2.3.0.1-1 2.6.18-164.11.1.el5 1.6.0.26-1 3.5.27 Download 30109762ef0ca91b811f2b0c9bf7cc61


    TRIXBOX 2.6.2.3

    Trixbox
    CE
    Zaptel Kernel Asterisk Wanpipe Version Wanpipe  RPM  Md5Sum
    2.6.2.3 1.4.12.9-1 2.6.18-128.1.10.el5 1.4.22-4 3.5.27 Download 9c217fec0512c672615716a7f1648a89

     



     

     

    How to find Kernel, Asterisk, Dahdi/Zaptel Version in Order to Download the correct RPM


    1) To find out the kernel version perform the command:
            type:  uname -r
                   ex. 2.6.18-164.11.1.el5
    2) To find out your asterisk version
            type:  rpm -qa|grep asterisk
                   ex.  Asterisk 1.6.0.22
    3) To find out your dahdi/zaptel version
           For Dahdi
           type:  rpm -qa|grep dahdi
               DAHDI Tools Version - 2.2.0
               DAHDI Version: 2.2.0
           For Zaptel
           type:  rpm -qa|grep zaptel
               Zaptel Version: 1.4.12.9.svn.r4590-Xorcom-trunk-r7049

     


     

    To download

     -> Copy the URL of the Wanpipe RPM download link from the chart above, then run "wget URL"  in the linux command line.

             ex. wget <wanpipe RPM download URL>
                    
                          

    To install

    -> run the "rpm -i" command with the RPM: 

             ex. rpm -i <wanpipe-version.rpm>

                  
    To verify

    that driver has been installed run the command:
            #> wanrouter hwprobe verbose

    The output should show something similar to the one below (different output for different cards)
    -----------------------------------------
    | Wanpipe Hardware Probe Info (verbose) |
    -----------------------------------------
    1 . AFT-A200-SH : SLOT=4 : BUS=5 : IRQ=169 : CPU=A : PORT=PRI : HWEC=32 : V=12
    +01:FXO: PCIe: PLX1
    +02:FXO: PCIe: PLX1
    +03:FXS: PCIe: PLX1
    +04:FXS: PCIe: PLX1

    If you have any issues with the above command, please contact techdesk@sangoma.com

     


     

     

    Configuring the Sangoma Card

    1. Run the configuration script: setup-sangoma

          The above script creates configuration files for:
           -> Dahdi
           -> Wanpipe in /etc/wanpipe


      Note: BRI is now integrated into Dahdi (Wanpipe 3.5.21 and newer)
      If using Trixbox 2.6.2.3 and below with BRI you MUST use
      'setup-sangoma smg'

          


      -> Proceed to the Operation section

        

     

    SOURCE INSTALLATION

    You must install the Wanpipe driver from source if your Trixbox system does not have the correct RPM requirements (kernel, dahdi, asterisk versions) as listed above.  The instructions below describe how to install the Wanpipe driver from source, which entail:


    -> Downloading the source for dahdi/zaptel currently installed on your system
    -> compiling the source Wanpipe driver against the dahdi/zaptel sources



    Requirements

    Please run the follow commands to install the required packages needed for compiling wanpipe drivers from source:

    • yum -y install kernel-devel-$(uname -r) libtool* gcc patch perl bison gcc-c++ ncurses-devel flex libtermcap-devel autoconf* automake*

     


     


    Dahdi/Zaptel Download and Compile


    The first step is to identify the version of Dahdi/Zaptel currently installed on the system:

    Dahdi Steps (click HERE for Zaptel Steps):

    1) 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_trixbox
    dahdi-modules-2.3.0.1-3_trixbox.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 a Trixbox version and we are just concerned about the dahdi version.

    2) Download the source for the dahdi version found on your system

    -> Go to the following website and search for your dahdi version:

    -> http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases

    -> Our search results using the above example would find dahdi-linux-2.3.0.1.tar.gz

    -> In the location of your choice (typically /usr/src/) download the release:

    -> wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-2.3.0.1.tar.gz  *NOTE: the dahdi version will vary

    3) untar and compile dahdi

    -> tar xvfz dahdi-<version>.tar.gz
    -> cd dahdi-<version>
    -> make

    4) The compiling is done, if there is any errors please contact techdesk@sangoma.com

    Zaptel Version

    Make sure to have all the package requirements installed: 
    -> http://wiki.sangoma.com/Package-requirements

    1) Retrieve the version of Zaptel currently installed on your system


    Type the following command on your Linux CLI:

    -> rpm -qa | grep zaptel 

    The following is an example output of the above command (the output on your system might display varying results):   

    zaptel-1.4.12.1-1_trixbox
    zaptel-modules-1.4.12.1-1_trixbox.2.6.18_128.1.10.el5

    The Zaptel version is 1.4.12.1 in the aove example, it is not 1.4.12.1-1 because the "-1" is a Trixbox version and we are just concerned about the Zaptel version.

    2) Download the source for the Zaptel version found on your system

    -> Go to the following website and search for your Zaptel version:

    -> http://downloads.asterisk.org/pub/telephony/zaptel/releases/ 

    -> Our search results using the above example would find zaptel-1.4.12.1.tar.gz

    -> In the location of your choice (typically /usr/src/) download the release:

    -> wget http://downloads.asterisk.org/pub/telephony/zaptel/releases/zaptel-1.4.12.1.tar.gz   *NOTE: the Zaptel version will vary

    3) untar and install zaptel

    -> tar xvfz zaptel-<version>.tar.gz
    -> cd zaptel-<version>
    -> ./configure
    -> make


    4) The compiling is done, if there is any errors please contact techdesk@sangoma.com

     



    Asterisk Download and Compile
    DEPRECATED
    *Note: This step is only required when using BRI Cards (A500/B700) with Wanpipe Driver 3.5.20 and below
    BRI is now integrated into Dahdi in Wanpipe 3.5.21 and above (this step not required)

    FOR TRIXBOX 2.6.2.3
    1. Find the version of Asterisk Currently installed:
           #> asterisk -V
    2. Go to http://downloads.asterisk.org/pub/telephony/asterisk/releases/ and search for your Asterisk version. If you have Asterisk 1.4.22 then the URL will be http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.4.22.tar.gz
    3.
    Once you have the URL run the commands:
              #> cd /usr/src/
                     and then
              #> wget X with X being the URL
        Once the download is complete run the command "
              #>tar xfz asterisk-<version>.tar.gz

                    and then
              #> cd asterisk-<version>
    4. Once you are in the Asterisk source run the command
              #> ./configure; make
        this will configure and build the source.

    FOR TRIXBOX 2.8.0.3 and UP

     

    1. First thing to do is find out your Asterisk version with the command:
              #> asterisk -V
    2. Go to "http://yum.trixbox.org/trixbox/2.8/RPMS/repodata/repoview/A.group.html" and find the "asterisk-16-devel-<ver>" package.
    3. Once you have the URL run the commands:
              #> cd /usr/src/
                     and then
              #> wget X with X being the URL
        Once the download is complete run the command "
              #>tar xfz asterisk-<version>.tar.gz

                    and then
              #> cd asterisk-<version>
    4. Once you are in the Asterisk source run the command
              #> ./configure; make
        this will configure and build the source



    Wanpipe Driver Download and Install

    1. Download the lastest Wanpipe Driver: Wanpipe Driver
    2. Untar wanpipe release in arbitrary directory (/usr/src/ is recommended).
      #>
      tar xvfz wanpipe-<version>.tgz
      #> cd wanpipe-<version>

      Verifyasterisk and zaptel/dahdi are shutdown by using the commands:
      Zaptel method (Trixbox 2.6.2.3)
      #> amportal stop
      #> service zaptel stop


      Dahdi method (Trixbox 2.8.0.3 and up)
      #> asterisk -rx "stop now"

      #> service dahdi stop
      ------------
    3. Install the Wanpipe Driver:
          #>./Setup install  
      Proceed with installation Select "Y" for each option.f

      Setup will ask you which compilation method you would like to choose to install the driver:
      - For all PRI/BRI/ANALOG cards, choose Option 2

                     Setup will try to auto-detect dahdi sources in /usr/src directory
                     [By default Setup will look in /usr/src]  

      Note: if you are running a production environment with BRI and Wanpipe using the deprecated smg daemon
      and wish to continue using it, you must choose Option 6/7

      ---
    4. Proceed with Defaults for the rest of the compilation.   
      --
    5. Last step in installation will ask you to configure the Sangoma card(s) for Dahdi/Zaptel/
      If any errors are encountered during the compilation of the utilities, click here for assistance.

    Confirm Successful Wanpipe/Dahdi Installation
    Confirm successful Wanpipe/Dahdi installation run:
                 #> wanrouter hwprobe
    This command will load the wanpipe and Dahdi modules and will print out list of all Sangoma hardware installed on the system.




    1. Run the configuration script:
      -> type: setup-sangoma

      The above script creates configuration files for:
      -> Dahdi/Zaptel
      -> Wanpipe in /etc/wanpipe


      Note: BRI is now integrated into Dahdi (Wanpipe 3.5.21 and newer)
      If using Trixbox 2.6.2.3 and below with BRI you MUST use
      'setup-sangoma smg' to use smg daemon

     


     

     

    Operation

    To Start Wanpipe, Dahdi/zaptel and Asterisk, follow the steps below:

    1. start Wanpipe Ports
      -> wanrouter start
             - Check /var/log/messages for info or errors
      ---
    2. Configure DAHDI/ZAPTEL module
      -> dahdi_cfg -vvv
        (dahdi)
      or
      -> ztcfg -vvv  (zaptel)

      *Note: this step is taken care of if you have chosen to perform dahdi_cfg automatically
                during 'setup-sangoma' 
           
      ---
    3.  start Asterisk
      ->
      amportal start
      -> asterisk -r


      To stop the Wanpipe driver at any time, you must stop Asterisk first:
      1-> amportal stop
      2-> wanrouter stop

      If using DEPRECATED BRI smg Installation you will need to add a "custom" trunk to dial out. If you go to http://wiki.sangoma.com/WoomeraFreepbx this details how to do this with Freepbx which is essentially the same as Trixbox.

     


     

     

    2.8.0.3 2.2.0-4 2.6.18-128.1.10.el5 1.6.0.10-5 3.5.11 wanpipe-util-rpm wanpipe-module-rpm