# Sangoma A101 - Config E1 MFCR2

**URL:** <https://community.asterisk.org/t/sangoma-a101-config-e1-mfcr2/71544>\
**Category:** Asterisk Hardware\
**Created:** [August 1, 2017, 1:02pm UTC](https://community.asterisk.org/t/sangoma-a101-config-e1-mfcr2/71544 "2017-08-01T13:02:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmg\_asterisk](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/mmg_asterisk/32/2085_2.png) [@mmg\_asterisk](https://community.asterisk.org/u/mmg_asterisk)\
**Post date:** [August 1, 2017, 1:02pm UTC](https://community.asterisk.org/t/sangoma-a101-config-e1-mfcr2/71544/1 "2017-08-01T13:02:45Z")

</div>

Hello everyone and thanks for reading  
I’m struggling with the configuration of a sangoma a101, trying to configure a trunk e1, hdb3, mfcr2  
The truth is that I’m applying the same configuration that has already worked for me several times, but I’m not getting results  
I see the frame with alarms, TX IDLE and all RX BLOCK  
The carrier told me that everything is fine, they went to measure, and according to them everything is fine …  
Anyone with experience in these subjects could tell me if I can improve some config?

I pass the configuration, a couple of commands and a log capture

---------------------------------|system.conf|---------------------------------

# Span 1: WPE1/0 “wanpipe1 card 0” (MASTER) HDB3

span=1,1,0,cas,hdb3

# termtype: te

cas=1-15:1101  
dchan=16  
cas=17-31:1101  
echocanceller=mg2,1-15,17-31

# Global data

loadzone = ar  
defaultzone = ar

---------------------------------|dahdi-channels.conf|---------------------------------  
; Span 1: WPE1/0 “wanpipe1 card 0” (MASTER) HDB3  
group=0,11  
context=from-pstn  
switchtype = euroisdn  
signalling = mfcr2  
channel =\> 1-15,17-31  
context = default  
group = 63

---------------------------------|chan\_dahdi\_groups.conf|---------------------------------  
; [span\_1]  
signalling=pri\_cpe  
switchtype=national  
pridialplan=national  
prilocaldialplan=national  
group=0  
context=from-digital  
channel=\>1-15,17-31

---------------------------------|chan\_dahdi\_channels\_custom.conf|---------------------------------  
immediate = no  
relaxdtmf = no  
sendcalleridafter = 1  
mfcr2\_variant=AR  
mfcr2\_get\_ani\_first=yes  
mfcr2\_max\_ani=10  
mfcr2\_max\_dnis=4  
mfcr2\_category=national\_subscriber  
mfcr2\_mfback\_timeout=-1  
mfcr2\_forced\_release=no  
mfcr2\_allow\_collect\_calls=no  
mfcr2\_double\_answer=no  
mfcr2\_immediate\_accept=no  
mfcr2\_charge\_calls=yes  
mfcr2\_call\_files=no  
signalling=mfcr2  
channel =\> 1-15,17-31

---------------------------------|wanpipe1.conf|---------------------------------  
[devices]  
wanpipe1 = WAN\_AFT\_TE1, Comment

[interfaces]  
w1g1 = wanpipe1, , TDM\_VOICE, Comment

[wanpipe1]  
CARD\_TYPE = AFT  
S514CPU = A  
CommPort = PRI  
AUTO\_PCISLOT = NO  
PCISLOT = 0  
PCIBUS = 3  
FE\_MEDIA = E1  
FE\_LCODE = HDB3  
FE\_FRAME = NCRC4  
FE\_LINE = 1  
TE\_CLOCK = NORMAL  
TE\_REF\_CLOCK = 0  
TE\_SIG\_MODE = CCS  
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 = 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

---------------------------------|sangoma debug file|---------------------------------

Debug Info for w1g1

WANPIPE Release: 7.0.12

```
--------------------------------
    w1g1: MODEM STATUS
--------------------------------

```

DCD: Low  
CTS: Low

```
------------------------------------------------------
    w1g1: AFT COMMUNICATION ERROR STATISTICS
------------------------------------------------------

```

RX Stats:  
Number of receiver overrun errors: 0  
Number of receiver CRC errors: 0  
Number of receiver Abort errors: 0  
Number of receiver corruption errors: 0  
Number of receiver PCI errors: 0  
Number of receiver DMA descriptor errors: 0  
TX Stats:  
Number of transmitter PCI errors: 0  
Number of transmitter PCI latency warnings: 0  
Number of transmitter DMA descriptor errors: 0  
Number of transmitter DMA descriptor length errors: 0

```
------------------------------------------------------
    w1g1: AFT COMMUNICATION ERROR STATISTICS
------------------------------------------------------

```

RX Stats:  
Number of receiver overrun errors: 0  
Number of receiver CRC errors: 0  
Number of receiver Abort errors: 0  
Number of receiver corruption errors: 0  
Number of receiver PCI errors: 0  
Number of receiver DMA descriptor errors: 0  
TX Stats:  
Number of transmitter PCI errors: 0  
Number of transmitter PCI latency warnings: 0  
Number of transmitter DMA descriptor errors: 0  
Number of transmitter DMA descriptor length errors: 0

Start WANPIPE /var/log/messages

kernel: wanpipe1: Global E1 Front End configuration  
kernel: wanpipe1: AFT Data Mux Bit Map: 0x01234567  
kernel: wanpipe1: Configuring DS DS26521 E1 FE  
kernel: wanpipe1: Port 1,HDB3,non-CRC4,120OH  
kernel: wanpipe1: Clk Normal:0, Channels: FFFFFFFF  
kernel: wanpipe1: AIS on LOS: Off (default)  
kernel: wanpipe1: Sig Mode CAS  
kernel: wanpipe1: E1 CAS NCRC4 updated config 76  
kernel: wanpipe1: Rx Sensitivity Gain 43dB (default).  
kernel: wanpipe1: Configurig DS8/4/2/1 for E1 LRISMR=0x33  
kernel: wanpipe1: Front end successful  
kernel: wanpipe1: Configuring FE Line=1 Clock Source: Line=1 Normal  
kernel: wanpipe1: Front End Interface Ready 0x40000000  
kernel: wanpipe1: WARNING: No Echo Canceller channels are available!  
kernel: wanpipe1: Configuring Device :wanpipe1 FrmVr=40  
kernel: wanpipe1: Global MTU = 1500  
kernel: wanpipe1: Global MRU = 1500  
kernel: wanpipe1: Data Mux Map = 0x01234567  
kernel: wanpipe1: Rx CRC Bytes = 0  
kernel: wanpipe1: RBS Signalling = Off  
kernel: wanpipe1: FE Sync = Enabled  
kernel: wanpipe1: Global TDM Int = Enabled  
kernel: wanpipe1: Global TDM Ring= HW Ring  
kernel: wanpipe1: Global SPAN IRQ= RX/TX  
kernel: wanpipe1: TDM HW TONE = Disabled  
kernel: wanpipe1: Fifo Trigger = rx:50 tx:50 (events per sec)  
kernel: wanpipe1: TDMV Span = 1 : Enabled  
kernel: wanpipe1: TDMV Dummy = Disabled  
kernel: wanpipe1: RTP TAP = Disabled  
kernel: wanpipe1: Initializing TE1 Voice functions  
kernel: wanpipe1: Global Poll IRQ= Disabled  
kernel: wanpipe1: Configuring Interface: w1g1  
kernel: wanpipe1: w1g1 Running in TDM Voice Zaptel Mode.  
kernel: wanpipe1: Fifo Level Map:0x01041040  
kernel: wanpipe1: MRU :8 (Chunk/Period=8/1)  
kernel: wanpipe1: MTU :8 (Chunk/Period=8/1)  
kernel: wanpipe1: HDLC Eng :Off (Transparent) | N/A  
kernel: wanpipe1: Data Mux Ctrl :On  
kernel: wanpipe1: Active Ch Map :0x00000002  
kernel: wanpipe1: First TSlot :1  
kernel: wanpipe1: DMA/Len/Idle/ChainR/ChainT/EC :65/1024/8/Off/Off/Off  
kernel: wanpipe1: Memory: Chan=5760  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00000004  
kernel: wanpipe1: First TSlot :2  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00000008  
kernel: wanpipe1: First TSlot :3  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00000010  
kernel: wanpipe1: First TSlot :4  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00000020  
kernel: wanpipe1: First TSlot :5  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00000040  
kernel: wanpipe1: First TSlot :6  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00000080  
kernel: wanpipe1: First TSlot :7  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00000100  
kernel: wanpipe1: First TSlot :8  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00000200  
kernel: wanpipe1: First TSlot :9  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00000400  
kernel: wanpipe1: First TSlot :10  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00000800  
kernel: wanpipe1: First TSlot :11  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00001000  
kernel: wanpipe1: First TSlot :12  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00002000  
kernel: wanpipe1: First TSlot :13  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00004000  
kernel: wanpipe1: First TSlot :14  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00008000  
kernel: wanpipe1: First TSlot :15  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1  
kernel: wanpipe1: w1g1 Running in TDM DCHAN Voice Zaptel Mode.  
kernel: wanpipe1: MRU :1500  
kernel: wanpipe1: MTU :1500  
kernel: wanpipe1: HDLC Eng :On HW 8bit | N/A  
kernel: wanpipe1: Data Mux Ctrl :Off  
kernel: wanpipe1: Active Ch Map :0x00010000  
kernel: wanpipe1: First TSlot :16  
kernel: wanpipe1: DMA/Len/Idle/ChainR/ChainT/EC :65/4096/0/Off/Off/Off  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00020000  
kernel: wanpipe1: First TSlot :17  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00040000  
kernel: wanpipe1: First TSlot :18  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00080000  
kernel: wanpipe1: First TSlot :19  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00100000  
kernel: wanpipe1: First TSlot :20  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00200000  
kernel: wanpipe1: First TSlot :21  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00400000  
kernel: wanpipe1: First TSlot :22  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x00800000  
kernel: wanpipe1: First TSlot :23  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x01000000  
kernel: wanpipe1: First TSlot :24  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x02000000  
kernel: wanpipe1: First TSlot :25  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x04000000  
kernel: wanpipe1: First TSlot :26  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x08000000  
kernel: wanpipe1: First TSlot :27  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x10000000  
kernel: wanpipe1: First TSlot :28  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x20000000  
kernel: wanpipe1: First TSlot :29  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Active Ch Map :0x40000000  
kernel: wanpipe1: First TSlot :30  
kernel:  
kernel: wanpipe1: Configuring Interface: w1g1 (log supress)  
kernel: wanpipe1: Configuring TDMV Master dev w1g1  
kernel: wanpipe1: Active Ch Map :0x80000000  
kernel: wanpipe1: First TSlot :31  
kernel:  
kernel: wanpipe1: Wanpipe device is registered to Zaptel span # 1!  
kernel: wanpipe1: TDM Free Run Timing Enabled 1 ms  
‘dahdi\_handle\_device’[3392]: add: /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/0000:04:00.0/wanpipe1/wanpipe\_devices:wanpipe1  
‘dahdi\_handle\_device’[3398]: auto\_assign\_spans=1. Skip /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/0000:04:00.0/wanpipe1/wanpipe\_devices:wanpipe1  
‘dahdi\_span\_config’[3414]: add: /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/0000:04:00.0/wanpipe1/wanpipe\_devices:wanpipe1/span-1  
kernel: ADDRCONF(NETDEV\_UP): w1g1: link is not ready  
‘dahdi\_span\_config’[3419]: auto\_assign\_spans=1. Skip /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/0000:04:00.0/wanpipe1/wanpipe\_devices:wanpipe1/span-1  
kernel: dahdi\_transcode: Loaded.  
kernel: INFO-xpp: revision Unknown MAX\_XPDS=64 (8\*8)  
kernel: INFO-xpp: FEATURE: with PROTOCOL\_DEBUG  
kernel: INFO-xpp: FEATURE: with sync\_tick() from DAHDI  
kernel: INFO-xpp\_usb: revision Unknown  
kernel: usbcore: registered new interface driver xpp\_usb  
kernel: dahdi\_devices wanpipe\_devices:wanpipe1: local span 1 is already assigned span 1  
kernel: wanpipe1: DAHDI Configuring device [name=, span=1, sync=1, lcfg=0x200,]  
kernel: wanpipe1: Wanpipe front end skipped, no changes in config  
kernel: wanpipe1: RAI : ON  
kernel: wanpipe1: Open Circuit is detected!  
kernel: wanpipe1: Enable signalling mode for all channels!  
kernel: dahdi\_echocan\_mg2: Registered echo canceler ‘MG2’  
kernel: wanpipe1: DAHDI Configuring device [name=, span=1, sync=1, lcfg=0x200,]  
kernel: wanpipe1: Wanpipe front end skipped, no changes in config  
kernel: wanpipe1: E1 disconnected!  
kernel: wanpipe1: Enable transmit YEL alarm  
kernel: wanpipe1: Enable E1 CAS Signalling mode!  
kernel: wanpipe1: E1 CAS NCRC4 updated config 76  
kernel: wanpipe1: LOF : OFF  
kernel: wanpipe1: RED : OFF  
ntpd[1639]: 0.0.0.0 c612 02 freq\_set kernel -28.988 PPM  
ntpd[1639]: 0.0.0.0 c615 05 clock\_sync

End of WANPIPE /var/log/messages

![wanpipemon](https://sea1.discourse-cdn.com/asterisk/uploads/default/original/2X/2/282fbfe7aedfd043dde388e3afb22763e5126e19.jpg)

 ![dahdi_tool](https://sea1.discourse-cdn.com/asterisk/uploads/default/original/2X/c/c9b9e20ada97aa5b0540a1ffbd09e5e84112f0b6.jpg) ![mfcr2 show channels](https://sea1.discourse-cdn.com/asterisk/uploads/default/original/2X/5/528e558f39617bf5bfac1b3c75bdf932fb65fdce.jpg)

---

<div class="post-metadata">

**Author:** ![malcolmd](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/malcolmd/32/5_2.png) [@malcolmd](https://community.asterisk.org/u/malcolmd)\
**Post date:** [August 1, 2017, 1:45pm UTC](https://community.asterisk.org/t/sangoma-a101-config-e1-mfcr2/71544/2 "2017-08-01T13:45:13Z")

</div>

You probably want to direct your request to the Sangoma folks directly. Hardware help is generally done directly by the vendor.
