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

Wanpipe SMG PRI Installation for Asterisk

Note: This page is marked for deletion.

  1. Asterisk Installation with (Zaptel/Dahdi Optional)
  2. Wanpipe Driver and PRI Stack Intallation

 

Introduction


Sangoma Asterisk PRId solution is based on Sangoma's own asterisk module called "chan_woomera".
Sangoma Asterisk PRId does not depend on Zaptel/Dahdi, however it does work along side either
module without any conflicts.

 

 Astersk <---(woomera) --> sangoma_mgd <-------(sctp)-------> sangoma_prid
                                                   |                                                        |
                                            wanpipe/TDM API                                    wanpipe/TDM API
                                      voice only T1/E1 channels                              D-Channel

 

 

Downloading Asterisk

Go to http://www.asterisk.org/downloads and download Asterisk/Dahdi/LibPRI
(Look for Asterisk downloads  on right-hand side) .
You can use wget command to download sources (tar ball) on your local directory.

For example:
#> wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
#> wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz
#> wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.6.1-current.tar.gz
 

Installing Asterisk/Dahdi/

  1. Dahdi Installation
     
    Download Dahdi into arbitrary directory (/usr/src) and  untar it.
    #>tar xvfz dahdi-linux-<version>
    #>tar xvfz dahdi-tools-<version>
    #>ln -s dahdi-linux-<version> dahdi
    #>cd dahdi-linux-<version>
    #>make
    #>make install
    #>cd ..
    #>
    cd dahdi-tools-<version>
    #>./configure
    #>make
    #>make install

  2. LibPRI Installation
    Its not necessary because all PRI calls will be handled by sangoma_prid and asterisk chan_woomera.
     
  3. Asterisk Installation

    If you are upgrading Asterisk make sure that old asterisk modules are removed from /usr/lib/asterisk/modules

    #> cd /usr/lib/asterisk
    #> mv modules modules.old

    Download Asterisk into arbirary directory  (/usr/src/) and untar it.
    Untar Asterisk and proceed with installation
    #>tar xvfz asterisk-<version>.tgz
    #>cd asterisk-<version>
    #>./configure     
    #>make
    #>make install
    #>make samples (in case of very first install)

Please note: <version> refers to the specific release of your program. For instance, dahdi-linux-2.0.0.tar.gz, once untarred will create the folder dahdi-linux-2.0.0.
  
Once Dahdi, Libpri and Asterisk are downloaded and untarred, you may proceed with WANPIPE® installation.

After completing the WANPIPE® TDM installation, you may proceed to configuring the full Asterisk suite.


 

Download Wanpipe drivers

The latest version of Wanpipe 3.5 drivers or above drivers [link].


Installation

#>tar xfz wanpipe-<version>.tgz

#>cd wanpipe-<version>
#>./Setup install --protocol=SSMG_PRI

Note: If you have already installed Wanpipe drivers and wish to upgrate sangoma_mgd, sangoma_prid and chan_woomera only, you can skip the hardwre drivers compilation/installation by using this command:

#>./Setup smgpri 


Configuration

1.1 Asterisk and Sangoma_prid configuration

#>wancfg_zaptel

Sangoma PRI Configuration file is located in /etc/wanpipe/smg_pri.conf 

wancfg_zaptel, will generate
-> /etc/wanpipe/wanpipe*.conf files for each wanpipe T1/E1 port.
-> Zaptel and Dahdi configuration files if selected.
-> /etc/wanpipe/smg_pri.conf for each prid span.
-> Asterisk zaptel and or dahdi files if selected.
-> Asterisk chan_woomera configuration file.

For additional info, see: http://wiki.sangoma.com/SmgPriAdvancedOptions

 


Operation

Start wanpipe T1/E1 cards:

#>wanrouter start

Start PRI Stack Daemon:

#>smg_ctrl start

To stop PRI Stack Daemon:

#>smg_ctrl stop