PBX in a Flash

    Wanpipe Driver for PBX in Flash are installed by Source.  Follow the instructions below to compile the Wanpipe driver against the Dahdi/Zaptel sources

    Note: PBX in Flash contain the sources for Dahdi/Zaptel in /usr/src/ by default (no need to download)

    Wanpipe installation from Source

    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*

     

    Wanpipe Driver Download and Install

    Download the lastest Wanpipe Driver: Wanpipe Driver
    Untar wanpipe release in arbitrary directory (/usr/src/ is recommended).

    tar xvfz wanpipe-<version>.tgz
    cd wanpipe-<version>


    Verify asterisk and zaptel/dahdi are shutdown by using the commands:

    asterisk -rx "stop now"
    service dahdi stop

    ------------
    Install the Wanpipe Driver:

    ./Setup install  


    Proceed with installation Select "Y" for each option.

    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/zaptel 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 Deprecated Option 6/7--

    Proceed with Defaults for the rest of the compilation.   
    --
    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

    wanrouter hwprobe


    This command will load the wanpipe and Dahdi modules and will print out list of all Sangoma hardware installed on the system.

    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

     

     



    Configure Sangoma Cards

    Run the configuration script:

    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 you upgrade to Wanpipe 3.5.21 and UP and want to continue to
             use the deprecated BRI smg daemon, you must run:
              "setup-sangoma smg"

     


     Operation

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

    start Wanpipe Ports

    wanrouter start

           - Check /var/log/messages for info or errors

    ---
    Configure DAHDI/ZAPTEL module

    (dahdi)

    dahdi_cfg -vvv

    or (zaptel)

    ztcfg -vvv 


    Note: this step is taken care of if you have chosen to perform dahdi_cfg automatically  during 'setup-sangoma'   ---

     start Asterisk

    amportal start 
    asterisk -r


    To stop the Wanpipe driver at any time, you must stop Asterisk first:

    amportal stop
    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 Elastix.