Difference between revisions of "CentOS Install TDM"

From FusionPBX
Jump to: navigation, search
(Created page with "==Sangoma Wanpipe== This is a Sangoma specific driver it can be used or Zaptel can be used. http://wiki.sangoma.com/wanpipe-freeswitch-install Install dependency packages sud...")
 
(Sangoma Wanpipe)
Line 8: Line 8:
 
  sudo yum install lksctp-tools-devel
 
  sudo yum install lksctp-tools-devel
 
  sudo yum install flex libtermcap-devel bison
 
  sudo yum install flex libtermcap-devel bison
 +
 +
 +
==Get zaptel source==
 +
 +
cd /usr/src
 +
svn checkout http://svn.digium.com/svn/zaptel/branches/1.4 zaptel
 +
 +
or
 +
 +
cd /usr/src/
 +
wget http://downloads.asterisk.org/pub/telephony/zaptel/zaptel-1.4.12.1.tar.gz
 +
 +
Get wanpipe source
 +
 +
cd /usr/src/
 +
wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-latest.tgz
 +
tar xvfz wanpipe-latest.tgz
 +
cd /usr/src/wanpipe-*
 +
 +
 +
Install wanpipe
 +
 +
bash -p Setup install
 +
 +
 +
Would you like to install WANPIPE now? [y] (y/n) y Press [Enter] to continue... Please specify absolute path name of your linux headers/source directory
 +
 +
Press Enter for Default: /lib/modules/2.6.18-164.el5/build /usr/src/kernels/2.6.18-164.11.1.el5-x86_64/
 +
 +
Install modules for current image: 2.6.18-164.el5 ? (y/n) y
 +
 +
Press [Enter] to continue...
 +
 +
Please Select Compilation Mode Please select (1-11) [Default: 1]:
 +
 +
10. TDM API
 +
 +
      Protocols: TDM API on AFT adapters:
 +
      Default for: FreeSwitch, Yate, Sunrise
 +
                    Custom voice development
 +
 +
Please select (1-11) [Default: 1]: 10
 +
 +
Please select a protocol option in [<opt>]: ALL (for all)
 +
 +
Please select working zaptel directory [1-1][m]: m
 +
 +
Please enter zaptel dir: [Default: /usr/src/zaptel]
 +
 +
    1. > /usr/src/zaptel
 +
 +
Checking for UDEV Zaptel compatibility...
 +
 +
  Would you like to add UDEV rules for Zaptel devices ? (y/n) n
 +
 +
Press [Enter] to continue... Press [Enter] to continue...
 +
 +
[EXIT|Q|q]: Exit Protocol Selection
 +
 +
Please select a protocol option in [<opt>]: EXIT
 +
 +
Visually Confirm that driver compilation was successful! (y/n) y
 +
 +
 +
    WANPIPE v3.5.10 Installation Script
 +
    Copyright (c) 1995-2009, Sangoma Technologies Inc.
 +
 +
WANPIPE META CONFIGURATION
 +
 +
There are two configuration files associated with WANPIPE.
 +
 +
1) /usr/src/wanpipe-3.5.10/wanrouter.rc:
 +
 +
        - defines locations of important files such as lock
 +
          and configuration files as well as start/stop
 +
          order of multiple WANPIPE devices.
 +
 +
2) /usr/src/wanpipe-3.5.10/wanpipe1.conf:
 +
 +
        - main configuration file for each WANPIPE device.
 +
        - defines interfaces, hardware and protocol information.
 +
        - this file can be created using the 'wancfg' GUI
 +
          utility or manually based on sample files located
 +
          in /etc/wanpipe/samples.
 +
 +
Please read the WanpipeInstallation.(pdf/txt) manual for further information.
 +
 +
Press [Enter] to continue...
 +
 +
Please specify a desired location for WANPIPE configuration files.
 +
 +
        (Press Enter for Default: /etc/wanpipe)
 +
 +
<specify path:> /etc/wanpipe
 +
 +
Please specify a desired location for WANPIPE interface files.
 +
 +
        (Press Enter for Default: /etc/wanpipe/interfaces)
 +
 +
<specify path:> /etc/wanpipe/interfaces
 +
 +
Please specify a location for WANPIPE binary, firmware files.
 +
 +
        (Press Enter for Default: /etc/wanpipe/firmware)
 +
 +
<specify path:> /etc/wanpipe/firmware
 +
 +
 +
    WANPIPE v3.5.10 Installation Script
 +
    Copyright (c) 1995-2009, Sangoma Technologies Inc.
 +
 +
WANPIPE UTILITIES SETUP
 +
 +
WANPIPE utilities are used to:
 +
 +
        1) create configuration files: for Zaptel and Asterisk
 +
                /usr/sbin/wancfg_zaptel #Zaptel and Asterisk
 +
                /usr/sbin/wancfg_dahdi  #Dahdi and Asterisk
 +
                /usr/sbin/wancfg_smg    #BRI/SS7, Zaptel and Asterisk
 +
                /usr/sbin/wancfg_tdmapi #TDM API
 +
        2) create WANPIPE WAN/IP configuration files.
 +
                (/usr/sbin/wancfg)
 +
        3) start,stop,restart individual/all devices and interfaces.
 +
                (/usr/sbin/wanrouter)
 +
        4) debug line, protocol and driver problems.
 +
                (/usr/sbin/wanpipemon)
 +
        5) aid in WANPIPE API development
 +
                (/etc/wanpipe/api)
 +
 +
Refer to the WanpipeInstallation.(pdf/txt) for more information.
 +
 +
Press [Enter] to continue...
 +
 +
Press [Enter] to continue...
 +
 +
 +
Installing WANPIPE Files ... ! Installing WANPIPE Utilities in /usr/sbin Installing wanrouter.rc in /etc/wanpipe Installing wanpipe libraries in  /etc/wanpipe Installing firmware in /etc/wanpipe/firmware Installing documentation in /usr/share/doc/wanpipe Installing sample api code in /etc/wanpipe/api Installing AFT Firmware update utility in /etc/wanpipe/util Installing driver headers in /etc/wanpipe/api/include/linux Installing Hardware Echo Cancel Utilites Press [Enter] to continue...
 +
 +
 +
Would you like to install WANPIPE start-up scripts? (y/n) y
 +
 +
 +
    WANPIPE v3.5.10 Installation Script
 +
    Copyright (c) 1995-2009, Sangoma Technologies Inc.
 +
 +
WANPIPE INSTALLATON: COMPLETE
 +
 +
WANPIPE installation is now complete. WANPIPE kernel drivers and configuration/debug utilities have been compiled and installed.
 +
 +
 +
        1) Proceed to configure the WANPIPE drivers:
 +
                Asterisk/Zaptel  : /usr/sbin/wancfg_zaptel
 +
                Asterisk/Dahdi  : /usr/sbin/wancfg_dahdi
 +
                TDM API          : /usr/sbin/wancfg_tdmapi
 +
                SMG SS7/BRI/PRI  : /usr/sbin/wancfg_smg
 +
                WAN Routing/API  : /usr/sbin/wancfg
 +
        2) Use the /usr/sbin/wanrouter startup script to start and stop
 +
          the router. (eg: wanrouter start)
 +
        3) To uninstall WANPIPE package run ./Setup remove
 +
 +
Please read http://wiki.sangoma.com for further instructions.
 +
 +
 +
Sometimes you need an
 +
 +
depmod -a

Revision as of 18:01, 8 June 2011

Sangoma Wanpipe

This is a Sangoma specific driver it can be used or Zaptel can be used. http://wiki.sangoma.com/wanpipe-freeswitch-install

Install dependency packages

sudo yum install -y kernel-devel.x86_64 zaptel-devel.x86_64
sudo yum install lksctp-tools-devel
sudo yum install flex libtermcap-devel bison


Get zaptel source

cd /usr/src
svn checkout http://svn.digium.com/svn/zaptel/branches/1.4 zaptel 

or

cd /usr/src/
wget http://downloads.asterisk.org/pub/telephony/zaptel/zaptel-1.4.12.1.tar.gz

Get wanpipe source

cd /usr/src/
wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-latest.tgz
tar xvfz wanpipe-latest.tgz
cd /usr/src/wanpipe-*


Install wanpipe

bash -p Setup install


Would you like to install WANPIPE now? [y] (y/n) y Press [Enter] to continue... Please specify absolute path name of your linux headers/source directory

Press Enter for Default: /lib/modules/2.6.18-164.el5/build /usr/src/kernels/2.6.18-164.11.1.el5-x86_64/

Install modules for current image: 2.6.18-164.el5 ? (y/n) y
Press [Enter] to continue...
Please Select Compilation Mode Please select (1-11) [Default: 1]:
10. TDM API

      Protocols: TDM API on AFT adapters:
      Default for: FreeSwitch, Yate, Sunrise
                   Custom voice development
Please select (1-11) [Default: 1]: 10

Please select a protocol option in [<opt>]: ALL (for all)

Please select working zaptel directory [1-1][m]: m

Please enter zaptel dir: [Default: /usr/src/zaptel]

   1. > /usr/src/zaptel 
Checking for UDEV Zaptel compatibility...

  Would you like to add UDEV rules for Zaptel devices ? (y/n) n

Press [Enter] to continue... Press [Enter] to continue...

[EXIT|Q|q]: Exit Protocol Selection

Please select a protocol option in [<opt>]: EXIT

Visually Confirm that driver compilation was successful! (y/n) y


   WANPIPE v3.5.10 Installation Script
   Copyright (c) 1995-2009, Sangoma Technologies Inc.

WANPIPE META CONFIGURATION

There are two configuration files associated with WANPIPE.

1) /usr/src/wanpipe-3.5.10/wanrouter.rc:

       - defines locations of important files such as lock
         and configuration files as well as start/stop
         order of multiple WANPIPE devices.

2) /usr/src/wanpipe-3.5.10/wanpipe1.conf:

       - main configuration file for each WANPIPE device.
       - defines interfaces, hardware and protocol information.
       - this file can be created using the 'wancfg' GUI
         utility or manually based on sample files located
         in /etc/wanpipe/samples.
Please read the WanpipeInstallation.(pdf/txt) manual for further information.

Press [Enter] to continue...

Please specify a desired location for WANPIPE configuration files.

       (Press Enter for Default: /etc/wanpipe)

<specify path:> /etc/wanpipe

Please specify a desired location for WANPIPE interface files.

       (Press Enter for Default: /etc/wanpipe/interfaces)

<specify path:> /etc/wanpipe/interfaces

Please specify a location for WANPIPE binary, firmware files.

       (Press Enter for Default: /etc/wanpipe/firmware) 

<specify path:> /etc/wanpipe/firmware


   WANPIPE v3.5.10 Installation Script
   Copyright (c) 1995-2009, Sangoma Technologies Inc.

WANPIPE UTILITIES SETUP

WANPIPE utilities are used to:

       1) create configuration files: for Zaptel and Asterisk
               /usr/sbin/wancfg_zaptel #Zaptel and Asterisk
               /usr/sbin/wancfg_dahdi  #Dahdi and Asterisk
               /usr/sbin/wancfg_smg    #BRI/SS7, Zaptel and Asterisk
               /usr/sbin/wancfg_tdmapi #TDM API
       2) create WANPIPE WAN/IP configuration files.
               (/usr/sbin/wancfg)
       3) start,stop,restart individual/all devices and interfaces.
               (/usr/sbin/wanrouter)
       4) debug line, protocol and driver problems.
               (/usr/sbin/wanpipemon)
       5) aid in WANPIPE API development
               (/etc/wanpipe/api)
Refer to the WanpipeInstallation.(pdf/txt) for more information.

Press [Enter] to continue...

Press [Enter] to continue...


Installing WANPIPE Files ... ! Installing WANPIPE Utilities in /usr/sbin Installing wanrouter.rc in /etc/wanpipe Installing wanpipe libraries in  /etc/wanpipe Installing firmware in /etc/wanpipe/firmware Installing documentation in /usr/share/doc/wanpipe Installing sample api code in /etc/wanpipe/api Installing AFT Firmware update utility in /etc/wanpipe/util Installing driver headers in /etc/wanpipe/api/include/linux Installing Hardware Echo Cancel Utilites Press [Enter] to continue...


Would you like to install WANPIPE start-up scripts? (y/n) y


   WANPIPE v3.5.10 Installation Script
   Copyright (c) 1995-2009, Sangoma Technologies Inc.

WANPIPE INSTALLATON: COMPLETE

WANPIPE installation is now complete. WANPIPE kernel drivers and configuration/debug utilities have been compiled and installed.


       1) Proceed to configure the WANPIPE drivers:
               Asterisk/Zaptel  : /usr/sbin/wancfg_zaptel
               Asterisk/Dahdi   : /usr/sbin/wancfg_dahdi
               TDM API          : /usr/sbin/wancfg_tdmapi
               SMG SS7/BRI/PRI  : /usr/sbin/wancfg_smg
               WAN Routing/API  : /usr/sbin/wancfg
       2) Use the /usr/sbin/wanrouter startup script to start and stop
          the router. (eg: wanrouter start)
       3) To uninstall WANPIPE package run ./Setup remove 

Please read http://wiki.sangoma.com for further instructions.


Sometimes you need an
depmod -a