[asterisk-r2] OpenR2, Wanpipe, Dahdi 2.4 and Astersik 1.6

Ramon Velasquez ramvel99 at gmail.com
Sat Jun 11 15:28:59 CDT 2011


Hi, if somebody can help me!! I appreciate it

I compiled OpenR2 for asterisk-1.6.2.15 and Dahdi dahdi-linux-2.4.0,using
TE-205P E1s and is working great,
I also have another E1 from sangoma, but when I tried to compile Wanpipe
(wanpipe-3.5.20.14)  with Dadhi,does not work

dahdi path: /usr/src/dahdi/dahdi-linux-2.4.0
Linux Headers: /usr/src/ linux-headers-2.6.32-5-686
                                    linux-headers-2.6.32-5-common
                                    linux-kbuild-2.6.32

dahdi_hardware
pci:0000:05:02.0     wanpipe-     1923:0300 Sangoma Technologies Corp. A101
single-port T1/E1
pci:0000:05:04.0     wct4xxp+     d161:0205 Wildcard TE205P

Installing WANPIPE Device Drivers: Linux KERNEL

To integrate WANPIPE Multi-Protocol Voice & WAN Router
modules into the Linux kernel, the kernel has to be
updated with latest wanpipe sources.  Install will only
modify existing wanpipe source that is already in the
Kernel.

IMPORTANT:
It is always recommended to say YES to all options
prompted during the install!


        ----------------------------------------------------------
                  WANPIPE v3.5.20.14 Installation Script
            Copyright (c) 1995-2010, Sangoma Technologies Inc.
        ----------------------------------------------------------


Please specify absolute path name of your linux headers/source directory

Press Enter for Default: /lib/modules/2.6.32-5-686/build

#>Setting linux directory to /lib/modules/2.6.32-5-686/build



Upgrading WANPIPE kernel documentation ...Done.


Installing WANPIPE include headers ...Done.

WANPIPE device drivers upgraded successfully!


        ----------------------------------------------------------
                  WANPIPE v3.5.20.14 Installation Script
            Copyright (c) 1995-2010, Sangoma Technologies Inc.
        ----------------------------------------------------------

WANPIPE KERNEL DRIVER COMPILATION

The next step in WANPIPE installation involves compiling
WANPIPE kernel modules.

This script will compile and install WANPIPE modules
into the currently running linux kernel.

For greater customization you will be prompted to
select which Protocol/Drivers you would like to
build into the WANPIPE kernel modules.

Wanpipe for Asterisk/Dahdi/Zaptel
        Default for Asterisk/Dahdi/Zaptel
Wanpipe for Wan Routing/API
        Default for Wan/IP Routing and Data API
Wanpipe for Asterisk SMG/SS7
        Default for Asterisk SS7
Wanpipe for TDM API
        Default for FreeSwitch and Voice API

Custom Compilation:
------------------
  Customise WANPIPE driver compilation to add only the
  protocols that you need.  This way one can reduce
  the size of the WANPIPE kernel drivers.

Refer to http://wiki.sangoma.com for more info


        ----------------------------------------------------------
                  WANPIPE v3.5.20.14 Installation Script
            Copyright (c) 1995-2010, Sangoma Technologies Inc.
        ----------------------------------------------------------


        Please Select Compilation Mode

1. WAN Protocols Support
       Protocols: Frame Relay, CHDLC, PPP, ATM, X25, ADSL, TDM API
       Default for: Wan Routing, Data & Voice API devel.

2. TDM Voice (Dahdi/Zaptel) Support
       Protocols: TDMV (Dahid/Zaptel), TDM API on AFT adatpers.
       Default for: Asterisk & CallWeaver

3. TDM Voice (Dahid/Zaptel) + WAN Protocol Support

4. SMG (SS7) (Default for Asterisk SMG/SS7 install)

5. SMG (SS7) + TDM Voice (Dahdi/Zaptel)
       Default for: Asterisk SS7 + PRI

6. SMG (BRI) (Default for Asterisk SMG/BRI install)

7. SMG (BRI) + TDM Voice (Dahdi/Zaptel)
       Default for: Asterisk BRI + PRI + Analog

8. SMG (PRI) (Default for Asterisk SMG/PRI install)

9. SMG (PRI) + TDM Voice (Dahdi/Zaptel)
       Default for: Asterisk SMG/PRI + Analog

10. TDM API
       Protocols: TDM API on AFT adapters:
       Default for: FreeSwitch, Yate, Sunrise
                    Custom voice development

11. Custom Compilation Mode
       Specify protocols to be added into the WANPIPE
       kernel drivers.

Please select (1-11) [Default: 1]:
        ----------------------------------------------------------
                  WANPIPE v3.5.20.14 Installation Script
            Copyright (c) 1995-2010, Sangoma Technologies Inc.
        ----------------------------------------------------------


Looking for zaptel/dahdi directory in /usr/src ...
-------------------------------------------
1 : /usr/src/dahdi/dahdi-linux-2.4.0
------------------------------------------
------------------------------------------
m : Enter zaptel path manually

(ctrl-c to Exit)
Please select working zaptel directory [1-1][m]: 1

Enabling the TDM Voice Asterisk Support

Dahdi HW HDLC Support Detected: Enabling DCHAN Feature
Native Dahdi HW HDLC Support Detected - No patch required
Dahdi source unmodified

Checking for UDEV Zaptel compatibility...     Dahdi installed, no need to
add UDEV rules
Enabling the AFT TE1 Support

Checking for SMP support ...Enabled.

Checking current processor type ...i686

Wan Update Flags:  -DWANPIPE_MOD_266_FORCE_UPDATE


--------------------------------------------------
CFLAGS: gcc -Wp,-MD,.wanpipe.o.d -nostdinc -iwithprefix include -D__LINUX__
-Dlinux -D__KERNEL__ -I/usr/include/wanpipe
-I/lib/modules/2.6.32-5-686/build/include  -DMODULE
-DWANPIPE_MOD_266_FORCE_UPDATE  make: Entering directory
`/usr/src/linux-headers-2.6.32-5-686'
make: Leaving directory `/usr/src/linux-headers-2.6.32-5-686'
--------------------------------------------------

Checking for REGPARM kernel option ...
Warning: Failed to determine regparm from Makefile defaulting to YES!

Enabled.

Compiling General WANPIPE Driver for 2.6.X Kernel .....Done.


WAN HWEC module enabled and compiled!
Linking Wanpipe Driver and protocols ...Done.

Updating Kernel Modules ...Done.

Compilation Successful.

        ----------------------------------------------------------
                  WANPIPE v3.5.20.14 Installation Script
            Copyright (c) 1995-2010, Sangoma Technologies Inc.
        ----------------------------------------------------------

WANPIPE META CONFIGURATION

There are two configuration files associated with WANPIPE.

1) /usr/src/wanpipe/wanpipe-3.5.20.14/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/wanpipe-3.5.20.14/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.


        ----------------------------------------------------------
                  WANPIPE v3.5.20.14 Installation Script
            Copyright (c) 1995-2010, 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.

Compiling WANPIPE LibSangoma API library ...Failed.



Compiling WANPIPE Utilities ...
make CC=gcc
SYSINC=/usr/src/wanpipe/wanpipe-3.5.20.14/patches/kdrivers/include
WANINCDIR=/usr/include/wanpipe PROTOCOL_DEFS="-DCONFIG_PRODUCT_WANPIPE_BASE
 -DCONFIG_PRODUCT_WANPIPE_TDM_VOICE
 -DCONFIG_PRODUCT_WANPIPE_TDM_VOICE_DCHAN
 -DCONFIG_PRODUCT_WANPIPE_TDM_VOICE_DCHAN_ZAPTEL -DDAHDI_ISSUES
-DCONFIG_PRODUCT_WANPIPE_AFT -DCONFIG_PRODUCT_WANPIPE_AFT_CORE
-DCONFIG_PRODUCT_WANPIPE_AFT_TE1 -DCONFIG_PRODUCT_WANPIPE_AFT_56K
-DCONFIG_PRODUCT_WANPIPE_AFT_RM -DCONFIG_PRODUCT_WANPIPE_CODEC_SLINEAR_LAW
 -DCONFIG_PRODUCT_WANPIPE_AFT_BRI  -DCONFIG_PRODUCT_WANPIPE_AFT_SERIAL
-DCONFIG_PRODUCT_WANPIPE_AFT_A600 -DCONFIG_PRODUCT_WANPIPE_AFT_B601
-DCONFIG_PRODUCT_WANPIPE_AFT_B800    -DCONFIG_PRODUCT_WANPIPE_AFT_A700
-DCONFIG_PRODUCT_WANPIPE_USB  -DCONFIG_WANPIPE_HWEC "

Failed!


                !!! WANPIPE Tools Compilation Failed !!!
        Possible solution:
                 Wanpipe header files were not installed properly
                 in /usr/include/wanpipe directory
        Please contact Sangoma Tech. at 905 474-1990


root at test:/usr/include/wanpipe# ls
aft_a104.h           octrpc                sdla_bscmp.h           sdlasfm.h
         wanpipe_abstr_types.h     wanpipe_dsp_kernel.h
 wanpipe_sppp_iface.h
aft_analog.h         octtype.h             sdla_bscstrm.h         sdla_ss7.h
        wanpipe_api_deprecated.h  wanpipe_ec_kernel.h
wanpipe_syncppp.h
aft_bri.h            octtypentdrv.h        sdla_bstrm.h
sdla_tdmv_dummy.h  wanpipe_api.h             wanpipe_edac_iface.h
 wanpipe_tdm_api_ec.h
aft_core_bert.h      octtypevx.h           sdla_cdev.h
 sdla_tdmv.h        wanpipe_api_hdr.h         wanpipe_events.h
 wanpipe_tdm_api.h
aft_core.h           octtypewin.h          sdla_chdlc.h
sdla_tdmv.mar8.h   wanpipe_api_iface.h       wanpipe_fr_iface.h
 wanpipe_tdm_api_iface.h
aft_core_hwiface.h   sdla_56k.h            sdladrv.h
 sdla_te1_ds.h      wanpipe_api_legacy.h      wanpipe.h
wanpipe_timer_iface.h
aft_core_options.h   sdla_a600_remora.h    sdladrv_usb.h          sdla_te1.h
        wanpipe_atm_iface.h       wanpipe_iface.h
wanpipe_tty_iface.h
aft_core_private.h   sdla_adccp.h          sdla_edu.h
sdla_te1_pmc.h     wanpipe_cdev_iface.h      wanpipe_includes.h
 wanpipe_usb.h
aft_core_prot.h      sdla_adsl.h           sdla_fr.h              sdla_te3.h
        wanpipe_cfg_adsl.h        wanpipe_katm_iface.h
 wanpipe_version.h
aft_core_user.h      sdla_adsl_iface.h     sdla_front_end.h
sdla_te3_reg.h     wanpipe_cfg_atm.h         wanpipe_kernel.h
 wanpipe_wanrouter.h
aft_core_utils.h     sdla_aft_te1.h        sdla_hdlc.h
 sdla_template.h    wanpipe_cfg_def.h         wanpipe_lapb_iface.h
 wanpipe_x25_kernel.h
apilib               sdla_aft_te1_iface.h  sdla_mp_fr.h
sdla_usb_remora.h  wanpipe_cfg_fr.h          wanpipe_lapb_kernel.h
wanpipe_xdlc_iface.h
if_wanpipe_common.h  sdla_aft_te1_ss7.h    sdlapci.h              sdla_x25.h
        wanpipe_cfg.h             wanpipe_lapd_iface.h
 wanpipe_xmtp2_iface.h
if_wanpipe.h         sdla_aft_te3.h        sdla_pos.h
sdla_xilinx.h      wanpipe_cfg_hdlc.h        wanpipe_lip_atm_iface.h
wanproc.h
if_wanpipe_kernel.h  sdla_asy.h            sdla_ppp.h             sfmdef.h
        wanpipe_cfg_lip.h         wanpipe_lip.h             wanrouter.h
linux                sdla_asyhdlc.h        sdla_remora_analog.h
ss7_linux.h        wanpipe_cfg_sppp.h        wanpipe_lip_hdlc_iface.h
 xhfc24succ.h
oct6100api           sdla_atm.h            sdla_remora.h
 wanec_iface_api.h  wanpipe_codec.h           wanpipe_lip_kernel.h
 zapcompat.h
oct6100_api          sdla_atm.orig.h       sdla_remora_proslic.h
 wanec_iface.h      wanpipe_codec_iface.h     wanpipe_logger.h
 zapcompat_user.h
octdef.h             sdla_b800_remora.h    sdla_remora_tdmv.h
wanec_tones.h      wanpipe_common.h          wanpipe_mtp1.h
octmac.h             sdla_bitstrm.h        sdla_sdlc.h
 wan_mem_debug.h    wanpipe_debug.h           wanpipe_pchdlc_iface.h
octosdependant.h     sdla_bri.h            sdla_serial.h
 wanpipe_abstr.h    wanpipe_defines.h         wanpipe_snmp.h


Thanks in advanced
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-r2/attachments/20110611/01d58f9c/attachment-0001.htm>


More information about the asterisk-r2 mailing list