|
i have error in my elastix. i have Sangoma A101...i need help !!!
change winpipe and Chan_dahdi and system.conf, but i look ever Rai On/Off
Jun 22 11:25:38 localhost kernel: wanpipe1: AFT communications disabled! (Dev Cnt: 1 Cause: Link Down)
Jun 22 11:25:38 localhost kernel: wanpipe1: AFT communications enabled!
Jun 22 11:25:38 localhost kernel: wanpipe1: AFT Global TDM Intr
Jun 22 11:25:38 localhost kernel: wanpipe1: Global TDM Ring Resync TDM = 0x1
Jun 22 11:25:38 localhost kernel: wanpipe1: Warning: Front End Lost Synchronization
Jun 22 11:25:38 localhost kernel: wanpipe1: AFT Sync Restart
Jun 22 11:25:38 localhost kernel: wanpipe1: AFT communications disabled! (Dev Cnt: 1 Cause: Link Down)
Jun 22 11:25:38 localhost kernel: wanpipe1: AFT communications enabled!
Jun 22 11:25:38 localhost kernel: wanpipe1: AFT Global TDM Intr
Jun 22 11:25:38 localhost kernel: wanpipe1: Global TDM Ring Resync TDM = 0x1
Jun 22 11:25:39 localhost kernel: wanpipe1: Warning: Front End Lost Synchronization
Jun 22 11:25:39 localhost kernel: wanpipe1: AFT Sync Restart
Jun 22 11:25:39 localhost kernel: wanpipe1: AFT communications disabled! (Dev Cnt: 1 Cause: Link Down)
Jun 22 11:25:39 localhost kernel: wanpipe1: AFT communications enabled!
Jun 22 11:25:39 localhost kernel: wanpipe1: AFT Global TDM Intr
Jun 22 11:25:39 localhost kernel: wanpipe1: RAI alarm is OFF
Jun 22 11:25:39 localhost kernel: wanpipe1: Global TDM Ring Resync TDM = 0x1
Jun 22 11:25:39 localhost kernel: wanpipe1: Warning: Front End Lost Synchronization
Jun 22 11:25:39 localhost kernel: wanpipe1: AFT Sync Restart
Jun 22 11:25:39 localhost kernel: wanpipe1: AFT communications disabled! (Dev Cnt: 1 Cause: Link Down)
Jun 22 11:25:39 localhost kernel: wanpipe1: AFT communications enabled!
Jun 22 11:25:39 localhost kernel: wanpipe1: AFT Global TDM Intr
Jun 22 11:25:39 localhost kernel: wanpipe1: Global TDM Ring Resync TDM = 0x1
Jun 22 11:25:39 localhost kernel: wanpipe1: Warning: Front End Lost Synchronization
Jun 22 11:25:39 localhost kernel: wanpipe1: AFT Sync Restart
Jun 22 11:25:39 localhost kernel: wanpipe1: AFT communications disabled! (Dev Cnt: 1 Cause: Link Down)
Jun 22 11:25:39 localhost kernel: wanpipe1: AFT communications enabled!
Jun 22 11:25:39 localhost kernel: wanpipe1: AFT Global TDM Intr
Jun 22 11:25:39 localhost kernel: wanpipe1: RAI alarm is OFF
Jun 22 11:25:39 localhost kernel: wanpipe1: Global TDM Ring Resync TDM = 0x1
Jun 22 11:25:39 localhost kernel: wanpipe1: Warning: Front End Lost Synchronization
Jun 22 11:25:39 localhost kernel: wanpipe1: AFT Sync Restart
wanrouter version :WANPIPE Release: 3.5.25
wanrouter restart :wanrouter restart
Shutting down wanpipe1 interface: w1g1
Shutting down device: wanpipe1
wanconfig: WAN device wanpipe1 did not shutdown
: ioctl(wanpipe1,ROUTER_DOWN) failed:
: 16 - Device or resource busy
If you router was not running ignore this message
!! Otherwise, check the /var/log/wanrouter and
/var/log/messages for errors
Devices Still Running:
wanpipe1
Error: Device wanpipe1 is already running
Run 'wanrouter stop wanpipe1' first
Configuring interfaces: w1g1
done.
Waiting for Dahdi /dev/dahdi ...
DAHDI Tools Version - 2.4.1
DAHDI Version: 2.4.1.2
Echo Canceller(s): MG2
Configuration
======================
SPAN 1: CAS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
30 channels to configure.
Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
Setting echocan for channel 3 to mg2
Setting echocan for channel 4 to mg2
Setting echocan for channel 5 to mg2
Setting echocan for channel 6 to mg2
Setting echocan for channel 7 to mg2
Setting echocan for channel 8 to mg2
Setting echocan for channel 9 to mg2
Setting echocan for channel 10 to mg2
Setting echocan for channel 11 to mg2
Setting echocan for channel 12 to mg2
Setting echocan for channel 13 to mg2
Setting echocan for channel 14 to mg2
Setting echocan for channel 15 to mg2
Setting echocan for channel 17 to mg2
Setting echocan for channel 18 to mg2
Setting echocan for channel 19 to mg2
Setting echocan for channel 20 to mg2
Setting echocan for channel 21 to mg2
Setting echocan for channel 22 to mg2
Setting echocan for channel 23 to mg2
Setting echocan for channel 24 to mg2
Setting echocan for channel 25 to mg2
Setting echocan for channel 26 to mg2
Setting echocan for channel 27 to mg2
Setting echocan for channel 28 to mg2
Setting echocan for channel 29 to mg2
Setting echocan for channel 30 to mg2
Setting echocan for channel 31 to mg2
ifconfig: ifconfig
eth0 Link encap:Ethernet HWaddr 50:E5:49:2B:D9:E3
inet addr:192.168.20.18 Bcast:192.168.20.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13081 errors:0 dropped:0 overruns:0 frame:0
TX packets:19490 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2230096 (2.1 MiB) TX bytes:3983811 (3.7 MiB)
Interrupt:50 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:14782 errors:0 dropped:0 overruns:0 frame:0
TX packets:14782 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1796630 (1.7 MiB) TX bytes:1796630 (1.7 MiB)
w1g1 Link encap:Point-to-Point Protocol
UP POINTOPOINT NOARP MTU:8 Metric:1
RX packets:1876936 errors:0 dropped:0 overruns:5558 frame:5558
TX packets:1876936 errors:0 dropped:0 overruns:5558 carrier:0
collisions:0 txqueuelen:100
RX bytes:44768 (43.7 KiB) TX bytes:44768 (43.7 KiB)
Interrupt:177 Memory:ffffc20010750000-ffffc20010751fff
cat /proc/interrupts:
CPU0 CPU1
0: 15016428 0 IO-APIC-edge timer
1: 2 0 IO-APIC-edge i8042
7: 0 0 IO-APIC-edge parport0
8: 1 0 IO-APIC-edge rtc
9: 0 0 IO-APIC-level acpi
50: 32213 0 PCI-MSI eth0
66: 224 0 PCI-MSI hda_intel
177: 14483119 0 IO-APIC-level wanpipe1
217: 22 0 IO-APIC-level ehci_hcd:usb1
225: 26 0 IO-APIC-level ehci_hcd:usb2
233: 187526 0 IO-APIC-level ata_piix, ata_piix
NMI: 1611 377
LOC: 15015829 15034693
ERR: 0
MIS: 0
wanpipemon -i wXg1 -c Ta
***** w1g1: E1 Rx Alarms (Framer) *****
ALOS: OFF | LOS: OFF
RED: OFF | AIS: OFF
LOF: OFF | RAI: OFF
***** w1g1: E1 Rx Alarms (LIU) *****
Short Circuit: OFF
Open Circuit: OFF
Loss of Signal: OFF
***** w1g1: E1 Tx Alarms *****
AIS: OFF | YEL: OFF
***** w1g1: E1 Performance Monitoring Counters *****
Line Code Violation : 534922
Far End Block Errors : 0
CRC4 Errors : 0
FAS Errors : 45546
Rx Level : > -2.5db
wanrouter hwprobe verbose
-----------------------------------------
| Wanpipe Hardware Probe Info (verbose) |
-----------------------------------------
1 . AFT-A101-SH : SLOT=4 : BUS=3 : IRQ=12 : CPU=A : PORT=1 : HWEC=32 : V=37
+01:DS26521: PCIe: PLX2
Card Cnt: A101-2=1
wanrouter status
Devices currently active:
wanpipe1
Wanpipe Config:
Device name | Protocol Map | Adapter | IRQ | Slot/IO | If's | CLK | Baud rate |
wanpipe1 | N/A | A101/1D/A102/2D/4/4D/8| 177 | 4 | 1 | N/A | 0 |
Wanrouter Status:
Device name | Protocol | Station | Status |
wanpipe1 | AFT TE1 | N/A | Disconnected |
/etc/wanpipe/wanpipeX.conf:
#================================================
# WANPIPE1 Configuration File
#================================================
#
# Date: Wed Dec 6 20:29:03 UTC 2006
#
# Note: This file was generated automatically
# by /usr/local/sbin/setup-sangoma 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_TE1, Comment
[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment
[wanpipe1]
CARD_TYPE = AFT
S514CPU = A
CommPort = PRI
AUTO_PCISLOT = NO
PCISLOT = 4
PCIBUS = 3
FE_MEDIA = E1
FE_LCODE = HDB3
FE_FRAME = NCRC4
FE_LINE = 1
TE_CLOCK = NORMAL
TE_REF_CLOCK = 0
TE_SIG_MODE = CAS
TE_HIGHIMPEDANCE = NO
TE_RX_SLEVEL = 430
HW_RJ45_PORT_MAP = DEFAULT
LBO = 120OH
FE_TXTRISTATE = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN = 1
TDMV_DCHAN = 0
TE_AIS_MAINTENANCE = NO #NO: defualt YES: Start port in AIS Blue Alarm and keep line down
#wanpipemon -i w1g1 -c Ttx_ais_off to disable AIS maintenance mode
#wanpipemon -i w1g1 -c Ttx_ais_on to enable AIS maintenance mode
TDMV_HW_DTMF = YES # YES: receive dtmf events from hardware
TDMV_HW_FAX_DETECT = YES # YES: receive fax 1100hz events from hardware
HWEC_OPERATION_MODE = OCT_NORMAL # OCT_NORMAL: echo cancelation enabled with nlp (default)
# OCT_SPEECH: improves software
tone detection by disabling NLP (echo possible)
# OCT_NO_ECHO:disables echo can
celation but allows VQE/tone functions.
HWEC_DTMF_REMOVAL = NO # NO: default YES: remove dtmf out of incoming media (must have hwdtmf enabled
)
HWEC_NOISE_REDUCTION = NO# NO: default YES: reduces noise on the line - could break fax
HWEC_ACUSTIC_ECHO = NO # NO: default YES: enables acustic echo cancelation
HWEC_NLP_DISABLE = NO # NO: default YES: guarantees software tone detection (possible echo)
HWEC_TX_AUTO_GAIN = 0 # 0: disable -40-0: default tx audio level to be maintained (-20 default)
HWEC_RX_AUTO_GAIN = 0 # 0: disable -40-0: default tx audio level to be maintained (-20 default)
HWEC_TX_GAIN = 0 # 0: disable -24-24: db values to be applied to tx signal
HWEC_RX_GAIN = 0 # 0: disable -24-24: db values to be applied to tx signal
[w1g1]
ACTIVE_CH = ALL
TDMV_HWEC = YES
MTU = 8
/etc/dahdi/system.conf
#autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
#autogenrated on 2012-06-19
#Dahdi Channels Configurations
#For detailed Dahdi options, view /etc/dahdi/system.conf.bak
loadzone=ar
defaultzone=ar
#Sangoma A101 port 1 [slot:4 bus:3 span:1] <wanpipe1>
span=1,1,0,cas,hdb3
cas=1-15,17-31:1101
echocanceller=mg2,1-15,17-31
/etc/asterisk/chan_dahdi.conf: etc/asterisk/chan_dahdi.conf
#autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
#autogenrated on 2012-06-19
#Dahdi Channels Configurations
#For detailed Dahdi options, view /etc/dahdi/system.conf.bak
loadzone=ar
defaultzone=ar
#Sangoma A101 port 1 [slot:4 bus:3 span:1] <wanpipe1>
span=1,1,0,cas,hdb3
cas=1-15,17-31:1101
echocanceller=mg2,1-15,17-31
[root@localhost ~]# more /etc/asterisk/chan_dahdi.conf
; Autogenerated by /usr/sbin/setup-sangoma 2012-06-19
; If you edit this file and execute /usr/sbin/setup-sangoma again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;
[trunkgroups]
;
[channels]
usecalleid=yes
language=es
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=no
echocancelwhenbridged=no
signalling=mfcr2
mfcr2_variant=ar
mfcr2_get_ani_first=no
mfcr2_max_ani=10
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
mfcr2_mfback_timeout=-1
mfcr2_metering_pulse_timeout=-1
; this is for debugging purposes
mfcr2_logdir=span1
mfcr2_logging=all
mfcr2_call_files=yes
; end debugging configuration
context=from-pstn
group=0
callgroup=0
restrictcid=yes
hidecallerid=yes
channel => 1-15
channel => 17-31
;Sangoma A101 port 1 [slot:4 bus:3 span:1] <wanpipe1>
;switchtype=euroisdn
;context=from-zaptel
;group=0
;echocancel=yes
;faxdetect=incoming
;signalling=pri_cpe
;channel =>1-15,17-31
|