2015-12-26

sangoma A101 problem with elatsix 2.5 stable :

i have sangoma a 101 with elastix 2.5 stable version .
the problem i have so far is , i cant get the card working .
i have either card wanrouter up and working but there is blank of :
dahdi show channels
pri show spans

or

i have down wanrouter interface and i have channles detected and pri status as down , inactive .

===========================

now i will start with you when i have the card green , but there is blank result in
dahdi show channels
pri show spans
=========

so i run :
/usr/local/sbin/setup-sangoma
========================
Select line coding for port 1 on 101
1. HDB3
2. AMI
[1-2, ENTER='HDB3']:1

Select framing for port 1 on 101
1. CRC4
2. NCRC4
3. UNFRAMED
[1-3, ENTER='CRC4']:2

Select clock for AFT-101 on port 1 [slot:4 bus:14 span:1]
1. NORMAL
2. MASTER
[1-2]:1

Select signalling type for AFT-101 on port 1 [slot:4 bus:14 span:1]
1. Zaptel/Dahdi - PRI CPE
2. Zaptel/Dahdi - PRI NET
3. Zaptel/Dahdi - E & M
4. Zaptel/Dahdi - E & M Wink
5. Zaptel/Dahdi - FXS - Loop Start
6. Zaptel/Dahdi - FXS - Ground Start
7. Zaptel/Dahdi - FXS - Kewl Start
8. Zaptel/Dahdi - FX0 - Loop Start
9. Zaptel/Dahdi - FX0 - Ground Start
10. Zaptel/Dahdi - FX0 - Kewl Start
[1-10]:1

Select switchtype for AFT-101 on port 1
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7]:5

Configuring port 1 on AFT-101 as a full E1
1. YES - Use all channels
2. NO - Configure for fractional
[1-2, ENTER='YES']:1

Select dialplan context for AFT-101 on port 1
1. PSTN
2. INTERNAL
[1-2]:1

Port 1 on AFT-A101 configuration complete...
Press any key to continue:

T1/E1 card configuration complete.
Press any key to continue:
-------------------------------------------
Configuring ISDN BRI cards [A500/B500/B700]
-------------------------------------------

No Sangoma ISDN BRI cards detected

Press any key to continue:
------------------------------------
Configuring GSM cards [W400]
------------------------------------

No Sangoma GSM cards detected

Press any key to continue:
------------------------------------
Configuring analog cards [A200/A400/B600/B610/B700/B800]
------------------------------------
------------------------------------
Configuring USB devices [U100]
------------------------------------

###################################################################
# 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 GSM 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. Dahdi config file /etc/dahdi/system.conf
3. chan_dahdi config file /etc/asterisk/chan_dahdi.conf

Your original configuration files will be saved to:
1. /etc/dahdi/system.conf.bak
2. /etc/asterisk/chan_dahdi.conf.bak

Your configuration has been saved in /etc/wanpipe/debug-2015-12-26.tgz.
When requesting support, email this file to
techdesk@sangoma.com

###################################################################

Configuration Complete! Please select following:
1. YES - Continue
2. NO - Exit
[1-2]:1

Dahdi and Wanpipe configuration complete: choose action
1. Save cfg: Restart Asterisk & Wanpipe now
2. Save cfg: Restart Asterisk & Wanpipe when convenient
3. Save cfg: Stop Asterisk & Wanpipe now
4. Save cfg: Stop Asterisk & Wanpipe when convenient
5. Save cfg: Save cfg only (Not Recommended!!!)
6. Do not save cfg: Exit
[1-6]:1

Please wait...

STOPPING ASTERISK
Waiting for Asterisk to Stop Gracefully...

Asterisk Stopped

Error executing command:
amportal stop

Would you like to continue?
1. No - exit
2. YES
[1-2, ENTER='No']:2

Stopping Wanpipe...

Shutting down wanpipe1 interface: w1g1
Shutting down device: wanpipe1
No devices running, Unloading Modules

Unloading Dahdi modules...

Removing old configuration files...

Copying new Wanpipe configuration files...

Copying new Dahdi configuration file (/etc/dahdi/system.conf)...

Copying new chan_dahdi configuration files (/etc/asterisk/chan_dahdi.conf)...

Starting Wanpipe...

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

Loading Dahdi...
DAHDI Tools Version - 2.10.0.1

DAHDI Version: 2.10.0.1
Echo Canceller(s):
Configuration
======================

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

31 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 16 to none
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

Starting Amportal...

Please wait...

SETTING FILE PERMISSIONS
Permissions OK
Removing any dangling symlinks
Dangling symlinks removed

STARTING ASTERISK
Asterisk Started
Error executing command:
amportal start

Would you like to continue?
1. No - exit
2. YES
[1-2, ENTER='No']:1

during that , the result of /var/log/messages is below :
234 247 941

[root@QIVR ~]# tailf /var/log/messages

Dec 26 06:13:01 QIVR kernel: wanpipe1: AIS on LOS: Off (default)
Dec 26 06:13:01 QIVR kernel: wanpipe1: Sig Mode CCS
Dec 26 06:13:02 QIVR kernel: wanpipe1: Rx Sensitivity Gain 43dB (default).
Dec 26 06:13:02 QIVR kernel: wanpipe1: Configurig DS8/4/2/1 for E1 LRISMR=0x33
Dec 26 06:13:02 QIVR kernel: wanpipe1: Configurig DS8/4/2/1 for E1 LRISMR=0x33
Dec 26 06:13:02 QIVR kernel: wanpipe1: Front end successful
Dec 26 06:13:02 QIVR kernel: wanpipe1: Front End Interface Ready 0x40000000
Dec 26 06:13:02 QIVR kernel: wanpipe1: WARNING: No Echo Canceller channels are available!
Dec 26 06:13:02 QIVR kernel: wanpipe1: Configuring Device :wanpipe1 FrmVr=39
Dec 26 06:13:02 QIVR kernel: wanpipe1: Global MTU = 1500
Dec 26 06:13:02 QIVR kernel: wanpipe1: Global MRU = 1500
Dec 26 06:13:02 QIVR kernel: wanpipe1: Data Mux Map = 0x01234567
Dec 26 06:13:02 QIVR kernel: wanpipe1: Data Mux Map = 0x01234567
Dec 26 06:13:02 QIVR kernel: wanpipe1: Rx CRC Bytes = 0
Dec 26 06:13:02 QIVR kernel: wanpipe1: RBS Signalling = Off
Dec 26 06:13:02 QIVR kernel: wanpipe1: Memory: Card=69304 Wandev=2088 Card Union=13464
Dec 26 06:13:02 QIVR kernel: wanpipe1: Global TDM Int = Enabled
Dec 26 06:13:02 QIVR kernel: wanpipe1: Global TDM Ring= HW Ring
Dec 26 06:13:02 QIVR kernel: wanpipe1: Global SPAN IRQ= RX/TX
Dec 26 06:13:02 QIVR kernel: wanpipe1: Global SPAN IRQ= RX/TX
Dec 26 06:13:02 QIVR kernel: wanpipe1: TDM HW TONE = Disabled
Dec 26 06:13:02 QIVR kernel: wanpipe1: Fifo Trigger = rx:50 tx:50 (events per sec)
Dec 26 06:13:02 QIVR kernel: wanpipe1: TDMV Span = 1 : Enabled
Dec 26 06:13:02 QIVR kernel: wanpipe1: TDMV Dummy = Disabled
Dec 26 06:13:02 QIVR kernel: wanpipe1: RTP TAP = Disabled
Dec 26 06:13:03 QIVR kernel: wanpipe1: Initializing TE1 Voice functions
Dec 26 06:13:03 QIVR kernel: wanpipe1: Initializing TE1 Voice functions
Dec 26 06:13:03 QIVR kernel: wanpipe1: Global Poll IRQ= Disabled
Dec 26 06:13:03 QIVR kernel: wanpipe1: Configuring Interface: w1g1
Dec 26 06:13:03 QIVR kernel: wanpipe1:w1g1: Running in TDM Voice Zaptel Mode.
Dec 26 06:13:03 QIVR kernel: wanpipe1: Fifo Level Map:0x01041040
Dec 26 06:13:03 QIVR kernel: wanpipe1: Fifo Level Map:0x01041040
Dec 26 06:13:03 QIVR kernel: wanpipe1: MRU :8 (Chunk/Period=8/1)
Dec 26 06:13:03 QIVR kernel: wanpipe1: MTU :8 (Chunk/Period=8/1)
Dec 26 06:13:03 QIVR kernel: wanpipe1: HDLC Eng :Off (Transparent) | N/A
Dec 26 06:13:03 QIVR kernel: wanpipe1: Data Mux Ctrl :On
Dec 26 06:13:03 QIVR kernel: wanpipe1: Active Ch Map :0x00000002
Dec 26 06:13:03 QIVR kernel: wanpipe1: First TSlot :1
Dec 26 06:13:03 QIVR kernel: wanpipe1: First TSlot :1
Dec 26 06:13:03 QIVR kernel: wanpipe1: DMA/Len/Idle/ChainR/ChainT/EC :65/1024/8/Off/Off/Off
Dec 26 06:13:03 QIVR kernel: wanpipe1: Memory: Chan=5832
Dec 26 06:13:03 QIVR kernel:
Dec 26 06:13:03 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:03 QIVR kernel: wanpipe1: Active Ch Map :0x00000004
Dec 26 06:13:04 QIVR kernel: wanpipe1: First TSlot :2
Dec 26 06:13:04 QIVR kernel: wanpipe1: First TSlot :2
Dec 26 06:13:04 QIVR kernel:
Dec 26 06:13:04 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:04 QIVR kernel: wanpipe1: Active Ch Map :0x00000008
Dec 26 06:13:04 QIVR kernel: wanpipe1: First TSlot :3
Dec 26 06:13:05 QIVR kernel:
Dec 26 06:13:05 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:05 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:05 QIVR kernel: wanpipe1: Active Ch Map :0x00000010
Dec 26 06:13:05 QIVR kernel: wanpipe1: First TSlot :4
Dec 26 06:13:05 QIVR kernel:
Dec 26 06:13:05 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:05 QIVR kernel: wanpipe1: Active Ch Map :0x00000020
Dec 26 06:13:05 QIVR kernel: wanpipe1: First TSlot :5
Dec 26 06:13:05 QIVR kernel: wanpipe1: First TSlot :5
Dec 26 06:13:05 QIVR kernel:
Dec 26 06:13:05 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:05 QIVR kernel: wanpipe1: Active Ch Map :0x00000040
Dec 26 06:13:05 QIVR kernel: wanpipe1: First TSlot :6
Dec 26 06:13:05 QIVR kernel:
Dec 26 06:13:05 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:05 QIVR kernel: wanpipe1: Active Ch Map :0x00000080
Dec 26 06:13:05 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:05 QIVR kernel: wanpipe1: Active Ch Map :0x00000080
Dec 26 06:13:05 QIVR kernel: wanpipe1: First TSlot :7
Dec 26 06:13:05 QIVR kernel:
Dec 26 06:13:05 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:05 QIVR kernel: wanpipe1: Active Ch Map :0x00000100
Dec 26 06:13:05 QIVR kernel: wanpipe1: First TSlot :8
Dec 26 06:13:05 QIVR kernel: wanpipe1: First TSlot :8
Dec 26 06:13:06 QIVR kernel:
Dec 26 06:13:06 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:06 QIVR kernel: wanpipe1: Active Ch Map :0x00000200
Dec 26 06:13:06 QIVR kernel: wanpipe1: First TSlot :9
Dec 26 06:13:06 QIVR kernel:
Dec 26 06:13:06 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:06 QIVR kernel: wanpipe1: Active Ch Map :0x00000400
Dec 26 06:13:06 QIVR kernel: wanpipe1: Active Ch Map :0x00000400
Dec 26 06:13:06 QIVR kernel: wanpipe1: First TSlot :10
Dec 26 06:13:06 QIVR kernel:
Dec 26 06:13:06 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:06 QIVR kernel: wanpipe1: Active Ch Map :0x00000800
Dec 26 06:13:06 QIVR kernel: wanpipe1: First TSlot :11
Dec 26 06:13:06 QIVR kernel:
Dec 26 06:13:06 QIVR kernel:
Dec 26 06:13:06 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:06 QIVR kernel: wanpipe1: Active Ch Map :0x00001000
Dec 26 06:13:06 QIVR kernel: wanpipe1: First TSlot :12
Dec 26 06:13:06 QIVR kernel:
Dec 26 06:13:06 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:06 QIVR kernel: wanpipe1: Active Ch Map :0x00002000
Dec 26 06:13:06 QIVR kernel: wanpipe1: First TSlot :13
Dec 26 06:13:06 QIVR kernel: wanpipe1: First TSlot :13
Dec 26 06:13:06 QIVR kernel:
Dec 26 06:13:06 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:06 QIVR kernel: wanpipe1: Active Ch Map :0x00004000
Dec 26 06:13:07 QIVR kernel: wanpipe1: First TSlot :14
Dec 26 06:13:07 QIVR kernel:
Dec 26 06:13:07 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:07 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:07 QIVR kernel: wanpipe1: Active Ch Map :0x00008000
Dec 26 06:13:07 QIVR kernel: wanpipe1: First TSlot :15
Dec 26 06:13:07 QIVR kernel:
Dec 26 06:13:07 QIVR kernel: wanpipe1: Configuring Interface: w1g1
Dec 26 06:13:07 QIVR kernel: wanpipe1:w1g1: Running in TDM DCHAN Voice Zaptel Mode.
Dec 26 06:13:07 QIVR kernel: wanpipe1: MRU :1500
Dec 26 06:13:07 QIVR kernel: wanpipe1: MRU :1500
Dec 26 06:13:07 QIVR kernel: wanpipe1: MTU :1500
Dec 26 06:13:07 QIVR kernel: wanpipe1: HDLC Eng :On HW 8bit | N/A
Dec 26 06:13:07 QIVR kernel: wanpipe1: Data Mux Ctrl :Off
Dec 26 06:13:07 QIVR kernel: wanpipe1: Active Ch Map :0x00010000
Dec 26 06:13:07 QIVR kernel: wanpipe1: First TSlot :16
Dec 26 06:13:07 QIVR kernel: wanpipe1: DMA/Len/Idle/ChainR/ChainT/EC :65/4096/0/Off/Off/Off
Dec 26 06:13:07 QIVR kernel:
Dec 26 06:13:07 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:07 QIVR kernel: wanpipe1: Active Ch Map :0x00020000
Dec 26 06:13:07 QIVR kernel: wanpipe1: First TSlot :17
Dec 26 06:13:07 QIVR kernel:
Dec 26 06:13:07 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:07 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:07 QIVR kernel: wanpipe1: Active Ch Map :0x00040000
Dec 26 06:13:08 QIVR kernel: wanpipe1: First TSlot :18
Dec 26 06:13:08 QIVR kernel:
Dec 26 06:13:08 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:08 QIVR kernel: wanpipe1: Active Ch Map :0x00080000
Dec 26 06:13:08 QIVR kernel: wanpipe1: First TSlot :19
Dec 26 06:13:08 QIVR kernel:
Dec 26 06:13:08 QIVR kernel:
Dec 26 06:13:08 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:08 QIVR kernel: wanpipe1: Active Ch Map :0x00100000
Dec 26 06:13:08 QIVR kernel: wanpipe1: First TSlot :20
Dec 26 06:13:08 QIVR kernel:
Dec 26 06:13:08 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:08 QIVR kernel: wanpipe1: Active Ch Map :0x00200000
Dec 26 06:13:08 QIVR kernel: wanpipe1: First TSlot :21
Dec 26 06:13:08 QIVR kernel: wanpipe1: First TSlot :21
Dec 26 06:13:08 QIVR kernel:
Dec 26 06:13:08 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:08 QIVR kernel: wanpipe1: Active Ch Map :0x00400000
Dec 26 06:13:08 QIVR kernel: wanpipe1: First TSlot :22
Dec 26 06:13:08 QIVR kernel:
Dec 26 06:13:08 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:08 QIVR kernel: wanpipe1: Active Ch Map :0x00800000
Dec 26 06:13:08 QIVR kernel: wanpipe1: Active Ch Map :0x00800000
Dec 26 06:13:08 QIVR kernel: wanpipe1: First TSlot :23
Dec 26 06:13:09 QIVR kernel:
Dec 26 06:13:09 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:09 QIVR kernel: wanpipe1: Active Ch Map :0x01000000
Dec 26 06:13:09 QIVR kernel: wanpipe1: First TSlot :24
Dec 26 06:13:09 QIVR kernel:
Dec 26 06:13:09 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:09 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:09 QIVR kernel: wanpipe1: Active Ch Map :0x02000000
Dec 26 06:13:09 QIVR kernel: wanpipe1: First TSlot :25
Dec 26 06:13:09 QIVR kernel:
Dec 26 06:13:09 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:09 QIVR kernel: wanpipe1: Active Ch Map :0x04000000
Dec 26 06:13:09 QIVR kernel: wanpipe1: First TSlot :26
Dec 26 06:13:09 QIVR kernel:
Dec 26 06:13:09 QIVR kernel:
Dec 26 06:13:09 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:09 QIVR kernel: wanpipe1: Active Ch Map :0x08000000
Dec 26 06:13:09 QIVR kernel: wanpipe1: First TSlot :27
Dec 26 06:13:09 QIVR kernel:
Dec 26 06:13:09 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:09 QIVR kernel: wanpipe1: Active Ch Map :0x10000000
Dec 26 06:13:09 QIVR kernel: wanpipe1: First TSlot :28
Dec 26 06:13:09 QIVR kernel:
Dec 26 06:13:09 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:09 QIVR kernel: wanpipe1: Active Ch Map :0x20000000
Dec 26 06:13:09 QIVR kernel: wanpipe1: First TSlot :29
Dec 26 06:13:10 QIVR kernel:
Dec 26 06:13:10 QIVR kernel:
Dec 26 06:13:10 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:10 QIVR kernel: wanpipe1: Active Ch Map :0x40000000
Dec 26 06:13:10 QIVR kernel: wanpipe1: First TSlot :30
Dec 26 06:13:10 QIVR kernel:
Dec 26 06:13:10 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:10 QIVR kernel: wanpipe1: Configuring Interface: w1g1 (log supress)
Dec 26 06:13:10 QIVR kernel: wanpipe1: Configuring TDMV Master dev w1g1
Dec 26 06:13:10 QIVR kernel: wanpipe1: Active Ch Map :0x80000000
Dec 26 06:13:10 QIVR kernel: wanpipe1: First TSlot :31
Dec 26 06:13:10 QIVR kernel:
Dec 26 06:13:10 QIVR kernel: wanpipe1: Wanpipe device is registered to Zaptel span # 1!
Dec 26 06:13:10 QIVR kernel: wanpipe1: TDM Free Run Timing Enabled 1 ms
Dec 26 06:13:10 QIVR kernel: IPv6: add_dev failed for w1g1
Dec 26 06:13:10 QIVR kernel: ADDRCONF(NETDEV_UP): w1g1: link is not ready
Dec 26 06:13:10 QIVR kernel: wanpipe1: E1 disconnected!
Dec 26 06:13:10 QIVR kernel: wanpipe1: TDM Free Run Timing Enabled 1 ms
Dec 26 06:13:10 QIVR kernel: IPv6: add_dev failed for w1g1
Dec 26 06:13:10 QIVR kernel: ADDRCONF(NETDEV_UP): w1g1: link is not ready
Dec 26 06:13:10 QIVR kernel: wanpipe1: E1 disconnected!
Dec 26 06:13:10 QIVR kernel: wanpipe1: Enable transmit YEL alarm
Dec 26 06:13:10 QIVR kernel: wanpipe1: DAHDI Configuring device [name=, span=1, sync=1, lcfg=0x300,]
Dec 26 06:13:10 QIVR kernel: wanpipe1: Wanpipe front end skipped, no changes in config
Dec 26 06:13:10 QIVR kernel: dahdi_echocan_mg2: Registered echo canceler 'MG2'
Dec 26 06:13:12 QIVR kernel: wanpipe1: LOF : OFF
Dec 26 06:13:13 QIVR kernel: wanpipe1: RED : OFF
Dec 26 06:13:21 QIVR kernel: wanpipe1: Disable transmit YEL alarm
Dec 26 06:13:21 QIVR kernel: wanpipe1: E1 connected!
Dec 26 06:13:21 QIVR kernel: wanpipe1: AFT communications enabled
Dec 26 06:13:21 QIVR kernel: wanpipe1: AFT Global TDM Intr
Dec 26 06:13:21 QIVR kernel: wanpipe1: Global TDM Ring Resync TDM = 0x1
Dec 26 06:13:21 QIVR kernel: ADDRCONF(NETDEV_CHANGE): w1g1: link becomes ready

[root@QIVR ~]# cat /etc/asterisk/dahdi-channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Fri Dec 25 02:58:23 2015
; If you edit this file and execute /usr/sbin/dahdi_genconf 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
;

; Span 1: WPE1/0 "wanpipe1 card 0" (MASTER)
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31
context = default
group = 63

[root@QIVR ~]# cat /etc/asterisk/chan_dahdi.conf
; Autogenerated by /usr/sbin/setup-sangoma 2015-12-26
; 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
;

;Sangoma A101 port 1 [slot:4 bus:14 span:1] <wanpipe1>
switchtype=euroisdn
context=from-zaptel
group=0
echocancel=yes
signalling=pri_cpe
channel =>1-15,17-31

-============
[root@QIVR ~]# ifconfig
eth0 Link encap:Ethernet HWaddr E4:11:5B:B1:74:A8
inet addr:196.195.251.93 Bcast:196.195.251.127 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16688 errors:0 dropped:0 overruns:0 frame:0
TX packets:2979 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1721544 (1.6 MiB) TX bytes:585906 (572.1 KiB)
Interrupt:169 Memory:fbde0000-fbe00000

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:6781 errors:0 dropped:0 overruns:0 frame:0
TX packets:6781 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:520654 (508.4 KiB) TX bytes:520654 (508.4 KiB)

w1g1 Link encap:Point-to-Point Protocol
UP POINTOPOINT RUNNING NOARP MTU:8 Metric:1
RX packets:278200 errors:0 dropped:0 overruns:1 frame:1
TX packets:278200 errors:0 dropped:0 overruns:1 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:185 Memory:ffffc20010090000-ffffc20010091fff

[root@QIVR ~]# ifconfig
eth0 Link encap:Ethernet HWaddr E4:11:5B:B1:74:A8
inet addr:196.195.251.93 Bcast:196.195.251.127 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16693 errors:0 dropped:0 overruns:0 frame:0
TX packets:2988 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1721936 (1.6 MiB) TX bytes:588420 (574.6 KiB)
Interrupt:169 Memory:fbde0000-fbe00000

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:6781 errors:0 dropped:0 overruns:0 frame:0
TX packets:6781 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:520654 (508.4 KiB) TX bytes:520654 (508.4 KiB)

w1g1 Link encap:Point-to-Point Protocol
UP POINTOPOINT RUNNING NOARP MTU:8 Metric:1
RX packets:279554 errors:0 dropped:0 overruns:1 frame:1
TX packets:279554 errors:0 dropped:0 overruns:1 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:185 Memory:ffffc20010090000-ffffc20010091fff

[root@QIVR ~]# ifconfig
eth0 Link encap:Ethernet HWaddr E4:11:5B:B1:74:A8
inet addr:196.195.251.93 Bcast:196.195.251.127 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16701 errors:0 dropped:0 overruns:0 frame:0
TX packets:2998 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1722508 (1.6 MiB) TX bytes:590988 (577.1 KiB)
Interrupt:169 Memory:fbde0000-fbe00000

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:6781 errors:0 dropped:0 overruns:0 frame:0
TX packets:6781 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:520654 (508.4 KiB) TX bytes:520654 (508.4 KiB)

w1g1 Link encap:Point-to-Point Protocol
UP POINTOPOINT RUNNING NOARP MTU:8 Metric:1
RX packets:280896 errors:0 dropped:0 overruns:1 frame:1
TX packets:280896 errors:0 dropped:0 overruns:1 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:185 Memory:ffffc20010090000-ffffc20010091fff

==================
[root@QIVR ~]# cat /etc/dahdi/system.conf
#autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
#autogenrated on 2015-12-26
#Dahdi Channels Configurations
#For detailed Dahdi options, view /etc/dahdi/system.conf.bak
loadzone=us
defaultzone=us

#Sangoma A101 port 1 [slot:4 bus:14 span:1] <wanpipe1>
span=1,1,0,ccs,hdb3
bchan=1-15,17-31
echocanceller=mg2,1-15,17-31
hardhdlc=16

================
[root@QIVR ~]# asterisk -rvvv
Asterisk 11.13.0, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.0 currently running on QIVR (pid = 10070)
QIVR*CLI>
QIVR*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State Description
QIVR*CLI> pri show channels
PRI B Chan Call PRI Channel
Span Chan Chan Idle Level Call Name
QIVR*CLI> pri show spans
-- Remote UNIX connection
-- Remote UNIX connection disconnected
QIVR*CLI>

=============
wanrouter status
[root@QIVR ~]# 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/2/2D/4/4D/8/8D/16/16D| 185 | 4 | 1 | N/A | 0 |

Wanrouter Status:

Device name | Protocol | Station | Status |
wanpipe1 | AFT TE1 | N/A | Connected |

[root@QIVR ~]# wanpipemon -i w1g1 -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 : 204
Far End Block Errors : 0
CRC4 Errors : 0
FAS Errors : 0
Sync Errors : 0

Rx Level : > -2.5db

======================

as we seee above , all things workign fine , except that there is blank dahdi show channels !!!!!!

now i will run the sangoma setup agian , and i will choose CRC and change to National ISDN 2 .
and see the result .

the card led will be red , but channels are detected .

well :
[root@QIVR ~]# /usr/local/sbin/setup-sangoma

########################################################################
# Sangoma Wanpipe #
# Dahdi/Zaptel/SMG/TDMAPI/BOOT Configuration Script #
# v2.39 #
# Sangoma Technologies Inc. #
# Copyright(c) 2013. #
########################################################################

Generating configuration files for Trixbox
-------------------------------------------------------
Configuring T1/E1 cards [A101/A102/A104/A108/A116/T116]
-------------------------------------------------------
A101 detected on slot:4 bus:14

-----------------------------------------------------------
Configuring port 1 on A101 slot:4 bus:14.
-----------------------------------------------------------

Select media type for AFT-A101 on port 1 [slot:4 bus:14 span:1]
1. T1
2. E1
3. Unused
4. Exit
[1-4]:2

Configuring port 1 on AFT-A101 as E1, line coding:HDB3, framing:CRC4
1. YES - Keep these settings
2. NO - Configure line coding and framing
[1-2, ENTER='YES']:2

Select line coding for port 1 on 101
1. HDB3
2. AMI
[1-2, ENTER='HDB3']:1

Select framing for port 1 on 101
1. CRC4
2. NCRC4
3. UNFRAMED
[1-3, ENTER='CRC4']:1

Select clock for AFT-101 on port 1 [slot:4 bus:14 span:1]
1. NORMAL
2. MASTER
[1-2]:1

Select signalling type for AFT-101 on port 1 [slot:4 bus:14 span:1]
1. Zaptel/Dahdi - PRI CPE
2. Zaptel/Dahdi - PRI NET
3. Zaptel/Dahdi - E & M
4. Zaptel/Dahdi - E & M Wink
5. Zaptel/Dahdi - FXS - Loop Start
6. Zaptel/Dahdi - FXS - Ground Start
7. Zaptel/Dahdi - FXS - Kewl Start
8. Zaptel/Dahdi - FX0 - Loop Start
9. Zaptel/Dahdi - FX0 - Ground Start
10. Zaptel/Dahdi - FX0 - Kewl Start
[1-10]:1

Select switchtype for AFT-101 on port 1
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7]:1

Configuring port 1 on AFT-101 as a full E1
1. YES - Use all channels
2. NO - Configure for fractional
[1-2, ENTER='YES']:1

Select dialplan context for AFT-101 on port 1
1. PSTN
2. INTERNAL
[1-2]:1

Port 1 on AFT-A101 configuration complete...
Press any key to continue:

T1/E1 card configuration complete.
Press any key to continue:
-------------------------------------------
Configuring ISDN BRI cards [A500/B500/B700]
-------------------------------------------

No Sangoma ISDN BRI cards detected

Press any key to continue:
------------------------------------
Configuring GSM cards [W400]
------------------------------------

No Sangoma GSM cards detected

Press any key to continue:
------------------------------------
Configuring analog cards [A200/A400/B600/B610/B700/B800]
------------------------------------
------------------------------------
Configuring USB devices [U100]
------------------------------------

###################################################################
# 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 GSM 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. Dahdi config file /etc/dahdi/system.conf
3. chan_dahdi config file /etc/asterisk/chan_dahdi.conf

Your original configuration files will be saved to:
1. /etc/dahdi/system.conf.bak
2. /etc/asterisk/chan_dahdi.conf.bak

Your configuration has been saved in /etc/wanpipe/debug-2015-12-26.tgz.
When requesting support, email this file to
techdesk@sangoma.com

###################################################################

Configuration Complete! Please select following:
1. YES - Continue
2. NO - Exit
[1-2]:1

Dahdi and Wanpipe configuration complete: choose action
1. Save cfg: Restart Asterisk & Wanpipe now
2. Save cfg: Restart Asterisk & Wanpipe when convenient
3. Save cfg: Stop Asterisk & Wanpipe now
4. Save cfg: Stop Asterisk & Wanpipe when convenient
5. Save cfg: Save cfg only (Not Recommended!!!)
6. Do not save cfg: Exit
[1-6]:1

Please wait...

STOPPING ASTERISK
Waiting for Asterisk to Stop Gracefully...

Asterisk Stopped

Error executing command:
amportal stop

Would you like to continue?
1. No - exit
2. YES
[1-2, ENTER='No']:2

Stopping Wanpipe...

Shutting down wanpipe1 interface: w1g1
Shutting down device: wanpipe1
No devices running, Unloading Modules

Unloading Dahdi modules...

Removing old configuration files...

Copying new Wanpipe configuration files...

Copying new Dahdi configuration file (/etc/dahdi/system.conf)...

Copying new chan_dahdi configuration files (/etc/asterisk/chan_dahdi.conf)...

Starting Wanpipe...

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

Loading Dahdi...
DAHDI Tools Version - 2.10.0.1

DAHDI Version: 2.10.0.1
Echo Canceller(s):
Configuration
======================

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

31 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 16 to none
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

Starting Amportal...

Please wait...

SETTING FILE PERMISSIONS
Permissions OK
Removing any dangling symlinks
Dangling symlinks removed

STARTING ASTERISK
Asterisk Started
Error executing command:
amportal start

Would you like to continue?
1. No - exit
2. YES
[1-2, ENTER='No']:2

Wanrouter start complete...
Current boot level is 3

Wanrouter boot scripts configuration...

Removing existing wanrouter boot scripts...OK
Would you like wanrouter to start on system boot?
1. YES
2. NO
[1-2]:

============

now the interface w1g1 has no statistics :
[root@QIVR ~]# ifconfig
eth0 Link encap:Ethernet HWaddr E4:11:5B:B1:74:A8
inet addr:196.195.251.93 Bcast:196.195.251.127 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17334 errors:0 dropped:0 overruns:0 frame:0
TX packets:3572 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1779620 (1.6 MiB) TX bytes:668968 (653.2 KiB)
Interrupt:169 Memory:fbde0000-fbe00000

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:6913 errors:0 dropped:0 overruns:0 frame:0
TX packets:6913 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:530366 (517.9 KiB) TX bytes:530366 (517.9 KiB)

w1g1 Link encap:Point-to-Point Protocol
UP POINTOPOINT NOARP MTU:8 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:185 Memory:ffffc20010090000-ffffc20010091fff

[root@QIVR ~]# ifconfig
eth0 Link encap:Ethernet HWaddr E4:11:5B:B1:74:A8
inet addr:196.195.251.93 Bcast:196.195.251.127 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17340 errors:0 dropped:0 overruns:0 frame:0
TX packets:3581 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1780072 (1.6 MiB) TX bytes:671482 (655.7 KiB)
Interrupt:169 Memory:fbde0000-fbe00000

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:6913 errors:0 dropped:0 overruns:0 frame:0
TX packets:6913 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:530366 (517.9 KiB) TX bytes:530366 (517.9 KiB)

w1g1 Link encap:Point-to-Point Protocol
UP POINTOPOINT NOARP MTU:8 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:185 Memory:ffffc20010090000-ffffc20010091fff

============
[root@QIVR ~]# 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/2/2D/4/4D/8/8D/16/16D| 185 | 4 | 1 | N/A | 0 |

Wanrouter Status:

Device name | Protocol | Station | Status |
wanpipe1 | AFT TE1 | N/A | Disconnected |

You have new mail in /var/spool/mail/root

[root@QIVR ~]# asterisk -rvvv
Asterisk 11.13.0, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.0 currently running on QIVR (pid = 13646)
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State Description
pseudo default default In Service
1 from-pstn default In Service
2 from-pstn default In Service
3 from-pstn default In Service
4 from-pstn default In Service
5 from-pstn default In Service
6 from-pstn default In Service
7 from-pstn default In Service
8 from-pstn default In Service
9 from-pstn default In Service
10 from-pstn default In Service
11 from-pstn default In Service
12 from-pstn default In Service
13 from-pstn default In Service
14 from-pstn default In Service
15 from-pstn default In Service
17 from-pstn default In Service
18 from-pstn default In Service
19 from-pstn default In Service
20 from-pstn default In Service
21 from-pstn default In Service
22 from-pstn default In Service
23 from-pstn default In Service
24 from-pstn default In Service
25 from-pstn default In Service
26 from-pstn default In Service
27 from-pstn default In Service
28 from-pstn default In Service
29 from-pstn default In Service
30 from-pstn default In Service
31 from-pstn default In Service
QIVR*CLI> pri show spans
PRI span 1/0: In Alarm, Down, Active
QIVR*CLI> pri show span 1
Primary D-channel: 16
Status: In Alarm, Down, Active
Switchtype: EuroISDN
Type: CPE
Remote type: Unknown node type
Overlap Dial: 0
Logical Channel Mapping: 0
Timer and counter settings:
N200: 3
N202: 3
K: 7
T200: 1000
T201: 1000
T202: 2000
T203: 10000
T303: 4000
T305: 30000
T308: 4000
T309: 6000
T312: 6000
T313: 4000
T316: -1
N316: 2
T-HOLD: 4000
T-RETRIEVE: 4000
T-RESPONSE: 4000
T-STATUS: 4000
T-ACTIVATE: 10000
T-DEACTIVATE: 4000
T-INTERROGATE: 4000
T-RETENTION: 30000
T-CCBS1: 4000
T-CCBS2: 2700000
T-CCBS3: 20000
T-CCBS4: 5000
T-CCBS5: 3600000
T-CCBS6: 3600000
T-CCNR2: 10800000
T-CCNR5: 11700000
T-CCNR6: 11700000
Q931 RX: 0
Q931 TX: 0
Q921 RX: 0
Q921 TX: 46
Q921 Outstanding: 0 (TEI=0)
Total active-calls:0 global:0
CC records:
Overlap Recv: No

==============

[root@QIVR ~]# cat /etc/wanpipe/wanpipe1.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 = 14
FE_MEDIA = E1
FE_LCODE = HDB3
FE_FRAME = CRC4
FE_LINE = 1
TE_CLOCK = NORMAL
TE_REF_CLOCK = 0

TE_HIGHIMPEDANCE = NO
TE_SIG_MODE = CCS
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 = 16
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 = NO # YES: receive dtmf events from hardware
TDMV_HW_FAX_DETECT = NO # 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 cancelation 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 = NO
MTU = 8
=====================
[root@QIVR ~]#
[root@QIVR ~]# cat /etc/asterisk/chan_dahdi.conf
; Auto-generated by /usr/sbin/hardware_detector
[trunkgroups]

[channels]
context=from-pstn
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
faxdetect=incoming
echotraining=800
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1
relaxdtmf=yes

;Uncomment these lines if you have problems with the disconection of your analog lines
;busydetect=yes
;busycount=3

immediate=no

#include dahdi-channels.conf
#include chan_dahdi_additional.conf
[root@QIVR ~]# cat /etc/asterisk/dahdi-channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Sat Dec 26 06:34:51 2015
; If you edit this file and execute /usr/sbin/dahdi_genconf 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
;

; Span 1: WPE1/0 "wanpipe1 card 0" (MASTER)
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31
context = default
group = 63

==============
[root@QIVR ~]# cat /etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Sat Dec 26 06:34:51 2015
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: WPE1/0 "wanpipe1 card 0" (MASTER)
span=1,1,0,ccs,hdb3,crc4
# termtype: te
bchan=1-15,17-31
dchan=16
echocanceller=oslec,1-15,17-31

# Global data

loadzone = us
defaultzone = us

=======================

here is log of /var/log/messages :

Dec 26 06:42:35 QIVR kernel:
Dec 26 06:42:35 QIVR kernel: wanpipe1: Shutting Down!
Dec 26 06:42:35 QIVR kernel: wanpipe1: WARNING: Wanpipe is still used by Asterisk (cnt=31)!
Dec 26 06:42:35 QIVR kernel: shutdown failed with error -16
Dec 26 06:42:35 QIVR kernel: ADDRCONF(NETDEV_UP): w1g1: link is not ready
Dec 26 06:42:35 QIVR kernel: shutdown failed with error -16
Dec 26 06:42:35 QIVR kernel: ADDRCONF(NETDEV_UP): w1g1: link is not ready
Dec 26 06:42:36 QIVR kernel: wanpipe1: DAHDI Configuring device [name=, span=1, sync=1, lcfg=0x700,]
Dec 26 06:42:36 QIVR kernel: wanpipe1: Wanpipe front end skipped, no changes in config
Dec 26 06:42:47 QIVR kernel: dahdi_devices wanpipe_devices:wan: local span 1 is already assigned span 1
Dec 26 06:42:47 QIVR kernel: wanpipe1: DAHDI Configuring device [name=, span=1, sync=1, lcfg=0x700,]
Dec 26 06:42:47 QIVR kernel: wanpipe1: DAHDI Configuring device [name=, span=1, sync=1, lcfg=0x700,]
Dec 26 06:42:47 QIVR kernel: wanpipe1: Wanpipe front end skipped, no changes in config
Dec 26 06:42:58 QIVR kernel:
Dec 26 06:42:58 QIVR kernel: wanpipe1: Shutting Down!
Dec 26 06:42:58 QIVR kernel: wanpipe1: WARNING: Wanpipe is still used by Asterisk (cnt=31)!
Dec 26 06:42:58 QIVR kernel: shutdown failed with error -16
Dec 26 06:42:58 QIVR kernel: ADDRCONF(NETDEV_UP): w1g1: link is not ready
Dec 26 06:42:58 QIVR kernel: shutdown failed with error -16
Dec 26 06:42:58 QIVR kernel: ADDRCONF(NETDEV_UP): w1g1: link is not ready
Dec 26 06:42:59 QIVR kernel: wanpipe1: DAHDI Configuring device [name=, span=1, sync=1, lcfg=0x700,]
Dec 26 06:42:59 QIVR kernel: wanpipe1: Wanpipe front end skipped, no changes in config

======================

[root@QIVR ~]# wanpipemon -i w1g1 -c Ta

***** w1g1: E1 Rx Alarms (Framer) *****

ALOS: OFF | LOS: OFF
RED: ON | AIS: OFF
LOF: ON | RAI: OFF

***** w1g1: E1 Rx Alarms (LIU) *****

Short Circuit: OFF
Open Circuit: OFF
Loss of Signal: OFF

***** w1g1: E1 Tx Alarms *****

AIS: OFF | YEL: ON

***** w1g1: E1 Performance Monitoring Counters *****

Line Code Violation : 155
Far End Block Errors : 0
CRC4 Errors : 0
FAS Errors : 0
Sync Errors : 0

Rx Level : > -2.5db
===================

as you see , either i have channles exist but card down !!!

so , i just need a help what to do to have card green and exist channels ?

here is the pri debug :

QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI>
QIVR*CLI> pri set debug on span 1
Enabled debugging on span 1
PRI Span: 1 TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)
PRI Span: 1 Changing from state 5(Awaiting establishment) to 4(TEI assigned)
PRI Span: 1 TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)
QIVR*CLI>
QIVR*CLI>
PRI Span: 1 SAPI/TEI=0/0 Kick starting link
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 Changing from state 4(TEI assigned) to 5(Awaiting establishment)
QIVR*CLI>
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)
PRI Span: 1 Changing from state 5(Awaiting establishment) to 4(TEI assigned)
PRI Span: 1 TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)
PRI Span: 1 SAPI/TEI=0/0 Kick starting link
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 Changing from state 4(TEI assigned) to 5(Awaiting establishment)
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)
PRI Span: 1 Changing from state 5(Awaiting establishment) to 4(TEI assigned)
PRI Span: 1 TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)
PRI Span: 1 SAPI/TEI=0/0 Kick starting link
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 Changing from state 4(TEI assigned) to 5(Awaiting establishment)
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)
PRI Span: 1 Changing from state 5(Awaiting establishment) to 4(TEI assigned)
PRI Span: 1 TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)
PRI Span: 1 SAPI/TEI=0/0 Kick starting link
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 Changing from state 4(TEI assigned) to 5(Awaiting establishment)
PRI Span: 1 TEI=0 Sending SABME

=========

hope to help me ASAp.

CHEERS

Statistics: Posted by dr.x — Sat Dec 26, 2015 10:18 am

Show more