PRI connection issue (B601 card)

Hello Guys,

I am having problem with E1 connection.

My setup : freepbx 2.11.011 (asterisk 1.8) with Sangoma B601 card. Enabled dadhi on web panel and setup card using setup-sangoma.

Wanrouter status
Device name | Protocol Map | Adapter | IRQ | Slot/IO | If’s | CLK | Baud rate |
wanpipe2 | N/A | A200/A400/B600/B700/B800/B610| 17 | 4 | 1 | N/A | 0 |
wanpipe1 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 17 | 4 | 1 | N/A | 0 |

Wanrouter Status:

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

Wanpipe show connected but when i logon to asterisk i am getting below error.

pri set debug on span 1
Enabled debugging on span 1
PRI Span: 1 TEI=0 Got SABME from network peer.
PRI Span: 1 TEI=0 Sending UA
PRI Span: 1 TEI=0 MDL-ERROR (F): SABME in state 7(Multi-frame established)
PRI Span: 1 TEI=0 Got SABME from network peer.
PRI Span: 1 TEI=0 Sending UA
PRI Span: 1 TEI=0 MDL-ERROR (F): SABME in state 7(Multi-frame established)
PRI Span: 1 TEI=0 Got SABME from network peer.
PRI Span: 1 TEI=0 Sending UA
PRI Span: 1 TEI=0 MDL-ERROR (F): SABME in state 7(Multi-frame established)
PRI Span: 1 TEI=0 Got SABME from network peer.
PRI Span: 1 TEI=0 Sending UA
PRI Span: 1 TEI=0 MDL-ERROR (F): SABME in state 7(Multi-frame established)
PRI Span: 1 TEI=0 Got SABME from network peer.
PRI Span: 1 TEI=0 Sending UA
PRI Span: 1 TEI=0 MDL-ERROR (F): SABME in state 7(Multi-frame established)
PRI Span: 1 TEI=0 Got SABME from network peer.
PRI Span: 1 TEI=0 Sending UA
PRI Span: 1 TEI=0 MDL-ERROR (F): SABME in state 7(Multi-frame established)
PRI Span: 1 TEI=0 Got SABME from network peer.
PRI Span: 1 TEI=0 Sending UA
PRI Span: 1 TEI=0 MDL-ERROR (F): SABME in state 7(Multi-frame established)
PRI Span: 1 TEI=0 Got SABME from network peer.
PRI Span: 1 TEI=0 Sending UA
PRI Span: 1 TEI=0 MDL-ERROR (F): SABME in state 7(Multi-frame established)
PRI Span: 1 TEI=0 Got SABME from network peer.
PRI Span: 1 TEI=0 Sending UA
PRI Span: 1 TEI=0 MDL-ERROR (F): SABME in state 7(Multi-frame established)

/etc/dahdi/system.conf

system.conf
span=1,1,0,CCS,HDB3,CRC4
bchan=1-15,17-31
dchan=16
fxsks=32-35
fxoks=36
loadzone=nz
defaultzone=nz

/ete/asterisk/dahdi-channels.conf

; Span 1: WPE1/0 “wanpipe1 card 0” YELLOW RED
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31
context = default
group = 63

; Span 2: WRTDM/0 “wrtdm Board 1” (MASTER)
;;; line="32 WRTDM/0/0"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 32
callerid=
group=
context=default

;;; line="33 WRTDM/0/1"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 33
callerid=
group=
context=default

;;; line="34 WRTDM/0/2"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 34
callerid=
group=
context=default

;;; line="35 WRTDM/0/3"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 35
callerid=
group=
context=default

;;; line="36 WRTDM/0/4"
signalling=fxo_ks
callerid=“Channel 36” <4036>
mailbox=4036
group=5
context=from-internal
channel => 36
callerid=
mailbox=
group=
context=default

/etc/wanpipe/wanpipe.1

[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 = CRC4
FE_LINE = 2
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 = YES
MTU = 8

Telco is telling me that every thing is fine on their end and there is an issue with my setup.
Please help i cant figured out how to fix this issue. I have tried re configuring card but no luck.

Brian

I got E1 working now. I visit below web link.

http://www.freepbx.org/forum/distro-discussion-help/sangoma-a101d-pri-dchan-not-working

Made change in /etc/dahdi/system.conf

From dchan=16 to hardhdlc=16

Reboot the server and E1 is connected now and no more sabme errors.