Ibss7: 2 linksets up but 1 SLC fails on 2nd linkset

Hi everyone,

We are using libss7 2.0.0 with Asterisk 13.1-cert2
We have following configuration from switch side:

Our SPC used from (MSS and MGW) side is >>>>>> 1186

STR-CIC      END-CIC      SLC-CIC      SLC       MGW-SPC        MSS-SPC
 0             31            16         0         1110           1107
 32            63            48         1         1110           1107
 0             31            16         0         2593           1559
 32            63            48         1         2593           1559

2 linksets configured with 2 E1s and 2 SLCs each.
Both linksets are UP but no matter how we change chan_dahdi.conf, 2nd SLC on 2nd linkset fails on STD test and shows in Alarm state.
We are getting following errors:
sig_ss7.c:494 ss7_find_cic_gripe: Linkset 2: SS7 CGB requested on unconfigured CIC/DPC 48/1559.
sig_ss7.c:494 ss7_find_cic_gripe: Linkset 2: SS7 RSC requested on unconfigured CIC/DPC 16/1559.
sig_ss7.c:494 ss7_find_cic_gripe: Linkset 1: SS7 RSC requested on unconfigured CIC/DPC 48/1107.
sig_ss7.c:494 ss7_find_cic_gripe: Linkset 1: SS7 RSC requested on unconfigured CIC/DPC 16/1107.

ss7 show linkset 2
SS7 flags: 0x0
SS7 linkset 2 status: Up
SS7 calling nai: 1
SS7 called nai: 1
SS7 nationalprefix: 0
SS7 internationalprefix: 00
SS7 unknownprefix:
SS7 networkroutedprefix:
SS7 subscriberprefix:
Switch type: ITU
Our point code: 1186
SLS shift: 0
numlinks: 2
numsps: 1

--------------------------------
Adjacent SP PC: 2593 STATE: UP
TRA:  GOT SENT    T19: not running T21: not running
Routes:
  DPC       State        T6       T10
1168          TFP         -         -
Link ADJ_PC:SLC: 2593:0 NetMngSLS: 0
  State:      INSERVICE,  UP
  STD Test:  passed
  Got, sent :
  Inhibit:           
  Changeover: NO
  Tx buffer:  0
  Tx queue:   0
  Retrans pos 0
  CO buffer:  0
  CB buffer:  0
  Last FSN:   44
  MTP3timers:
Link ADJ_PC:SLC: 2593:1 NetMngSLS: 1
  State:      ALARM,  INALARM
  STD Test:  failed
  Got, sent :
  Inhibit:           
  Changeover: COMPLETED
  Tx buffer:  0
  Tx queue:   0
  Retrans pos 0
  CO buffer:  0
  CB buffer:  0
  Last FSN:   127
  MTP3timers: 

cat /etc/asterisk/chan_dahdi.conf
[trunkgroups]
[channels]

language=en
context=from-pstn
usecallerid=yes
hidecallerid=no
callwaiting=yes
;usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes

cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0

;group=0
callgroup=1
pickupgroup=1
immediate=no
callprogress=yes
busydetect=yes

signalling=ss7
ss7_called_nai=subscriber
ss7_calling_nai=subscriber
networkindicator=national
ss7type=itu
linkset=1
pointcode= 1186
adjpointcode= 1110
defaultdpc= 1107
ss7_internationalprefix=00
ss7_nationalprefix=0
;switchtype=euroisdn

group=0

isup_timer.digittimeout = 6000

cicbeginswith=1
channel=1-15
cicbeginswith=17
channel=17-31
adjpointcode= 1110
slc=0
sigchan=16
;#include ss7.timers

linkset=1
signalling=ss7
ss7_called_nai=subscriber
ss7_calling_nai=subscriber
networkindicator=national
ss7type=itu
pointcode= 1186
adjpointcode= 1110
defaultdpc= 1107
ss7_internationalprefix=00
ss7_nationalprefix=0
;switchtype=euroisdn

group=1

isup_timer.digittimeout = 6000

cicbeginswith=33
channel=32-46
cicbeginswith=49
channel=48-62
adjpointcode= 1110
slc=1
sigchan=47
;#include ss7.timers

linkset=2
signalling=ss7
ss7_called_nai=subscriber
ss7_calling_nai=subscriber
networkindicator=national
ss7type=itu
pointcode= 1186
adjpointcode= 2593
defaultdpc= 1559
ss7_internationalprefix=00
ss7_nationalprefix=0
;switchtype=euroisdn

group=2

isup_timer.digittimeout = 6000

cicbeginswith=1
channel=63-77
cicbeginswith=17
channel=79-93
adjpointcode= 2593
slc=0
sigchan=78

;#include ss7.timers

linkset=2
signalling=ss7
ss7_called_nai=subscriber
ss7_calling_nai=subscriber
networkindicator=national
ss7type=itu
pointcode= 1186
adjpointcode= 2593
defaultdpc= 1559
ss7_internationalprefix=00
ss7_nationalprefix=0
;switchtype=euroisdn

group=3

isup_timer.digittimeout = 6000

cicbeginswith=33
channel=94-108
cicbeginswith=49
channel=110-124

adjpointcode= 2593
slc=1
sigchan=109

;#include ss7.timers

cat /etc/dahdi/system.conf
#autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
#autogenrated on 2015-10-28
#Dahdi Channels Configurations
#For detailed Dahdi options, view /etc/dahdi/system.conf.bak
loadzone=us
defaultzone=us

#Sangoma A104 port 1 [slot:4 bus:9 span:1]
span=1,1,0,ccs,hdb3
bchan=1-15,17-31
mtp2=16

#Sangoma A104 port 2 [slot:4 bus:9 span:2]
span=2,1,0,ccs,hdb3
bchan=32-46,48-62
mtp2=47

#Sangoma A104 port 3 [slot:4 bus:9 span:3]
span=3,1,0,ccs,hdb3
bchan=63-77,79-93
mtp2=78

#Sangoma A104 port 4 [slot:4 bus:9 span:4]
span=4,1,0,ccs,hdb3
bchan=94-108,110-124
mtp2=109

libss7 is a third party piece of software. It is often associated with wanpipe, which is maintained by Sangoma.

Problems with ISDN hardware should be addressed to the vendor’s commercial support services. It appears that that is Sangoma, in this case.