WELCOME [ Log In · Register ]        SITE [ Search · Page Index · Recent Changes ]    RSS

Trixbox CE

All RPMs compiled for Trixbox CE are dependent of the Kernel Version, the zaptel/dahdi version and the asterisk version that is built into Trixbox CE. Choose one of the following links for the installation steps.

        1) Wanpipe installation through RPMs
        2) Wanpipe installation from Source
                  a) Requirements 
                  b) Dahdi/Zaptel Download and Compile
                  c) Asterisk Download and Compile
                  d) Wanpipe Driver Download and Install
                  e) Configuration of Sangoma Cards
       3) Wanpipe Voicetime Installation
                  a) Requirements
                  b) Dahdi/Zaptel Download and Compile
                  c) Wanpipe Driver Download and Install
                  d) Confirm Wanpipe Voicetime Driver Install

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 stock versions of Trixbox CE, and the drivers that work for the specific Zaptel/Dahdi, Asterisk and Kernel versions:

TRIXBOX 2.8.0.4

Trixbox
CE

Dahdi
Kernel Asterisk  Wanpipe Version
Wanpipe Utilities RPM  Wanpipe Modules RPM
 2.8.0.4 
2.3.0.1-1
2.6.18-164.11.1.el5 1.6.0.26-1
3.5.11.8 wanpipe-util-rpm wanpipe-module-rpm



TRIXBOX 2.8.0.3

Trixbox
CE

Dahdi  Kernel Asterisk  Wanpipe Version
Wanpipe Utilities RPM  Wanpipe Modules RPM
 2.8.0.3 Updated
 
2.2.1-1
2.6.18-164.11.1.el5 1.6.0.22-2 3.5.11.8 wanpipe-util-rpm wanpipe-module-rpm
 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


TRIXBOX 2.6.2.3

Trixbox
CE

Zaptel
Kernel Asterisk  Wanpipe Version
Wanpipe Utilities RPM  Wanpipe Modules RPM
 2.6.2.3
1.4.12.9-1
2.6.18-128.1.10.el5 1.4.22-4
3.5.11 wanpipe-util-rpm wanpipe-module-rpm


The drivers above have support for all PRI/BRI and Analog cards. 

To find out the version of Asterisk, Dahdi/Zaptel and the kernel you are running:
1) To find out the kernel version perform the command:
        #> uname -r
             2.6.18-164.11.1.el5
2) To find out your asterisk version
        #> asterisk -V
            Asterisk 1.6.0.22
3) To find out your dahdi/zaptel version
       For Dahdi
       #> dahdi_cfg -vvv
           DAHDI Tools Version - 2.2.0
           DAHDI Version: 2.2.0
       For Zaptel
       #> ztcfg -vvv
           Zaptel Version: 1.4.12.9.svn.r4590-Xorcom-trunk-r7049

To download the RPM's just run "wget X" where X is the URL of the rpm.
To install run the commands below: 
         #> rpm -i wanpipe-modules-2.6.18-128.1.1.el5-3.5.11-0.i686.rpm   
         #> rpm -i wanpipe-util-3.5.11-0.i686.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

To configure your card:

  1. Create Wanpipe/DAHDI/SMG Configuraiton Files:
    #> Setup-Sangoma (Configures PRI/BRI and Analog Cards)
        (Note -> this step was offered at the end of the ./Setup install,

         if you already configured the card, proceed to the next step)

          - Creates Dahdi configuration files

          - Creates wanpipe configuration files in /etc/wanpipe

         - Creates SMG and Woomera configuration files
         - Creates wanpipe configuration files in /etc/wanpipe---
  2. Start Wanpipe Ports
    #> wanrouter start
          - Starts all wanpipe ports
          - Check /var/log/messages for info or errors---
  3. Configure DAHDI/ZAPTEL module
    #> dahdi_cfg -vvv

          - configures DAHDI kernel modules from /etc/dahdi/system.conf
          or
    #> ztcfg -vvv
         - configures ZAPTEL kernel modules from /etc/zaptel.conf     
    ---
  4. Start Asterisk
     #> asterisk

 


 

SOURCE INSTALLATION

 Sometimes it is required to install the driver from source due to differences between the RPM dependencies and what is installed on the system. To install the driver from source, follow the instructions below:

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);
          yum -y install libtool;
          yum -y install gcc;
          yum -y install patch;
          yum -y install perl;
          yum -y install bison;
          yum -y install gcc-c++;
          yum -y install ncurses;
          yum -y install ncurses-devel;
          yum -y install flex;
          yum -y install libtermcap-devel;
          yum -y install lksctp-tools-devel;


Dahdi/Zaptel Download and Compile

Dahdi Version
First find the version of Dahdi by running the command:
      #> dahdi_cfg -vvv
      DAHDI Tools Version - 2.2.0
      DAHDI Version: 2.2.0
      Echo Canceller(s):
      Configuration
     ======================

Now you will notice there will be two versions insure you note down the Dahdi version not the Dahdi-tools version. Then go to http://downloads.digium.com/pub/telephony/dahdi-linux/releases/ and search for your version of Dahdi there. The file name should be in the format "dahdi-linux-<version>.tar.gz". Once you find the version then run the command
        #> cd /usr/src/
and then run "wget <<URL of Dahdi-linux>>", so for this version it would be the following command. 
        #> wget http://downloads.digium.com/pub/telephony/dahdi-linux/releases/dahdi-linux-2.2.0.tar.gz


You would need to compile the dahdi source in order to install the wanpipe driver:
1. Extract the dahdi-linux-<version>.tar.gz file, by running the command:
        #> tar xvfz dahdi-linux-<version>.tar.gz
2. Run:
         #> cd dahdi-linux-<version>
    and then once in the directory run
        #> ./configure; make

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

Zaptel Version
Since Zaptel is no longer used, this covers only Trixbox 2.6.2.3
First find the version of Zaptel by running the command:
      #>ztcfg -vvv
      Zaptel Version: 1.4.12.9.svn.r4590-Xorcom-trunk-r7049
      Echo Canceller: OSLEC
      Configuration
      ======================

Now you will notice that only a portion of the line is highlighted. The highlighted portion is in fact the version of zaptel currently running on the system.
In order to download the source files for Zaptel, you would need to download the source RPMS. Navigate to the /usr/src directory by entering the command:
      #> cd /usr/src
The download link for this version of zaptel is: http://yum.trixbox.org/centos/5/SRPMS/zaptel-1.4.12.9-1_trixbox.src.rpm

Once you have downloaded the RPM, you would need to run the following commands to gain access to the source tarball:
     #> cd /usr/src
     #> mkdir redhat; cd redhat; mkdir SOURCES; cd /usr/src
     #> rpm -i zaptel-1.4.12.9-1_trixbox.src.rpm
     #> mv /usr/src/zaptel-1.4.12.9.tar.gz /usr/src/zaptel-1.4.12.9.tar.gz

You would need to compile the zaptel source in order to install the wanpipe driver:
1. Extract the zaptel-<version>.tar.gz file, by running the command:
        #> tar xvfz zaptel-<version>.tar.gz
2. Run:
         #> cd zaptel-<version>
    and then once in the directory run
        #> ./configure; make

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


Asterisk Download and Compile


The sources for Asterisk are only required if you are installing a BRI Card (A500/B700)

FOR TRIXBOX 2.6.2.3
1. First thing to do is find out your Asterisk version with the command:
       #> 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 found, install download the RPM using the command:
          #> wget <link to RPM>
4. Install the RPM with the command:
          #> rpm -i asterisk16-devel-<ver>.rpm

Once the RPM is installed, the asterisk sources will be located in "/usr/include/asterisk".

Wanpipe Driver Download and Install

- Download the lastest Dahdi Driver from --> http://wiki.sangoma.com/wanpipe-linux-drivers#beta
- Untar wanpipe release in arbitrary directory (/usr/src/ is recommended).
            #> tar xvfz wanpipe-<version>.tgz
          
  #> cd wanpipe-<version>
-
After untarring WANPIPE®, the wanpipe<version>/ directory will be created.
- Make sure asterisk 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 

  1. Run ./Setup install from the newly created wanpipe-<version> directory
        #>./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 PRI/ANALOG support, choose Option 2
    - For BRI support, choose Option 6
    - For PRI/BRI/ANALOG support, choose Option 7

    If PRI/ANALOG support was chosen:
                   Setup will try to auto-detect dahdi sources in /usr/src directory
                   [By default Setup will look in /usr/src]  
    IF BRI support was chosen:
                   Setup will try to auto-detect asterisk sources in /usr/src directory
                   [By default Setup will look in /usr/src]
    ---
  2. Proceed with Defaults for the rest of the compilation.   
    --
  3. Last step in installation will ask you to configure wanpipe cards for Dahdi/Zaptel/Sangoma Media Gateway (SMG)
    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.


Configure Sangoma Cards

  1. Create Wanpipe/DAHDI/SMG Configuraiton Files:
    #> Setup-Sangoma (Configures PRI/BRI and Analog Cards)
        (Note -> this step was offered at the end of the ./Setup install,

         if you already configured the card, proceed to the next step)

          - Creates Dahdi configuration files

          - Creates wanpipe configuration files in /etc/wanpipe

          - Creates SMG and Woomera configuration files
         - Creates wanpipe configuration files in /etc/wanpipe---
  2. Start Wanpipe Ports
    #> wanrouter start
          - Starts all wanpipe ports
          - Check /var/log/messages for info or errors---
  3. Configure DAHDI/ZAPTEL module
    #> dahdi_cfg -vvv

          - configures DAHDI kernel modules from /etc/dahdi/system.conf
          or
    #> ztcfg -vvv
         - configures ZAPTEL kernel modules from /etc/zaptel.conf     
    ---
  4. Start Asterisk
     #> asterisk
  5. If you have a BRI card you will need to add a "custom" trunk to dial out. If you go to http://wiki.sangoma.com/WoomeraFreepbx this is full details of how to do this with Freepbx which is essentially the same as Trixbox.

 


WANPIPE VOICETIME INSTALLATION

In order to install the voicetime tool, you would need to stop asterisk and zaptel/dahdi by performing:
        To Stop Asterisk
        #> amportal stop
              or if you have Asterisk 1.6 and up
        #> asterisk -rx "stop when convenient"
        To Stop Dahdi/Zaptel
        #> /etc/init.d/zaptel stop
             or if you have dahdi
        #> /etc/init.d/dahdi stop

Once dahdi/zaptel and asterisk have been stopped, you would need to do the following:

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);
          yum -y install libtool;
          yum -y install gcc;
          yum -y install patch;
          yum -y install perl;
          yum -y install bison;
          yum -y install gcc-c++;
          yum -y install ncurses;
          yum -y install ncurses-devel;
          yum -y install flex;
          yum -y install libtermcap-devel;
          yum -y install lksctp-tools-devel;


Dahdi/Zaptel Download and Compile

Dahdi Version
First find the version of Dahdi by running the command:
      #> dahdi_cfg -vvv
      DAHDI Tools Version - 2.2.0
      DAHDI Version: 2.2.0
      Echo Canceller(s):
      Configuration
     ======================

Now you will notice there will be two versions insure you note down the Dahdi version not the Dahdi-tools version. Then go to http://downloads.digium.com/pub/telephony/dahdi-linux/releases/ and search for your version of Dahdi there. The file name should be in the format "dahdi-linux-<version>.tar.gz". Once you find the version then run the command
        #> cd /usr/src/
and then run "wget <<URL of Dahdi-linux>>", so for this version it would be the following command. 
        #> wget http://downloads.digium.com/pub/telephony/dahdi-linux/releases/dahdi-linux-2.2.0.tar.gz


You would need to compile the dahdi source in order to install the wanpipe driver:
1. Extract the dahdi-linux-<version>.tar.gz file, by running the command:
        #> tar xvfz dahdi-linux-<version>.tar.gz
2. Run:
         #> cd dahdi-linux-<version>
    and then once in the directory run
        #> ./configure; make

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

Zaptel Version
Since Zaptel is no longer used, this covers only Trixbox 2.6.2.3
First find the version of Dahdi by running the command:
      #>ztcfg -vvv
      Zaptel Version: 1.4.12.9.svn.r4590-Xorcom-trunk-r7049
      Echo Canceller: OSLEC
      Configuration
      ======================

Now you will notice that only a portion of the line is highlighted. The highlighted portion is in fact the version of zaptel currently running on the system.
In order to download the source files for Zaptel, you would need to download the source RPMS. Navigate to the /usr/src directory by entering the command:
      #> cd /usr/src
The download link for this version of zaptel is: http://yum.trixbox.org/centos/5/SRPMS/zaptel-1.4.12.9-1_trixbox.src.rpm

Once you have downloaded the RPM, you would need to run the following commands to gain access to the source tarball:
     #> cd /usr/src
     #> mkdir redhat; cd redhat; mkdir SOURCES; cd /usr/src
     #> rpm -q zaptel-1.4.12.9-1_trixbox.src.rpm
     #> mv /usr/src/zaptel-1.4.12.9.tar.gz /usr/src/zaptel-1.4.12.9.tar.gz

You would need to compile the zaptel source in order to install the wanpipe driver:
1. Extract the zaptel-<version>.tar.gz file, by running the command:
        #> tar xvfz zaptel-<version>.tar.gz
2. Run:
         #> cd zaptel-<version>
    and then once in the directory run
        #> ./configure; make

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

Wanpipe Voicetime Driver Installation

1) Navigate to the /usr/src directory by entering the command:
        #> cd /usr/src
2) Download the wanpipe voicetime driver from: ftp://ftp.sangoma.com/linux/wanpipe_voicetime/wanpipe-voicetime-1.0.9.tgz
3) Untar the driver and change the directory:
        #> tar xvzf wanpipe-voicetime-<ver>.tgz
        #> cd wanpipe-voicetime-<ver>
4) Build the wanpipe voicetime driver by running the command:
        #> make ZAPDIR=/usr/src/zaptel-<ver>
**** Note: ZAPDIR is the location of the dahdi/zaptel source location on the current machine ****
5) Install the driver using the command:
        #> make install; make boot

Confirm Wanpipe Voicetime Driver Installation

Start wanpipe voicetime by running:
       #> /etc/init.d/zaptel start
            or if you are running dahdi
       #> /etc/init.d/dahdi start
Start Asterisk by running the command:
       #> amportal start
              or if you have Asterisk 1.6 and up
       #> asterisk

Confirm that the voicetime module is working by issuing the command:

       #> zttest
              or if you have dahdi
       #> dahdi_test

If you run zttest/dahdi_test, and it does not reference wanpipe voicetime, please contact techdesk@sangoma.com

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