FreePBX 15 Asterisk 16 Sangoma A104 SS7 Connection Problem

dahdi
configuration
freepbx
asterisk
Tags: #<Tag:0x00007f7028a29d70> #<Tag:0x00007f7028a29b90> #<Tag:0x00007f7028a299d8> #<Tag:0x00007f7028a29848>

(Geoff) #1

hi all,

i’ve been try to troubleshoot the problem with my freepbx 15 server (latest) in getting a solid link with ISUP via SS7.

Please could anyone give me pointers on how to resolve the issue i am facing? Thanks in advance.

Setup
HP ML380G5 Server
Sangoma A104 PRI E1 card
FreePBX 15
Asterisk 16
Dahdi (exist from distro)
Wanrouter (exist from distro)
LibSS7 (exist from distro)

system.conf
span=1,1,0,CCS,hdb3
span=2,2,0,CCS,hdb3
span=3,3,0,CCS,hdb3
span=4,4,0,CCS,hdb3
bchan=1-15,17-31,32-46,48-62,63-77,79-93,94-108,110-124
hardhdlc=16,47,78,109

chan-dahdi.conf
;autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
;autogenrated on 2020-08-13
;Dahdi Channels Configurations
;For detailed Dahdi options, view /etc/asterisk/chan_dahdi.conf.bak

[trunkgroups]

[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no

context=from-pstn
group=0
echocancel=no
;faxdetect=incoming

signaling=ss7 ;this is ss7 signaling
ss7type=itu ;using the ITU variant
defaultdpc=6000 ;the point code for the system that the CICs will be negotiated with…aka DPC
adjpointcode=6000 ;the point code for the system that we are signaling to… aka APC
pointcode=6021 ;the point code for this system…aka SPC
networkindicator=national ;NI value for MTP3
linkset=1 ;arbitrary name for this set of channels
ss7_called_nai=dynamic ;NAI for outgoing calls
ss7_calling_nai=dynamic ;NAI for incoming calls
ss7_internationalprefix=00 ;international prefix value for incoming calls
ss7_nationalprefix=33 ;national prefix value for incoming calls
ss7_subscriberprefix=3364 ;subscriber prefix value for incoming calls
ss7_unknownprefix= ;unknown prefix value for incoming calls
;ss7_explictacm=yes ;ACM is send as soon as call enters the dial plan…may not accepted yet though
ss7_autoacm=yes
;isup_timer.digittimeout=5000

sigchan=16
sigchan=47
sigchan=78
sigchan=109
cicbeginswith=1 ;the starting value of the CICs
channel=1-15 ;the channels that are CICs
cicbeginswith=17 ;the starting value of the CICs
channel=17-31 ;the channels that are CICs
;sigchan=16

cicbeginswith=32 ;the starting value of the CICs
channel=32-46 ;the channels that are CICs
cicbeginswith=48 ;the starting value of the CICs
channel=48-62 ;the channels that are CICs
;sigchan=47

cicbeginswith=63 ;the starting value of the CICs
channel=63-77 ;the channels that are CICs
cicbeginswith=79 ;the starting value of the CICs
channel=79-93 ;the channels that are CICs
;sigchan=78

cicbeginswith=94 ;the starting value of the CICs
channel=94-108 ;the channels that are CICs
cicbeginswith=110 ;the starting value of the CICs
channel=110-124 ;the channels that are CICs
;sigchan=109

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 = 4
PCIBUS = 24
FE_MEDIA = E1
FE_LCODE = HDB3
FE_FRAME = CRC4
FE_LINE = 1
TE_CLOCK = NORMAL
TE_REF_CLOCK = 0
TE_HIGHIMPEDANCE = NO
TE_RX_SLEVEL = 430
LBO = 120OH
TE_SIG_MODE = CCS
FE_TXTRISTATE = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN = 1
TDMV_DCHAN = 0
TDMV_HW_DTMF = NO

[w1g1]
ACTIVE_CH = ALL
TDMV_ECHO_OFF = NO
TDMV_HWEC = NO

wanpipe2.conf
[devices]
wanpipe2 = WAN_AFT_TE1, Comment

[interfaces]
w2g1 = wanpipe2, , TDM_VOICE, Comment

[wanpipe2]
CARD_TYPE = AFT
S514CPU = A
CommPort = PRI
AUTO_PCISLOT = NO
PCISLOT = 4
PCIBUS = 24
FE_MEDIA = E1
FE_LCODE = HDB3
FE_FRAME = CRC4
FE_LINE = 2
TE_CLOCK = NORMAL
TE_REF_CLOCK = 0
TE_HIGHIMPEDANCE = NO
TE_RX_SLEVEL = 430
LBO = 120OH
TE_SIG_MODE = CCS
FE_TXTRISTATE = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN = 2
TDMV_DCHAN = 0
TDMV_HW_DTMF = NO

[w2g1]
ACTIVE_CH = ALL
TDMV_ECHO_OFF = NO
TDMV_HWEC = NO

wanpipe3.conf
[devices]
wanpipe3 = WAN_AFT_TE1, Comment

[interfaces]
w3g1 = wanpipe3, , TDM_VOICE, Comment

[wanpipe3]
CARD_TYPE = AFT
S514CPU = A
CommPort = PRI
AUTO_PCISLOT = NO
PCISLOT = 4
PCIBUS = 24
FE_MEDIA = E1
FE_LCODE = HDB3
FE_FRAME = CRC4
FE_LINE = 3
TE_CLOCK = NORMAL
TE_REF_CLOCK = 0
TE_HIGHIMPEDANCE = NO
TE_RX_SLEVEL = 300
LBO = 120OH
TE_SIG_MODE = CCS
FE_TXTRISTATE = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN = 3
TDMV_DCHAN = 0
TDMV_HW_DTMF = NO

[w3g1]
ACTIVE_CH = ALL
TDMV_ECHO_OFF = NO
TDMV_HWEC = NO

wanpipe4.conf
[devices]
wanpipe4 = WAN_AFT_TE1, Comment

[interfaces]
w4g1 = wanpipe4, , TDM_VOICE, Comment

[wanpipe4]
CARD_TYPE = AFT
S514CPU = A
CommPort = PRI
AUTO_PCISLOT = NO
PCISLOT = 4
PCIBUS = 24
FE_MEDIA = E1
FE_LCODE = HDB3
FE_FRAME = CRC4
FE_LINE = 4
TE_CLOCK = NORMAL
TE_REF_CLOCK = 0
TE_HIGHIMPEDANCE = NO
TE_RX_SLEVEL = 430
LBO = 120OH
TE_SIG_MODE = CCS
FE_TXTRISTATE = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN = 4
TDMV_DCHAN = 0
TDMV_HW_DTMF = NO

[w4g1]
ACTIVE_CH = ALL
TDMV_ECHO_OFF = NO
TDMV_HWEC = NO

wanrouter status
Devices currently active:
wanpipe1 wanpipe2 wanpipe3 wanpipe4

Wanpipe Config:

Device name | Protocol Map | Adapter | IRQ | Slot/IO | If’s | CLK | Baud rate |
wanpipe4 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 19 | 4 | 1 | N/A | 0 |
wanpipe3 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 19 | 4 | 1 | N/A | 0 |
wanpipe2 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 19 | 4 | 1 | N/A | 0 |
wanpipe1 | N/A | A101/1D/2/2D/4/4D/8/8D/16/16D| 19 | 4 | 1 | N/A | 0 |

Wanrouter Status:

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

service dahdi status

Span 1: WPE1/0 “wanpipe1 card 0” CCS/HDB3

1 PRI Clear
2 PRI Clear
3 PRI Clear
4 PRI Clear
5 PRI Clear
6 PRI Clear
7 PRI Clear
8 PRI Clear
9 PRI Clear
10 PRI Clear
11 PRI Clear
12 PRI Clear
13 PRI Clear
14 PRI Clear
15 PRI Clear
16 PRI Hardware-assisted HDLC
17 PRI Clear
18 PRI Clear
19 PRI Clear
20 PRI Clear
21 PRI Clear
22 PRI Clear
23 PRI Clear
24 PRI Clear
25 PRI Clear
26 PRI Clear
27 PRI Clear
28 PRI Clear
29 PRI Clear
30 PRI Clear
31 PRI Clear

Span 2: WPE1/1 “wanpipe2 card 1” (MASTER) CCS/HDB3

32 PRI Clear
33 PRI Clear
34 PRI Clear
35 PRI Clear
36 PRI Clear
37 PRI Clear
38 PRI Clear
39 PRI Clear
40 PRI Clear
41 PRI Clear
42 PRI Clear
43 PRI Clear
44 PRI Clear
45 PRI Clear
46 PRI Clear
47 PRI Hardware-assisted HDLC
48 PRI Clear
49 PRI Clear
50 PRI Clear
51 PRI Clear
52 PRI Clear
53 PRI Clear
54 PRI Clear
55 PRI Clear
56 PRI Clear
57 PRI Clear
58 PRI Clear
59 PRI Clear
60 PRI Clear
61 PRI Clear
62 PRI Clear

Span 3: WPE1/2 “wanpipe3 card 2” CCS/HDB3 RED

63 PRI Clear
64 PRI Clear
65 PRI Clear
66 PRI Clear
67 PRI Clear
68 PRI Clear
69 PRI Clear
70 PRI Clear
71 PRI Clear
72 PRI Clear
73 PRI Clear
74 PRI Clear
75 PRI Clear
76 PRI Clear
77 PRI Clear
78 PRI Hardware-assisted HDLC RED
79 PRI Clear
80 PRI Clear
81 PRI Clear
82 PRI Clear
83 PRI Clear
84 PRI Clear
85 PRI Clear
86 PRI Clear
87 PRI Clear
88 PRI Clear
89 PRI Clear
90 PRI Clear
91 PRI Clear
92 PRI Clear
93 PRI Clear

Span 4: WPE1/3 “wanpipe4 card 3” CCS/HDB3 RED

94 PRI Clear
95 PRI Clear
96 PRI Clear
97 PRI Clear
98 PRI Clear
99 PRI Clear
100 PRI Clear
101 PRI Clear
102 PRI Clear
103 PRI Clear
104 PRI Clear
105 PRI Clear
106 PRI Clear
107 PRI Clear
108 PRI Clear
109 PRI Hardware-assisted HDLC RED
110 PRI Clear
111 PRI Clear
112 PRI Clear
113 PRI Clear
114 PRI Clear
115 PRI Clear
116 PRI Clear
117 PRI Clear
118 PRI Clear
119 PRI Clear
120 PRI Clear
121 PRI Clear
122 PRI Clear
123 PRI Clear
124 PRI Clear

dahdi show status
Description Alarms IRQ bpviol CRC Fra Codi Options LBO
wanpipe1 card 0 OK 0 0 0 CCS HDB3 0 db (CSU)/0-133 feet (DSX-1)
wanpipe2 card 1 OK 0 0 0 CCS HDB3 0 db (CSU)/0-133 feet (DSX-1)
wanpipe3 card 2 OK 0 0 0 CCS HDB3 0 db (CSU)/0-133 feet (DSX-1)
wanpipe4 card 3 OK 0 0 0 CCS HDB3 0 db (CSU)/0-133 feet (DSX-1)

ss7 show linkset 1
SS7 flags: 0x10
SS7 linkset 1 status: Down
SS7 calling nai: -1
SS7 called nai: -1
SS7 nationalprefix: 33
SS7 internationalprefix: 00
SS7 unknownprefix:
SS7 networkroutedprefix:
SS7 subscriberprefix: 3364
Switch type: ITU
Our point code: 6021
SLS shift: 0
numlinks: 4
numsps: 1

Adjacent SP PC: 6000 STATE: DOWN
TRA: T19: not running T21: not running
Routes:
DPC State T6 T10
Link ADJ_PC:SLC: 6000:0 NetMngSLS: 0
State: NOTALIGNED, ALIGNING
STD Test: failed
Got, sent :
Inhibit:
Changeover: NO
Tx buffer: 0
Tx queue: 0
Retrans pos 0
CO buffer: 0
CB buffer: 0
Last FSN: 127
MTP3timers:
Link ADJ_PC:SLC: 6000:1 NetMngSLS: 1
State: NOTALIGNED, ALIGNING
STD Test: failed
Got, sent :
Inhibit:
Changeover: NO
Tx buffer: 0
Tx queue: 0
Retrans pos 0
CO buffer: 0
CB buffer: 0
Last FSN: 127
MTP3timers:
Link ADJ_PC:SLC: 6000:2 NetMngSLS: 2
State: ALARM, INALARM
STD Test: failed
Got, sent :
Inhibit:
Changeover: NO
Tx buffer: 0
Tx queue: 0
Retrans pos 0
CO buffer: 0
CB buffer: 0
Last FSN: 127
MTP3timers:
Link ADJ_PC:SLC: 6000:3 NetMngSLS: 3
State: ALARM, INALARM
STD Test: failed
Got, sent :
Inhibit:
Changeover: NO
Tx buffer: 0
Tx queue: 0
Retrans pos 0
CO buffer: 0
CB buffer: 0
Last FSN: 127
MTP3timers:


(Geoff) #2

I solved my problem. The issue is hardhdlc. I have to change it to mtp2 for this particular SS7 link. What is puzzling is I have another server with two Sangoma A101 cards and the setting on hardhdlc without problems. I find the cards very inconsistent.

system.conf
span=1,1,0,CCS,hdb3
span=2,2,0,CCS,hdb3
span=3,3,0,CCS,hdb3
span=4,4,0,CCS,hdb3
bchan=1-15,17-31,32-46,48-62,63-77,79-93,94-108,110-124
mtp2=16,47,78,109


(system) closed #3

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.