FreeSWITCH Installation

    1. Wanpipe Driver Installation
    2. Signalling Library Installation
    3. FreeSWITCH Installation

    Note: FreeSWITCH DAHDI Mode installation required for:
    -> USBFXO with FreeSWITCH
    -> T1 RBS Protocol support
    -> AFT analog card software echo cancellation support (if hardware echo cancellation not available)


    Wanpipe Driver Installation

    1. Wanpipe install using source files
    2. Wanpipe install using an RPM package
    3. Wanpipe install using a .deb package



    Wanpipe Source Install

     

    Download the latest stable driver:

    wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-current.tgz


    Untar the driver package and enter the new directory :

    tar xfz wanpipe-current.tgz
    cd wanpipe-<version>.tgz


    Compile the code base using "make":

    make freetdm


    Install the compiled code using "make install":

    make install


    Confirm the driver installation by running "wanrouter hwprobe" to load the drivers and query the hardware installed in the system.

    wanrouter hwprobe
    -------------------------------
    | Wanpipe Hardware Probe Info |
    -------------------------------
    1 . AFT-A108-SH : SLOT=2 : BUS=4 : IRQ=217 : CPU=A : PORT=1 : HWEC=0 : V=41
    2 . AFT-A108-SH : SLOT=2 : BUS=4 : IRQ=217 : CPU=A : PORT=2 : HWEC=0 : V=41
    3 . AFT-A108-SH : SLOT=2 : BUS=4 : IRQ=217 : CPU=A : PORT=3 : HWEC=0 : V=41
    4 . AFT-A108-SH : SLOT=2 : BUS=4 : IRQ=217 : CPU=A : PORT=4 : HWEC=0 : V=41
    5 . AFT-A108-SH : SLOT=2 : BUS=4 : IRQ=217 : CPU=A : PORT=5 : HWEC=0 : V=41
    6 . AFT-A108-SH : SLOT=2 : BUS=4 : IRQ=217 : CPU=A : PORT=6 : HWEC=0 : V=41
    7 . AFT-A108-SH : SLOT=2 : BUS=4 : IRQ=217 : CPU=A : PORT=7 : HWEC=0 : V=41
    8 . AFT-A108-SH : SLOT=2 : BUS=4 : IRQ=217 : CPU=A : PORT=8 : HWEC=0 : V=41

    Card Cnt: A108=1

     


    Signalling Library Installation

    PRI and BRI 

    For PRI or BRI support, you need to install Sangoma ISDN Library (libsng_isdn).

    You can download the latest Sangoma ISDN Library here:

    32-bit library: ftp://ftp.sangoma.com/linux/libsng_isdn/libsng_isdn-current.i686.tgz
    64-bit library: ftp://ftp.sangoma.com/linux/libsng_isdn/libsng_isdn-current.x86_64.tgz

    Untar the downloaded tarball

    #>tar xfz libsng_isdn-current.<arch>.tgz

    Install the library
    #>cd libsng_isdn-<version>.<arch>
    #>make install

     

    SS7  (This configuration is not officially supported) 

    The steps below are just guidelines only, for a supported SS7 deployment please use NSG -> http://wiki.sangoma.com/Netborder-SS7-Voip-Media-Gateway

    You can download the latest Sangoma SS7 Library here:

    32-bit library: ftp://ftp.sangoma.com/linux/libsng_ss7/libsng_ss7-current.i686.tgz
    64-bit library: ftp://ftp.sangoma.com/linux/libsng_ss7/libsng_ss7-current.x86_64.tgz

    Untar the downloaded tarball
    #>tar xfz libsng_ss7-current.<arch>.tgz

    Install the library
    #>cd libsng_ss7-<version>.<arch>
    #>make install




    Freeswitch Installation

    1. Download FreeSWITCH by using one of the following methods:

           -> Download the latest Git trunk:

               # git clone git://git.freeswitch.org/freeswitch.git

           -> Download the latest nightly snapshot:

      # wget http://files.freeswitch.org/freeswitch-snapshot.tar.gz

    2. Prepare the build system using "bootstrap.sh"

      # ./bootstrap.sh
    3. Add mod_freetdm to the modules to compile by un-commenting it in modules.conf.

      -> open modules.conf with your preferred text editor
      -> search for "libs/freetdm/mod_freetdm" in modules.conf
      -> remove the # from the beginning of line
    4. Configure the build system using "configure"

      # ./configure --prefix=<location to install FreeSWITCH to>

      NOTE: "--prefix" is an optional parameter, if a install location is not specified FreeSWITCH will install to /usr/local/freeswitch
    5. Compile all source code using "make"

      # make
    6. Install the compiled binaries using "make install"

      # make install