How to configure jss7 + dahdi + wanpipe + Sangoma card?

349 views
Skip to first unread message

sverker

unread,
Sep 5, 2016, 6:30:19 AM9/5/16
to mobicents-public
Hi
I'm trying to run jss7 with a A104e Sangoma card, which currently is connected with crossover between port 1 and 2. Port 2 is master clock

However, no matter what combination of settings I try the channels don't allign but keep switching between OUT_OF_SERVICE and NOT_ALIGNED.

My linksetmanager.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<dahdilinkset name="Linkset0" state="1" mode="2" opc="12112" apc="15881" ni="2" links="1">
       <link type="dahdilink" name="Link0" state="1" mode="2" span="1" channelId="16" code="0" iOBufferSize="32"/>
</dahdilinkset>
<dahdilinkset name="Linkset0r" state="1" mode="2" opc="15881" apc="12112" ni="2" links="1">
       <link type="dahdilink" name="Link0r" state="1" mode="2" span="2" channelId="16" code="0" iOBufferSize="32"/>
</dahdilinkset>

My dahdi system.conf:
loadzone=us
defaultzone=us

#Sangoma A104 port 1 [slot:4 bus:4 span:1] <wanpipe1>
span=1,1,0,ccs,hdb3,crc4
bchan=1-31

#Sangoma A104 port 2 [slot:4 bus:4 span:2] <wanpipe2>
span=2,2,0,ccs,hdb3,crc4
bchan=32-62

(I have tested also with setting dchan, hardhdlc or mtp2 on channel 16 and 47 and excluding them from bchan range but no difference)

My 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          = 4
FE_MEDIA        = E1
FE_LCODE        = HDB3
FE_FRAME        = CRC4
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
TDMV_DCHAN              = 0
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

/etc/wanpipe/wanpipe2.conf is similar but have 
TE_CLOCK=MASTER, the only thing I've changed in these files are TDMV_DCHAN setting (tried with both 0 and 16).

I can see that the right channels are opened with service dahdi status:
### Span  1: WPE1/0 "wanpipe1 card 0" CCS/HDB3/CRC4
  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        Clear       (In use)
 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/CRC4
 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        Clear       (In use)
 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


If I try with ss7linktest from libss7 then the channels are established immediately so hardware and cabling is ok, for that I need to set channel 16 and 47 as dchan and exclude them from bchan range. I have also tried to run with restcomm-ss7-service on one span and ss7linktest on the other but they wouldn't align.

I have searched this forum and wikis but don't find anything that gives a clue on how to resolve the problem, the only example I've found was in this mail thread http://marc.info/?l=asterisk-ss7&m=134907577030079&w=2

Anyone that can show a working example?

sverker

unread,
Sep 5, 2016, 4:55:20 PM9/5/16
to mobicents-public
After trying every combination I could come up with I tested to run SGW instead of the ss7 service under jboss and then the links were estabished just fine, with the same content in linksetmanager.xml. I.e. my wanpipe and dahdi config must be right, but something in the ss7 service is not.

serj...@gmail.com

unread,
Feb 28, 2018, 10:32:10 AM2/28/18
to mobicents-public
Hi
I'm trying to use Digium TE131F card and got the same result when restcomm-ss7-service start:
15:38:08,579 INFO [link1-0] State changed in link. OUT_OF_SERVICE --> NOT_ALIGNED
However, SGW succesful started just as yours.
Reply all
Reply to author
Forward
0 new messages