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

Boost BRI with FreeSwitch

Note: This page is marked for deletion.

1. Wanpipe driver installation

2. FreeSwitch Installation

3. Configuration

4. Operation

 


 

Wanpipe Driver Installation

  1. Download the appropriate WANPIPE® Release based on the Sangoma Hardware.
    Please download latest stable
    ---
  2. 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.  
  3. Run ./Setup install from the newly created wanpipe-<version> directory
       
             #>./Setup install
        or

             #>./Setup install --64bit_4GB 
                 (in case X86_64bit & 4GB memory or more)
     
    Proceed with installation Select "Y" for each option.
    Under compilation mode:  Select "TDM API" (In newer betas it is called "TDM Voice API").
     TDM API 
           Protocols: TDM API on AFT adapters:
           Default for: FreeSwitch, Yate, Sunrise
                        Custom voice development

    ---
  4. Proceed with Defaults for the rest of the compilation.  

    If any errors are encountered during the compilation of the utilities, click here for assistance.

 
Confirm Successful Wanpipe Installation

  1. Confirm successful Wanpipe installation run:
    #>wanrouter hwprobe
    e.g
    # wanrouter hwprobe

    -------------------------------
    | Wanpipe Hardware Probe Info |
    -------------------------------
    1 . AFT-A500-SH : SLOT=4 : BUS=5 : IRQ=19 : PORT=1 : HWEC=0 : V=32
    2 . AFT-A500-SH : SLOT=4 : BUS=5 : IRQ=19 : PORT=2 : HWEC=0 : V=32


    You can also use "wanrouter hwprobe verbose" to see detailed output of detected hardware. Use this command to see detected TE/NT modules

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

 


FreeSwitch Installation

  1. Installing pre-required package

     Installing FreeSwitch requires the following:

    On Centos 5.X:

    #> yum install subversion autoconf bison flex make gcc gcc-c++ libtool automake ncurses-devel

    On debian or ubuntu:

    •  Install tools needed before packaging:
      #> apt-get install devscripts pbuilder gcc make bison automake autoconf flex libtool
    • Let freeswitch handlerequired dependencies from the source with pbuilder
  2. Check Out latest FreeSwitch SVN and Compile
    #cd /usr/src/
    # svn checkout http://svn.freeswitch.org/svn/freeswitch/trunk freeswitch
    OR
    #
    svn checkout http://svn.freeswitch.org:81/svn/freeswitch/trunk freeswitch
  3. Installation FreeSwitch With OpenZap
    #cd freeswtich
    #./bootstrap.sh
    #./configure
    Select OpenZap Module for compilation
    #vi module.conf
    and uncomment opne_zap line (#../../libs/openzap/mod_openzap) by removing "#" from beginning of the line
    #make all install
    #make samples
    #make sounds-install
    #make moh-install

    #ls /usr/local/freeswitch ( confirm freeswitch installation directory)
    e.g.
    # ls /usr/local/freeswitch/
    bin  conf  db  grammar  htdocs  include  lib  log  mod  recordings  scripts  sounds

 


 

Configuration


wancfg_fs to configure wanpipe and openzap.xml . wancfg_fs wil create following configuration files

  • /etc/wanpipe/wanpipe#.conf
  • /etc/wanpipe/smg_bri.conf (for A500)
  • /usr/local/freeswitch/conf/openzap.conf
  1. #wancfg_fs
  2. Hand edit openzap.conf.xml (/usr/local/freeswitch/conf/autoload_configs/openzap.conf.xml) add boost
       <boost_spans>
        <span name="boostbri">
          <!--<param name="hold-music" value="$${moh_uri}"/>-->
          <!--<param name="enable-analog-option" value="call-swap"/>-->
          <!--<param name="enable-analog-option" value="3-way"/>-->
          <param name="dialplan" value="XML"/>
          <param name="context" value="default"/>
          <!-- regex to stop dialing when it matches -->
          <!--<param name="dial-regex" value="5555"/>-->
          <!-- regex to stop dialing when it does not match -->
          <!--<param name="fail-dial-regex" value="^5"/>-->
        </span>
      </boost_spans>
  3. Hand edit module.conf (/usr/local/freeswitch/conf/auto_loadconfig/module.conf) to autoload mod_openzap at freeswitch start.
    Change following line from
    <!-- <load module="mod_openzap"/> -->
    To
        <load module="mod_openzap"/>

 


Operation