Re: Error al ejecutar wanrouter
Acabo de reinstalar todo y seguri los pasos del manual este es el resultado
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
El manual dice que detenga asterisk, ejecute el comando :dahdi_genconf modules y que proceda a instalar wanpipe.
root@debian:/etc/init.d# dahdi_genconf modules
root@debian:/etc/init.d# ./dahdi restart
Unloading DAHDI hardware modules: done
Loading DAHDI hardware modules:
wanpipe: error
Running dahdi_cfg: done.
root@debian:/etc/init.d#
Procedo a instalar el wanpipe
root@debian:/usr/src/wanpipe-3.5.20# ./Setup install
WANPIPE v3.5.20 Installation Script
Copyright (c) 1995-2010, Sangoma Technologies Inc.
WANPIPE INSTALLATION
You are about to install WANPIPE Multi-Protocol
TDM Voice & WAN Router into your system.
This script will examine your system, then install, create
and/or modify necessary files and directories.
You must have Linux Kernel Headers along with
full development tools (i.e. GNU C compiler and utilities)
installed in order to be able to install this product.
This script will automatically compile all WANPIPE kernel
drivers and install them in their appropriate directory.
If you are installing Wanpipe for ASTERISK/ZAPTEL this
script will will prompt you for zaptel source location.
If you have previoulsy installed WANPIPE, this release
will overrite/upgrade full release without the need to
uninstall first!
IMPORTANT:
It is always recommended to say YES to all options
prompted during the install!
Please visit: http://wiki.sangoma.com for more info.
Would you like to install WANPIPE now? (y/n) y
WANPIPE v3.5.20 Installation Script
Copyright (c) 1995-2010, Sangoma Technologies Inc.
Fixing file permissions...
Verifying files and fixing permissions ...Done
Checking for C developement tools ...(gcc) OK
Checking for C++ developement tools ...OK
Checking for Make utility ...OK
Checking for ncurses library ... OK
Checking for Perl developement tools ...OK
Checking for AWK ...OK
Checking for FLEX ...OK
Checking for Patch ...OK
Checking for libtermcap-devel...OK
Checking for bison...OK
Checking for libtool...OK
Press to continue...
WANPIPE v3.5.20 Installation Script
Copyright (c) 1995-2010, Sangoma Technologies Inc.
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 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!
Press to continue...
WANPIPE v3.5.20 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 Installation Script
Copyright (c) 1995-2010, Sangoma Technologies Inc.
Please Select Compilation Mode
WAN Protocols Support
Protocols: Frame Relay, CHDLC, PPP, ATM, X25, ADSL, TDM API
Default for: Wan Routing, Data & Voice API devel.
TDM Voice (Dahdi/Zaptel) Support
Protocols: TDMV (Dahid/Zaptel), TDM API on AFT adatpers.
Default for: Asterisk & CallWeaver
TDM Voice (Dahid/Zaptel) + WAN Protocol Support
SMG (SS7) (Default for Asterisk SMG/SS7 install)
SMG (SS7) + TDM Voice (Dahdi/Zaptel)
Default for: Asterisk SS7 + PRI
SMG (BRI) (Default for Asterisk SMG/BRI install)
SMG (BRI) + TDM Voice (Dahdi/Zaptel)
Default for: Asterisk BRI + PRI + Analog
SMG (PRI) (Default for Asterisk SMG/PRI install)
SMG (PRI) + TDM Voice (Dahdi/Zaptel)
Default for: Asterisk SMG/PRI + Analog
TDM API
Protocols: TDM API on AFT adapters:
Default for: FreeSwitch, Yate, Sunrise
Custom voice development
Custom Compilation Mode
Specify protocols to be added into the WANPIPE
kernel drivers.
Please select (1-11) [Default: 1]: 1
Enabling the FR Protocol
Enabling the CHDLC Protocol
Enabling the PPP Protocol
Enabling the X25 API Protocol
Enabling the ADSL Protocol
Enabling the Multi Protocol Driver
Enabling the AFT TE1 Support
Enabling the AFT TE3 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 -DLINUX -Dlinux -DKERNEL -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!
FR compiled for GCC Ver=3 Arch=i686 File:wanpipe_fr.gcc3.i686.regparm.o
PPP/CHDLC compiled for GCC Ver=3 Arch=i686 File:wanpipe_sppp.gcc3.i686.regparm.o
ATM compiled for GCC Ver=3 Arch=i686 File:wanpipe_lip_atm.gcc3.i686.regparm.o
ADSL binary compiled for GCC Ver=3 Arch=i686 File:wanpipe_adsl.gcc3.i686.regparm.o
ATM binary compiled for GCC Ver=3 Arch=i686 File:wanpipe_atm.gcc3.i686.regparm.o
Linking Wanpipe Driver and protocols ...Done.
Updating Kernel Modules ...Done.
Visually Confirm that driver compilation was successful! (y/n) y
Compilation Successful.
WANPIPE v3.5.20 Installation Script
Copyright (c) 1995-2010, Sangoma Technologies Inc.
WANPIPE META CONFIGURATION
There are two configuration files associated with WANPIPE.
1) /usr/src/wanpipe-3.5.20/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.20/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 to continue...
Please specify a desired location for WANPIPE configuration files.
(Press Enter for Default: /etc/wanpipe)
<specify path:>
Please specify a desired location for WANPIPE interface files.
(Press Enter for Default: /etc/wanpipe/interfaces)
<specify path:>
Please specify a location for WANPIPE binary, firmware files.
(Press Enter for Default: /etc/wanpipe/firmware)
<specify path:>
WANPIPE v3.5.20 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.
Press to continue...
Compiling WANPIPE Utilities ...Done.
Compiling WANPIPE WanCfg Utility ...Done.
Compiling WANPIPE LibSangoma API library ...Failed.
Press to continue...
Compiling WANPIPE LibStelephony API library ...Failed. -- Note this library is not mandatory its safe to continue install
Press to continue...
Compiling WANPIPE API Development Utilities ...Failed!
ERROR: Failed to compile WANPIPE API Tools !!!
Please contact support at Sangoma Technologies
email: techdesk@sangoma.com
Please include the file setup_drv_compile.log
Press to continue...
Compiling WANPIPE HWEC Utilities ...Done.
WANPIPE Environment Setup Complete !!!
Press 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 to continue...
WANPIPE v3.5.20 Installation Script
Copyright (c) 1995-2010, Sangoma Technologies Inc.
WANPIPE BOOTSTRAP CONFIGURATION
Your system uses System V -style initialization scripts. You have an option
to add router start-up script to those scripts so that the router will start
automatically when system enters multi-user mode and shut down when it enters
single-user mode or when it is halted.
i.e. By selecting this option WANPIPE will startup on system bootup and
stop on system shutdown.
Would you like to install WANPIPE start-up scripts? (y/n) y
########################################################################
Sangoma Wanpipe
Dahdi/Zaptel/SMG/TDMAPI/BOOT Configuration Script
v2.39
Sangoma Technologies Inc.
Copyright(c) 2009.
########################################################################
Current boot level is 2
Wanrouter boot scripts configuration...
Removing existing wanrouter boot scripts...OK
Verifying boot scripts...
Enabling wanrouter init scripts ...(start:8, stop:91)
Command failed: update-rc.d wanrouter defaults 8 91
Failed to install boot scripts
WANPIPE v3.5.20 Installation Script
Copyright (c) 1995-2010, 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.
root@debian:/usr/src/wanpipe-3.5.20#
######################################################
###################################################### en esta parte segun he probado con todas las ipciones
######################################################
root@debian:/etc/wanpipe# wancfg_dahdi
error: permission denied on key 'net.ipv4.route.flush'
error: permission denied on key 'net.ipv6.route.flush'
########################################################################
Sangoma Wanpipe
Dahdi/Zaptel/SMG/TDMAPI/BOOT Configuration Script
v2.39
Sangoma Technologies Inc.
Copyright(c) 2009.
########################################################################
Would you like to generate /etc/asterisk/zapata.conf
- YES
- NO
Configuring T1/E1 cards [A101/A102/A104/A108]
A101 detected on slot:4 bus:3
Configuring port 1 on A101 slot:4 bus:3.
Select media type for AFT-A101 on port 1 [slot:4 bus:3 span:1]
- T1
- E1
- Unused
- Exit
Configuring port 1 on 101 as E1, line coding:HDB3, framing:CRC4
- YES - Keep these settings
- NO - Configure line coding and framing
Select line coding for port 1 on 101
- HDB3
- AMI
Select framing for port 1 on 101
- CRC4
- NCRC4
- UNFRAMED
Select clock for AFT-A101 on port 1 [slot:4 bus:3 span:1]
- NORMAL
- MASTER
Select signalling type for AFT-A101 on port 1 [slot:4 bus:3 span:1]
- Zaptel/Dahdi - PRI CPE
- Zaptel/Dahdi - PRI NET
- Zaptel/Dahdi - E & M
- Zaptel/Dahdi - E & M Wink
- Zaptel/Dahdi - FXS - Loop Start
- Zaptel/Dahdi - FXS - Ground Start
- Zaptel/Dahdi - FXS - Kewl Start
- Zaptel/Dahdi - FX0 - Loop Start
- Zaptel/Dahdi - FX0 - Ground Start
- Zaptel/Dahdi - FX0 - Kewl Start
- Sangoma SMG/sangoma_prid- PRI CPE
- Sangoma SMG/sangoma_prid- PRI NET
Select switchtype for AFT-A101 on port 1
- National ISDN 2
- Nortel DMS100
- AT&T 4ESS
- Lucent 5ESS
- EuroISDN
- Old National ISDN 1
- Q.SIG
Would you like to enable hardware DTMF detection?
- YES
- NO
Would you like to enable hardware fax detection?
- YES
- NO
Configuring port 1 on AFT-A101 as a full E1
- YES - Use all channels
- NO - Configure for fractional
Select dialplan context for AFT-A101 on port 1
- from-pstn
- from-internal
- Custom
Port 1 on AFT-A101 configuration complete...
Press any key to continue:
T1/E1 card configuration complete.
Press any key to continue:
Configuring analog cards [A200/A400/B600/B700/B800]
Configuring USB devices
###################################################################
SUMMARY
###################################################################
1 T1/E1 port(s) detected, 1 configured
0 ISDN BRI port(s) detected, 0 configured
0 analog card(s) detected, 0 configured
0 usb device(s) detected, 0 configured
Configurator will create the following files:
1. Wanpipe config files in /etc/wanpipe
2. Zaptel config file /etc/zaptel.conf
3. Zapata config file /etc/asterisk/zapata.conf
Your original configuration files will be saved to:
1. /etc/zaptel.conf.bak
2. /etc/asterisk/zapata.conf.bak
Your configuration has been saved in /etc/wanpipe/debug-2012-10-01.tgz.
When requesting support, email this file to techdesk@sangoma.com
###################################################################
Configuration Complete! Please select following:
- YES - Continue
- NO - Exit
Zaptel and Wanpipe configuration complete: choose action
- Save cfg: Restart Asterisk & Wanpipe now
- Save cfg: Restart Asterisk & Wanpipe when convenient
- Save cfg: Stop Asterisk & Wanpipe now
- Save cfg: Stop Asterisk & Wanpipe when convenient
- Save cfg: Save cfg only (Not Recommanded!!!)
- Do not save cfg: Exit
Asterisk is not running...
Stopping Wanpipe...
Shutting down wanpipe1 interface: w1g1
w1g1: ERROR while getting interface flags: No such device
Shutting down device: wanpipe1
No devices running, Unloading Modules
Removing old configuration files...
Copying new Wanpipe configuration files...
Copying new Zapata configuration files (/etc/asterisk/zapata.conf)...
Starting Wanpipe...
Starting WAN Router...
Loading WAN drivers: wanpipe done.
Starting up device: wanpipe1
wanconfig: Interface w1g1 setup failed
: ioctl(ROUTER_IFNEW,w1g1) failed:
: 22 - Invalid argument
Wanpipe drivers could not setup network interface
Please check /var/log/wanrouter and
/var/log/messages for errors
Configuring interfaces: w1g1 w1g1: ERROR while getting interface flags: No such device
done.
Loading Zaptel...
DAHDI Tools Version - 2.5.1
Notice: Configuration file is /etc/dahdi/system.conf
line 0: Unable to open master device '/dev/dahdi/ctl'
1 error(s) detected
Error executing command:
dahdi_cfg -v
Would you like to continue?
- No - exit
- YES
1-2, ENTER='No':n^[[32
Error: Invalid option, input a value between 1 and 2
Starting Asterisk...
Listing Asterisk channels...
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Error executing command:
asterisk -rx "zap show channels"
Would you like to continue?
- No - exit
- YES
1-2, ENTER='No':