CHANUNAVAIL despite wanrouter loading, cannot get FXS or FXO working.
Sangoma Technologies Corp. A200/Remora FXO/FXS Analog AFT card.
FreePBX 2.4.0.0 (Kernel 2.6.18-92.1.22.el5 (SMP) - CentOS release 5.2 (Final)).
// Re-compiled zaptel:
cd /usr/src/zaptel
make menuconfig (left xpp unchecked only) x to save
make clean
./configure
make
make install
make config
//Added the wanpipe dependancy;
cd /var
wget ftp://myftpserver//pbx_load//byacc-1.9-29.2.2.i386.rpm
rpm -i byacc-1.9-29.2.2.i386.rpm
//Then;
//Installed Sangoma Wanpipe-3.2.7.1.tgz wanpipe drivers (the recent ones don’t
//work) onto FreePBX 2.4.0.0 (Kernel 2.6.18-92.1.22.el5 (SMP) - CentOS release
//5.2 (Final))
wget ftp://myftpserver//pbx_load//wanpipe-3.2.7.1.tgz
tar xvf wanpipe-3.2.7.1.tgz
cd wanpipe-3.2.7.1
chmod 744 Setup
./Setup install --silent --protocol=TDM
setup-sangoma
(ALAW ztcfg etc.)
//The channels for both FXS and FXO are assigned and available.(zapata-auto.conf):
;Sangoma A200 [slot:4 bus:2 span:1]
context=from-internal
group=1
signalling = fxo_ks
channel => 1
context=from-internal
group=1
signalling = fxo_ks
channel => 2
context=from-zaptel
group=0
signalling = fxs_ks
channel => 3
context=from-zaptel
group=0
signalling = fxs_ks
channel => 4
// Results of a /usr/src/zaptel/ztscan tool:
active=yes
alarms=OK
description=wrtdm Board 1
name=WRTDM/0
manufacturer=
devicetype=
location=
basechan=1
totchans=24
irq=0
type=analog
port=1,FXS
port=2,FXS
port=3,FXO
port=4,FXO
port=5,none
port=6,none
// results of wanrouter hwprobe:
Wanpipe Hardware Probe Info |
---|
1 . AFT-A200-SH : SLOT=4 : BUS=2 : IRQ=11 : CPU=A : PORT=PRI : HWEC=32 : V=11
Card Cnt: S508=0 S514X=0 S518=0 A101-2=0 A104=0 A300=0 A200=1 A108=0 A056=0
// results cat /var/log/messages
Jun 25 14:42:47 pbx kernel: WANPIPE™ Socket API Module Stable 3.2.7.1.0 © 1994-2008 Sangoma Technologies Inc
Jun 25 14:42:47 pbx kernel: NET: Registered protocol family 25
Jun 25 14:42:47 pbx kernel: WANPIPE™ L.I.P Network Layer Stable 3.2.7.1.0 © 1995-2004 Sangoma Technologies Inc.
Jun 25 14:42:47 pbx kernel: WanpipeLIP: Protocols: No Protocol Compiled
Jun 25 14:42:47 pbx kernel:
Jun 25 14:42:47 pbx kernel: WANPIPE™ WANEC Layer Stable 3.2.7.1.0 © 1995-2006 Sangoma Technologies Inc.
Jun 25 14:42:47 pbx kernel: wanec_create_dev: Registering Wanpipe ECDEV Device!
Jun 25 14:42:47 pbx kernel: wanpipe1: Starting WAN Setup
Jun 25 14:42:47 pbx kernel:
Jun 25 14:42:47 pbx kernel: Processing WAN device wanpipe1…
Jun 25 14:42:47 pbx kernel: wanpipe1: Locating: A200/400 card, CPU A, PciSlot=4, PciBus=2
Jun 25 14:42:47 pbx kernel: wanpipe1: Front-End interface functions are not defined!
Jun 25 14:42:47 pbx kernel: wanpipe1: Found: A200/400 card, CPU A, PciSlot=4, PciBus=2, Port=0
Jun 25 14:42:47 pbx kernel: wanpipe1: AFT PCI memory at 0xFE8F0000
Jun 25 14:42:47 pbx kernel: wanpipe1: IRQ 169 allocated to the AFT PCI card
Jun 25 14:42:47 pbx kernel: wanpipe1: Starting AFT Analog Hardware Init.
Jun 25 14:42:47 pbx kernel: wanpipe1: Enabling front end link monitor
Jun 25 14:42:47 pbx kernel: wanpipe1: Global Chip Configuration: used=1
Jun 25 14:42:47 pbx kernel: wanpipe1: Global Front End Configuraton!
Jun 25 14:42:47 pbx kernel: wanpipe1: Configuring FXS/FXO Front End …
Jun 25 14:42:47 pbx kernel: wanpipe1: Module 0: Installed – Auto FXS!
Jun 25 14:42:47 pbx kernel: wanpipe1: Module 1: Installed – Auto FXS!
Jun 25 14:42:47 pbx kernel: wanpipe1: Module 2: Installed – Auto FXO (FCC mode)!
Jun 25 14:42:47 pbx kernel: wanpipe1: Module 3: Installed – Auto FXO (FCC mode)!
Jun 25 14:42:47 pbx kernel: wanpipe1: Running post initialization…
Jun 25 14:42:47 pbx kernel: wanpipe1: Remora config done!
Jun 25 14:42:47 pbx kernel: wanpipe1: AFT Data Mux Bit Map: 0x01234567
Jun 25 14:42:47 pbx kernel: wanpipe1: Front End Interface Ready 0x00000000
Jun 25 14:42:47 pbx kernel: wanpipe1: Register EC interface wanec1 (usage 1, max ec chans 32)!
Jun 25 14:42:47 pbx kernel: wanpipe1: Configuring Device :wanpipe1 FrmVr=11
Jun 25 14:42:47 pbx kernel: wanpipe1: Global MTU = 1500
Jun 25 14:42:47 pbx kernel: wanpipe1: Global MRU = 1500
Jun 25 14:42:47 pbx kernel: wanpipe1: Data Mux Map = 0x01234567
Jun 25 14:42:47 pbx kernel: wanpipe1: Rx CRC Bytes = 0
Jun 25 14:42:47 pbx kernel: wanpipe1: Global TDM Int = Disabled
Jun 25 14:42:47 pbx kernel: wanpipe1: Global TDM Ring= Disabled
Jun 25 14:42:47 pbx kernel: wanpipe1: Global TDM HW DTMF = Disabled
Jun 25 14:42:47 pbx kernel: wanpipe1: IRQ Throttle Period=1 Timeout=10
Jun 25 14:42:47 pbx kernel: wanpipe1: TDMV Span = 1 : Enabled
Jun 25 14:42:47 pbx kernel: wanpipe1: RTP TAP = Disabled
Jun 25 14:42:47 pbx kernel: wanpipe1: Configuring Interface: w1g1
Jun 25 14:42:47 pbx kernel: wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
Jun 25 14:42:47 pbx kernel: wanpipe1: Registering TDMV FXS iface to module 1!
Jun 25 14:42:47 pbx kernel: wanpipe1: MRU :8
Jun 25 14:42:48 pbx kernel: wanpipe1: MTU :8
Jun 25 14:42:48 pbx kernel: wanpipe1: HDLC Eng :Off (Transparent)
Jun 25 14:42:48 pbx kernel: wanpipe1: Data Mux Ctrl :On
Jun 25 14:42:48 pbx kernel: wanpipe1: Active Ch Map :0x00000001
Jun 25 14:42:48 pbx kernel: wanpipe1: First TSlot :0
Jun 25 14:42:48 pbx kernel: wanpipe1: DMA/Len/Chain/EC :4/1024/Off/On
Jun 25 14:42:48 pbx kernel:
Jun 25 14:42:48 pbx kernel: wanpipe1: Configuring Interface: w1g1
Jun 25 14:42:48 pbx kernel: wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
Jun 25 14:42:48 pbx kernel: wanpipe1: Registering TDMV FXS iface to module 2!
Jun 25 14:42:48 pbx pcscd: pcscdaemon.c:507:main() pcsc-lite 1.4.4 daemon ready.
Jun 25 14:42:48 pbx kernel: wanpipe1: MRU :8
Jun 25 14:42:48 pbx kernel: wanpipe1: MTU :8
Jun 25 14:42:48 pbx kernel: wanpipe1: HDLC Eng :Off (Transparent)
Jun 25 14:42:48 pbx kernel: wanpipe1: Data Mux Ctrl :On
Jun 25 14:42:48 pbx kernel: wanpipe1: Active Ch Map :0x00000002
Jun 25 14:42:48 pbx kernel: wanpipe1: First TSlot :1
Jun 25 14:42:48 pbx kernel: wanpipe1: DMA/Len/Chain/EC :4/1024/Off/On
Jun 25 14:42:48 pbx kernel:
Jun 25 14:42:48 pbx kernel: wanpipe1: Configuring Interface: w1g1
Jun 25 14:42:48 pbx kernel: wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
Jun 25 14:42:48 pbx kernel: wanpipe1: Registering TDMV FXO iface to module 3!
Jun 25 14:42:48 pbx kernel: wanpipe1: MRU :8
Jun 25 14:42:48 pbx kernel: wanpipe1: MTU :8
Jun 25 14:42:48 pbx kernel: wanpipe1: HDLC Eng :Off (Transparent)
Jun 25 14:42:48 pbx kernel: wanpipe1: Data Mux Ctrl :On
Jun 25 14:42:48 pbx kernel: wanpipe1: Active Ch Map :0x00000004
Jun 25 14:42:48 pbx kernel: wanpipe1: First TSlot :2
Jun 25 14:42:48 pbx kernel: wanpipe1: DMA/Len/Chain/EC :4/1024/Off/On
Jun 25 14:42:48 pbx kernel:
Jun 25 14:42:48 pbx kernel: wanpipe1: Configuring Interface: w1g1
Jun 25 14:42:48 pbx kernel: wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
Jun 25 14:42:48 pbx kernel: wanpipe1: Configuring TDMV Master dev w1g1
Jun 25 14:42:48 pbx kernel: wanpipe1: Registering TDMV FXO iface to module 4!
Jun 25 14:42:48 pbx kernel: wanpipe1: MRU :8
Jun 25 14:42:48 pbx kernel: wanpipe1: MTU :8
Jun 25 14:42:48 pbx kernel: wanpipe1: HDLC Eng :Off (Transparent)
Jun 25 14:42:48 pbx kernel: wanpipe1: Data Mux Ctrl :On
Jun 25 14:42:48 pbx kernel: wanpipe1: Active Ch Map :0x00000008
Jun 25 14:42:48 pbx kernel: wanpipe1: First TSlot :3
Jun 25 14:42:48 pbx kernel: wanpipe1: DMA/Len/Chain/EC :4/1024/Off/On
Jun 25 14:42:48 pbx kernel:
Jun 25 14:42:48 pbx kernel: wanpipe1: ALAW override parameter detected. Device will be operating in ALAW
Jun 25 14:42:48 pbx kernel: wanpipe1: Battery Threshhold 3 (3)
Jun 25 14:42:48 pbx kernel: wanpipe1: Battery Debounce 16 (16)
Jun 25 14:42:48 pbx kernel: wanpipe1: Wanpipe device is registered to Zaptel span # 1!
Jun 25 14:42:48 pbx kernel: wanpipe1: AFT communications enabled!
Jun 25 14:42:48 pbx kernel: wanpipe1: AFT Per Port TDM Intr (swring)
Jun 25 14:42:48 pbx kernel: wanpipe1: Clear Echo Canceller chip reset.
Jun 25 14:42:48 pbx kernel: wanec1: Opening HW Echo Canceller (NoiseRed=Off)
Jun 25 14:42:48 pbx kernel: Registered tone zone 0 (United States / North America)
…
// Setup trunk to ZAP/3 (g0 --group0) (thats where my telco line is plugged in).
// Setup outbound route pointing to ZAP/3 with dialplan 9|.
// Setup two IAX extensions xxa and xxb mapping to channel 1 and 2 (group=1)
// respectively.
// Setup two SIPgeneric extensions xxc and xxd on basic ALAW 711/723.
// “YES” the molex power connector is connected to the Sangoma Card.
// Plugged two standard analog phones into channel 1 & 2.
// I get battery static but no pbx tone on the analog phones.
// I can call between SIP extentions but cannot call between IAX extensions.
// I cannot dialout, I get;
“== Everyone is busy/congested at this time (1:0/0/1) – Executing [s@macro-dial:8] Set(“SIP/10 b7813228”, “DIALSTATUS=CHANUNAVAIL”) in new stack”
A pointer in the right direction would really be appreciated.
Thanks in advance