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

AsteriskNOW

  1. RPM Installation
  2. Source Installation
    a. Requirements
    b. Download Dahdi
    c. Compiling Dahdi
    d. Asterisk Download/Compile (ONLY FOR BRI)
    e. Driver Installation
  3. Configuration/Operation

If you have just installed Asterisk Now you can just use the RPMs in the "RPM Installation" step below. Now if there has been changes to the system (kernel, dahdi versions) or you are running on a newer version of AsteriskNOW then you can follow the steps below starting with the "Requirements".

 


RPM Installation

AsteriskNOW 1.7

DISTRIBUTION Dahdi  Kernel Asterisk  Wanpipe Version
(Change Log)
Wanpipe Modules RPM Wanpipe Utilities RPM

AsteriskNOW 1.7 (YUM UPDATE) 

2.3.0.1-1 2.6.18-194.8.1.el5 1.6.2.9-1 3.5.14 wanpipe-modules-rpm wanpipe-util-rpm

AsteriskNOW 1.7 (YUM UPDATE) 

2.3.0-1 2.6.18-194.3.1.el5 1.4.33.1-1 3.5.14 wanpipe-modules-rpm wanpipe-util-rpm

 AsteriskNOW 1.7 (Stock Version) 

2.3.0.1-1 2.6.18-194.3.1.el5 1.4.32-1 3.5.11.8 wanpipe-modules-rpm wanpipe-util-rpm


AsteriskNOW 1.5

DISTRIBUTION Dahdi  Kernel Asterisk  Wanpipe Version
(Change Log)
Wanpipe Modules RPM Wanpipe Utilities RPM
 AsteriskNOW 1.5 (Stock Version) 2.2.0.4 2.6.18-128.1.1.el5 1.4.24 3.5.11 wanpipe-modules-rpm wanpipe-util-rpm
AsteriskNOW 1.5 (YUM UPDATE) 2.3.0 2.6.18-164.15.1.el5 1.4.30 3.5.11 wanpipe-modules-rpm wanpipe-util-rpm

AsteriskNOW 1.5 (YUM UPDATE) 

2.3.0-1 2.6.18-194.3.1.el5 1.4.31-1 3.5.11.4 wanpipe-modules-rpm wanpipe-util-rpm


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 version
       #> dahdi_cfg -vvv
           DAHDI Tools Version - 2.2.0
           DAHDI Version: 2.2.0

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



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 insure you are running Asterisk Now 1.5 or greater.
Please run the follow commands to install the required packages for compiling on Asterisk Now

          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;

****Please not that if you are using Kernel 2.6.18-128.1.1.el5 then the kernel-devel package will not work and you must download it from here: kernel-devel-2.6.18-128.1.1.el5.i686.rpm****


Downloading Dahdi
  

First find the version of Dahdi by running the command:
      #> dahdi_cfg -vvv
         DAHDI Tools Version - 2.1.0.2
         DAHDI Version: 2.1.0.4
         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.1.0.4.tar.gz


Compiling Dahdi

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
        #> make

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


Asterisk Download/Compile (ONLY FOR BRI)

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.24 then the URL will be http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.4.24.tar.gz
3.
Once you have the URL run the command "cd /usr/src/" and then run the command "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. 


Wan
pipe Installation (Linux) (PRI/BRI/ANALOG)

- 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.  

  1. Run ./Setup install from the newly created wanpipe-<version> directory
        #>./Setup dahdi  
    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
    -> Proceed with YES this is your initial installation
    -> Note wancfg_dahdi configurator will overwrite your
         system.conf and chan_dahdi.conf files and
         save the originals as system.conf.bak and chan_dahdi.conf.bak

    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. 

 

 

 

 

 

 

 

 

 

 


 

Configuration/Operation 

 

 

 

 

 


  1. Create Wanpipe/DAHDI/SMG Configuraiton Files:
    #> wancfg_dahdi (Configures PRI 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
    #> wancfg_smg (Configures BRI, PRI and Analog Cards)
        (Note -> This step was offered at the end of the ./Setup install.
         if you aleady configured the card, proceed to the next step)
         - Creates Dahdi configuration files
         - 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 module
    #> dahdi_cfg -vvv
          - configures DAHDI kernel modules from /etc/dahdi/system.conf ( Previously - ztcfg )          
  4. Start Asterisk
    #> asterisk