Issues - Configuration problems/questions

davidy
Posts: 81
Member Since:
2006-10-17

Please post your issues and configuration problems and to this thread.

--

David @Sangoma

http://wiki.sangoma.com/
(905) 474 1990
(800) 388 2475



davidy
Posts: 81
Member Since:
2006-10-17
SMP and non-SMP kernels

If you see this error:

Quote:
wanrouter: Wanpipe Module: /lib/modules/2.6.9-34.0.2.ELsmp/kernel/drivers/net/wan/sdladrv not found !!!!
WANPIPE drivers must be compiled as modules
Check kernel configuration in /usr/src/linux/.config:
CONFIG_WAN_ROUTER=m
CONFIG_VENDOR_SANGOMA=m

Then you do not have the wanpipe-modules for SMP kernels installed.
Download and install the SMP rpms at:
ftp://ftp.sangoma.com/linux/RPMS/Trixbox/current_drivers/Trixbox-2.0/wanpipe-modules-2.6.9-34.0.2.ELsmp-.i686.rpm

--

David @Sangoma

http://wiki.sangoma.com/
(905) 474 1990
(800) 388 2475



davidy
Posts: 81
Member Since:
2006-10-17
Re: Issues - Configuration problems
Quote:
A102 Setup howto?
I'm setting up a Sangoma A102 card (dual port T1/E1 terminal adapter w/echo cancellation) and am running into some problems. I installed these packages:

wanpipe-modules-2.6.9-34.0.2.EL-2.3.4-4.i686.rpm
wanpipe-util-2.3.4-4.i686.rpm

And tried running the script (I figured Trixbox 2.0 would include the module support)

Quote:
[root@asterisk1 linux]# setup-sangoma

###################################################################
# #
# Sangoma Configuration Script #
# #
# v2.1 #
# #
# Sangoma Technologies Inc. #
# Copyright(c) 2006. #
# #
###################################################################

Warning: This script provides basic configuration options,
Use the Wancfg Utility for more advanced options

No Sangoma analog cards found

Warning: No Sangoma cards found
[root@asterisk1 linux]#

OK, I RTFM'd for the Trixbox 1.x procedure and downloaded the wanpipe source, untarred it, then found the kernel source is not installed (it should be installed by [i
]default[/i] for a project such as this, but anyhow. . . ) so I used yum to install it.

OK, kernel source is installed, so I run Setup install again, and now I run into this:

Please specify absolute path name of your linux directory

(Press Enter for Default: /lib/modules/2.6.9-34.0.2.ELsmp/build)

OK, so I accept that, and now I run into:

make[1]: *** No rule to make target `init/main.o'

Now, I'm hitting an error compiling the kernel. Yes, I ran make menuconfig to configure the kernel, just like I have with every single kernel recompile since the days of that old seven-floppy Linux distro.

Is there a complete howto, from beginning to end, outlining the setup/configuration procedure? I held out for Trixbox 2.0 (which is gorgeous by the way; the interface is great and a lot more organized than previous versions), and I need to try to meet a Friday deadline, but in the meantime I am hitting snags on the most mundane features, because there is not a single howto covering the process, and the kernel source as installed by yum from the default repository won't even compile.

This is going to be terminating a voice-only T1.

Is there an existing wiki/howto/etc. I should look at? I am happy to RTFM, but there does not seem to be a FM for me To R. (I mean no offense by that, I'm trying to make light of the situation)

Any guidance is most appreciated. :)

Quote:
wanrouter: Wanpipe Module: /lib/modules/2.6.9-34.0.2.ELsmp/kernel/drivers/net/wan/sdladrv not found !!!!
WANPIPE drivers must be compiled as modules
Check kernel configuration in /usr/src/linux/.config:
CONFIG_WAN_ROUTER=m
CONFIG_VENDOR_SANGOMA=m

Katse,
You have an SMP Kernel, can you install this RPM
wanpipe-modules-2.6.9-34.0.2.ELmp-2.3.4-4.i686.rpm

from ftp://ftp.sangoma.com/linux/RPMS/Trixbox/current_drivers/Trixbox-...

and see if you still get the same error on:
wanrouter hwprobe

--

David @Sangoma

http://wiki.sangoma.com/
(905) 474 1990
(800) 388 2475



davidy
Posts: 81
Member Since:
2006-10-17
A200 on TrixBox 2.0
Quote:
Is there step by step instruction on how to install A200 (4 FXO + echo canceling card) on TrixBox 2.0 (fresh .iso install).
Not sure if same steps are used as for 1.2.3.
Sorry I’m new to Linux but I’m working hard to catch up.

Best regards,

Re: A200 on TrixBox 2.0
http://wiki.sangoma.com/Trixbox-1xx

Quote:
Re: A200 on TrixBox 2.0
This is what I did:

uname –r

2.6.9-34.0.2.ELsmp

I used TrixBox Packages manager and selected:
- wanpipe-modules-2.6.9-34.0.2.ELsmp.i686 (v2.3.4)
- wanpipe-util.i686 (v2.3.4)

After selecting packages I clicked on install. On report page confirmed that packages are downloaded and installed.

After this I run setup-sangoma

I assumed that packages are installed and I did not rum rpm –i wanpipe-modules and util .rpm
Is this all I have to do or is there something extra?

Hi Maricnet,
I believe this should work, if you can run setup-sangoma, then it means the utilities are wanpipe-utils are installed.

If setup-sangoma detects any Sangoma card on your system, then the wanpipe-modules are most probably installed properly as well.

If you are using an A200 or A400, then the setup-sangoma script will configure all your Zap channels, if you are using a T1/E1 card, the setup-sangoma script will ask you some questions about your line signalling etc..

--

David @Sangoma

http://wiki.sangoma.com/
(905) 474 1990
(800) 388 2475



maricnet
Posts: 17
Member Since:
2006-12-14
Re: A200 on TrixBox 2.0

Back to install today and yet not running.
In zapata.conf no channels assigned, ztcfg –vvvv cams back as
Channel map:

0 channels configured

Obviously I’m missing something. :-(

Wancfg looks fine.



davidy
Posts: 81
Member Since:
2006-10-17
Re: A200 on TrixBox 2.0

Hi Maricnet,
You should use setup-sangoma to configure all your configuration files.

--

David @Sangoma

http://wiki.sangoma.com/
(905) 474 1990
(800) 388 2475



maricnet
Posts: 17
Member Since:
2006-12-14
Re: A200 on TrixBox 2.0

I did. Look @ post #2 in this tred.



davidy
Posts: 81
Member Since:
2006-10-17
Re: A200 on TrixBox 2.0

Can you post your /etc/zaptel.conf, /etc/wanpipe/wanpipe1.conf, /etc/asteriski/zapata-auto.conf to this thread.

--

David @Sangoma

http://wiki.sangoma.com/
(905) 474 1990
(800) 388 2475



maricnet
Posts: 17
Member Since:
2006-12-14
Re: A200 on TrixBox 2.0

Per request

[root@asterisk1 ~]# cat /etc/zaptel.conf
# Autogenerated by /usr/local/sbin/genzaptelconf -- do not hand edit
# Zaptel Configuration File
#
# This file is parsed by the Zaptel Configurator, ztcfg
#

# It must be in the module loading order

# Global data

loadzone = us
defaultzone = us

[root@asterisk1 ~]# cat /etc/wanpipe/wanpipe1.conf
#================================================
# WANPIPE1 Configuration File
#================================================
#
# Date: Tue Feb 13 11:57:41 CST 2007
#
# Note: This file was generated automatically
# by /usr/sbin/wancfg program.
#
# If you want to edit this file, it is
# recommended that you use wancfg program
# to do so.
#================================================
# Sangoma Technologies Inc.
#================================================

[devices]
wanpipe1 = WAN_AFT_ANALOG, Comment

[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment

[wanpipe1]
CARD_TYPE = AFT
S514CPU = A
CommPort = PRI
AUTO_PCISLOT = NO
PCISLOT = 3
PCIBUS = 2
FE_MEDIA = FXO/FXS
TDMV_LAW = MULAW
TDMV_OPERMODE = CANADA
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN = 1

[w1g1]
ACTIVE_CH = ALL
TDMV_ECHO_OFF = NO
TDMV_HWEC = YES

[root@asterisk1 ~]# cat /etc/asterisk/zapata-auto.conf
; Autogenerated by /usr/local/sbin/genzaptelconf -- do not hand edit
; Zaptel Channels Configurations (zapata.conf)
;
; This is not intended to be a complete zapata.conf. Rather, it is intended
; to be #include-d by /etc/zapata.conf that will include the global settings
;
callerid=asreceived



maricnet
Posts: 17
Member Since:
2006-12-14
Re: A200 on TrixBox 2.0

Not sure if this can help?

[root@asterisk1 ~]# lspci
00:00.0 Host bridge: Broadcom CMIC-WS Host Bridge (GC-LE chipset) (rev 13)
00:00.1 Host bridge: Broadcom CMIC-WS Host Bridge (GC-LE chipset)
00:00.2 Host bridge: Broadcom CMIC-LE
00:06.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
00:0f.0 Host bridge: Broadcom CSB5 South Bridge (rev 93)
00:0f.1 IDE interface: Broadcom CSB5 IDE Controller (rev 93)
00:0f.2 USB Controller: Broadcom OSB4/CSB5 OHCI USB Controller (rev 05)
00:0f.3 ISA bridge: Broadcom CSB5 LPC bridge
00:10.0 Host bridge: Broadcom CIOB-X2 PCI-X I/O Bridge (rev 03)
00:10.2 Host bridge: Broadcom CIOB-X2 PCI-X I/O Bridge (rev 03)
00:11.0 Host bridge: Broadcom CIOB-X2 PCI-X I/O Bridge (rev 03)
00:11.2 Host bridge: Broadcom CIOB-X2 PCI-X I/O Bridge (rev 03)
02:03.0 Network controller: Sangoma Technologies Corp. A200/Remora FXO/FXS Analog AFT card
06:08.0 Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 01)
06:08.1 Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 01)
08:02.0 RAID bus controller: IBM ServeRAID Controller

[root@asterisk1 ~]# lsmod
Module Size Used by
wanec 289820 0
wanpipe_lip 56284 0
af_wanpipe 32960 0
wanpipe 347968 0
wanrouter 34536 4 wanec,wanpipe_lip,af_wanpipe,wanpipe
sdladrv 53120 2 wanpipe,wanrouter
md5 8001 1
ipv6 240225 16
autofs4 22597 0
i2c_dev 14273 0
i2c_core 25921 1 i2c_dev
sunrpc 142757 1
ztdummy 7620 0
wctdm 35392 0
wcfxo 15264 0
wcte11xp 26016 0
wct1xxp 17696 0
wct4xxp 218304 0
tor2 91680 0
zaptel 183940 10 wanpipe,ztdummy,wctdm,wcfxo,wcte11xp,wct1xxp,wct4xxp,tor2
crc_ccitt 6081 1 zaptel
dm_mirror 28449 0
dm_mod 59973 1 dm_mirror
ohci_hcd 23889 0
e1000 99757 0
floppy 58065 0
sg 38113 0
ext3 118729 2
jbd 59481 1 ext3
ips 49637 3
sd_mod 20545 4
scsi_mod 116941 3 sg,ips,sd_mod

[root@asterisk1 ~]# cat /proc/zaptel/*
Span 1: WRTDM/0 "wrtdm Board 1"

1 WRTDM/0/0
2 WRTDM/0/1
3 WRTDM/0/2
4 WRTDM/0/3
5 WRTDM/0/4
6 WRTDM/0/5
7 WRTDM/0/6
8 WRTDM/0/7
9 WRTDM/0/8
10 WRTDM/0/9
11 WRTDM/0/10
12 WRTDM/0/11
13 WRTDM/0/12
14 WRTDM/0/13
15 WRTDM/0/14
16 WRTDM/0/15
17 WRTDM/0/16
18 WRTDM/0/17
19 WRTDM/0/18
20 WRTDM/0/19
21 WRTDM/0/20
22 WRTDM/0/21
23 WRTDM/0/22
24 WRTDM/0/23
Span 2: ZTDUMMY/1 "ZTDUMMY/1 1"

[root@asterisk1 ~]# cat /etc/sysconfig/zaptel
TELEPHONY=yes
#DEBUG=yes

# Un-comment as per your requirements; modules to load/unload
# genzaptelconf will populate this file

#Module Name Hardware
MODULES="$MODULES tor2" # T400P - Quad Span T1 Card
# E400P - Quad Span E1 Card

MODULES="$MODULES wct4xxp" # TE405P - Quad Span T1/E1 Card (5v version)
# TE410P - Quad Span T1/E1 Card (3.3v version)

MODULES="$MODULES wct1xxp" # T100P - Single Span T1 Card
# E100P - Single Span E1 Card

MODULES="$MODULES wcte11xp" # TE110P - Single Span T1/E1 Card

MODULES="$MODULES wcfxo" # X100P - Single port FXO interface
# X101P - Single port FXO interface

MODULES="$MODULES wctdm" # TDM400P - Modular FXS/FXO interface (1-4 ports)
#MODULES="$MODULES wcfxs" # either above or this

#MODULES="$MODULES wcusb" # S100U - Single port FXS USB Interface
#MODULES="$MODULES wcfxsusb" # either above or this

#MODULES="$MODULES torisa" # Old Tormenta1 ISA Card

MODULES="$MODULES ztdummy" # UHCI USB Zaptel Timing Only Interface



davidy
Posts: 81
Member Since:
2006-10-17
Re: A200 on TrixBox 2.0

This wanpipe1.conf file was generated using the wancfg utility, and not setup-sangoma.

Can you send me the output when you run setup-sangoma

--

David @Sangoma

http://wiki.sangoma.com/
(905) 474 1990
(800) 388 2475



maricnet
Posts: 17
Member Since:
2006-12-14
Re: A200 on TrixBox 2.0

[root@asterisk1 ~]# setup-sangoma

###################################################################
# #
# Sangoma Configuration Script #
# #
# v1.0 #
# #
# Sangoma Technologies Inc. #
# Copyright(c) 2006. #
# #
###################################################################

created /etc/wanpipe/samples/trixbox/cfg/wanpipe1.conf for A200 1 SLOT 3 BUS 2 HWEC YES

Warning: This script only supports Sangoma analog cards,
Use the Wancfg Utility to configure T1/E1 cards

wanconfig: WAN device wanpipe1 driver load failed !!
: ioctl(wanpipe1,ROUTER_SETUP) failed:
: 16 - Device or resource busy

Wanpipe driver did not load properly
Please check /var/log/wanrouter and
/var/log/messages for errors

Starting WAN Router...
Starting up device: wanpipe1
Configuring interfaces: w1g1
done.

:-( load failed



maricnet
Posts: 17
Member Since:
2006-12-14
Re: A200 on TrixBox 2.0

/var/log/wanrouter
Tue Feb 13 13:12:21 CST 2007: starting WAN router
Starting up device: wanpipe1
WAN Router Configurator(c) 1995-2003 Sangoma Technologies Inc.
* Parsing configuration file /etc/wanpipe/wanpipe1.conf ...
* Reading section [devices]...
* Reading section [wanpipe1]...
* Reading section [interfaces]...
* w1g1 to used by TDM_VOICE
* Reading section [w1g1]...
* Configuring device wanpipe1 (no description)
* Setting CARD_TYPE to AFT
* Setting S514CPU to A
* Setting COMMPORT to PRI
* Setting AUTO_PCISLOT to NO
* Setting PCISLOT to 3
* Setting PCIBUS to 2
* Setting FE_MEDIA to FXO/FXS
* Setting TDMV_LAW to MULAW
* Setting TDMV_OPERMODE to FCC
* Setting MTU to 1500
* Setting UDPPORT to 9000
* Setting TTL to 255
* Setting IGNORE_FRONT_END to NO
* Setting TDMV_SPAN to 1

/var/log/nessages
Feb 13 13:08:22 asterisk1 kernel: wanpipe1: Starting WAN Setup
Feb 13 13:08:22 asterisk1 kernel: wanpipe1: Device already configured
Feb 13 13:12:21 asterisk1 kernel: wanpipe1: Starting WAN Setup
Feb 13 13:12:21 asterisk1 kernel: wanpipe1: Device already configured



davidy
Posts: 81
Member Since:
2006-10-17
Re: A200 on TrixBox 2.0

can you do:
amportal stop

then:
setup-sangoma

--

David @Sangoma

http://wiki.sangoma.com/
(905) 474 1990
(800) 388 2475



maricnet
Posts: 17
Member Since:
2006-12-14
Re: A200 on TrixBox 2.0

Didnt't work

[root@asterisk1 ~]# amportal stop

STOPPING ASTERISK
Asterisk Stopped

STOPPING FOP SERVER
safe_opserver: no process killed
FOP Server Stopped
[root@asterisk1 ~]# setup-sangoma

###################################################################
# #
# Sangoma Configuration Script #
# #
# v1.0 #
# #
# Sangoma Technologies Inc. #
# Copyright(c) 2006. #
# #
###################################################################

created /etc/wanpipe/samples/trixbox/cfg/wanpipe1.conf for A200 1 SLOT 3 BUS 2 HWEC YES

Warning: This script only supports Sangoma analog cards,
Use the Wancfg Utility to configure T1/E1 cards

wanconfig: WAN device wanpipe1 driver load failed !!
: ioctl(wanpipe1,ROUTER_SETUP) failed:
: 16 - Device or resource busy

Wanpipe driver did not load properly
Please check /var/log/wanrouter and
/var/log/messages for errors

Starting WAN Router...
Starting up device: wanpipe1
Configuring interfaces: w1g1
done.



maricnet
Posts: 17
Member Since:
2006-12-14
Re: A200 on TrixBox 2.0

Tue Feb 13 13:28:33 CST 2007: starting WAN router
Starting up device: wanpipe1
WAN Router Configurator(c) 1995-2003 Sangoma Technologies Inc.
* Parsing configuration file /etc/wanpipe/wanpipe1.conf ...
* Reading section [devices]...
* Reading section [wanpipe1]...
* Reading section [interfaces]...
* w1g1 to used by TDM_VOICE
* Reading section [w1g1]...
* Configuring device wanpipe1 (no description)
* Setting CARD_TYPE to AFT
* Setting S514CPU to A
* Setting COMMPORT to PRI
* Setting AUTO_PCISLOT to NO
* Setting PCISLOT to 3
* Setting PCIBUS to 2
* Setting FE_MEDIA to FXO/FXS
* Setting TDMV_LAW to MULAW
* Setting TDMV_OPERMODE to FCC
* Setting MTU to 1500
* Setting UDPPORT to 9000
* Setting TTL to 255
* Setting IGNORE_FRONT_END to NO
* Setting TDMV_SPAN to 1

Feb 13 13:28:33 asterisk1 kernel: wanpipe1: Starting WAN Setup
Feb 13 13:28:33 asterisk1 kernel: wanpipe1: Device already configured



maricnet
Posts: 17
Member Since:
2006-12-14
Re: A200 on TrixBox 2.0

Any suggestions?



davidy
Posts: 81
Member Since:
2006-10-17
Re: A200 on TrixBox 2.0

One of the Wanpipe modules is still in use by a process (usually Asterisk), and therefore you cannot stop wanrouter.

Can you send me an email with SSH access to that machine.
davidy@sangoma.com

--

David @Sangoma

http://wiki.sangoma.com/
(905) 474 1990
(800) 388 2475



prashant bankar
Posts: 1
Member Since:
2007-12-20
wanpipe configuration

i have successfully install wanpipe-modules-2.6.9-34.0.2.ELsmp-3.2.1-0 & wanpipe-util-3.2.1-0 packages. It will prompt me to run wancfg command to create wanpipe configuration file, when i create this file & restart the wanrouter it gives me kernel panic error.
plz suggest me solution to run wanrouter successfully.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.