[asterisk-ss7] New to Asterisk & Libss7

Muhammad Kamran Farooq farooq at rockvillegroup.com
Tue Apr 29 03:30:55 CDT 2014


Dear all,
        I need your help as i am trying to configure Asterisk with
Libss7 over Sangoma A116 cards. My linkset 1 is UP with the MSC. When i
dialout the call i get mutting but i check with operator CIC are same.
My config is as follows:

asterisk/chan_dahdi.conf: 
;autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
;autogenrated on 2014-04-22
;Dahdi Channels Configurations 
;For detailed Dahdi options, view /etc/asterisk/chan_dahdi.conf.bak

[trunkgroups]

[channels]
context=default
usecallerid=yes
group=1

; SS7 Config

signalling= ss7
ss7type=itu
ss7_called_nai= national
;ss7_called_nai = international
ss7_internationalprefix= 00
ss7_nationalprefix= 0
ss7_subscriberprefix= 0310
;ss7_unknownprefix=0
networkindicator=national
ss7_explictacm=yes 
ss7_calling_nai= national

linkset= 1

pointcode= 5100
adjpointcode= 5618
defaultdpc= 5618

;Sangoma A116 port 1 [slot:4 bus:20 span:1] <wanpipe1>
cicbeginswith=> 1
channel=>1-15,17-31
sigchan=> 16
sls=>0

;Sangoma A116 port 2 [slot:4 bus:20 span:2] <wanpipe2>
cicbeginswith = 33
channel=>32-63

;Sangoma A116 port 3 [slot:4 bus:20 span:3] <wanpipe3>
cicbeginswith = 65
channel =>64-93

;Sangoma A116 port 4 [slot:4 bus:20 span:4] <wanpipe4>
cicbeginswith = 97
channel =>94-124

;Sangoma A116 port 5 [slot:4 bus:20 span:5] <wanpipe5>
;cicbeginswith = 129
channel =>125-155

;Sangoma A116 port 6 [slot:4 bus:20 span:6] <wanpipe6>
;cicbeginswith = 161
channel =>156-170,172-186
sigchan=> 171
sls=>1

;Sangoma A116 port 7 [slot:4 bus:20 span:7] <wanpipe7>
;cicbeginswith = 193
channel =>187-217

;Sangoma A116 port 8 [slot:4 bus:20 span:8] <wanpipe8>
;cicbeginswith = 225
channel =>218-248

;Sangoma A116 port 1 [slot:5 bus:20 span:9] <wanpipe9>
;cicbeginswith = 257
channel =>249-279

;Sangoma A116 port 2 [slot:5 bus:20 span:10] <wanpipe10>
;cicbeginswith = 289
channel =>280-310

;Sangoma A116 port 3 [slot:5 bus:20 span:11] <wanpipe11>
;cicbeginswith = 321
channel =>311-341

;Sangoma A116 port 4 [slot:5 bus:20 span:12] <wanpipe12>
channel =>342-372

;Sangoma A116 port 5 [slot:5 bus:20 span:13] <wanpipe13>
;cicbeginswith = 385
channel =>373-403

;Sangoma A116 port 6 [slot:5 bus:20 span:14] <wanpipe14>
;cicbeginswith = 417
channel =>404-434

;Sangoma A116 port 7 [slot:5 bus:20 span:15] <wanpipe15>
;cicbeginswith = 449
channel =>435-465

;Sangoma A116 port 8 [slot:5 bus:20 span:16] <wanpipe16>
;cicbeginswith = 481
channel =>466-496


Outbound Call trace:

    -- Executing [0000000000 at obd_example:1]
Set("Local/0000000000 at obd_example-6746;2", "elen=10") in new stack
    -- Executing [0000000000 at obd_example:2]
Set("Local/0000000000 at obd_example-6746;2", "gsm=0000000000") in new
stack
    -- Executing [0000000000 at obd_example:3]
Set("Local/0000000000 at obd_example-6746;2", "CALLERID(number)=310") in
new stack
    -- Executing [0000000000 at obd_example:4]
NoOp("Local/0000000000 at obd_example-6746;2", "") in new stack
    -- Executing [0000000000 at obd_example:5]
GotoIf("Local/0000000000 at obd_example-6746;2", "0?0000000000,9") in new
stack
    -- Executing [0000000000 at obd_example:6]
NoOp("Local/0000000000 at obd_example-6746;2", "0000000000") in new stack
    -- Executing [0000000000 at obd_example:7]
Dial("Local/0000000000 at obd_example-6746;2", "DAHDI/g1/0000000000") in
new stack
    -- Called g1/0000000000
Len = 34 [ 9e b3 1f 85 f2 15 fb 14 01 00 01 00 60 01 0a 00 02 0a 08 83
10 33 54 83 46 56 0f 0a 04 83 11 13 00 00 ]
FSN: 51 FIB 1
BSN: 30 BIB 1
>[1] MSU
[ 9e b3 1f ]
Network Indicator: 2 Priority: 0 User Part: ISUP (5)
[ 85 ]
OPC 5100 DPC 5618 SLS 1
[ f2 15 fb 14 ]
CIC: 1
[ 01 00 ]
Message Type: IAM
[ 01 ]
--FIXED LENGTH PARMS[4]--
Nature of Connection Indicator:
Satellites in connection: 0
Continuity Check: Check not required (0)
Outgoing half echo control device: not included (0)
[ 00 ]
Forward Call Indicators:
Nat/Intl Call Ind: call to be treated as a national call (0)
End to End Method Ind: no end-to-end method(s) available (0)
Interworking Ind: no interworking encountered (0)
End to End Info Ind: no end-to-end information available (0)
ISDN User Part Ind: ISDN user part used all the way (1)
ISDN User Part Pref Ind: ISDN user part not preferred all the way (1)
ISDN Access Ind: originating access ISDN (1)
SCCP Method Ind: no indication (0)
[ 60 01 ]
Calling Party's Category:
Category: Ordinary calling subscriber (10)
[ 0a ]
Transmission Medium Requirements:
Speech (0)
[ 00 ]
--VARIABLE LENGTH PARMS[1]--
Called Party Number:
Nature of address: 3
NI: 0
Numbering plan: 1
Address signals: 0000000000#
[ 08 83 10 33 54 83 46 56 0f ]
--OPTIONAL PARMS--
Calling Party Number:
Nature of address: 3
NI: 0
Numbering plan: 1
Presentation: 0
Screening: 1
Address signals: 310
[ 0a 04 83 11 13 00 ]

Len = 16 [ 20 a5 0d 81 ec d3 7c 05 11 60 aa aa aa aa aa aa ]
FSN: 37 FIB 1
BSN: 32 BIB 0
<[0] MSU
[ 20 a5 0d ]
Network Indicator: 2 Priority: 0 User Part: STD_TEST (1)
[ 81 ]
OPC 5619 DPC 5100 SLS 0
[ ec d3 7c 05 ]
H0: 1 H1: 1
[ 11 ]

Len = 16 [ a5 21 0d 81 f3 15 fb 04 21 60 aa aa aa aa aa aa ]
FSN: 33 FIB 0
BSN: 37 BIB 1
>[0] MSU
[ a5 21 0d ]
Network Indicator: 2 Priority: 0 User Part: STD_TEST (1)
[ 81 ]
OPC 5100 DPC 5619 SLS 0
[ f3 15 fb 04 ]
H0: 1 H1: 2
[ 21 ]

Len = 16 [ b3 9f 0d 81 ec d3 7c 15 11 60 aa aa aa aa aa aa ]
FSN: 31 FIB 1
BSN: 51 BIB 1
<[1] MSU
[ b3 9f 0d ]
Network Indicator: 2 Priority: 0 User Part: STD_TEST (1)
[ 81 ]
OPC 5619 DPC 5100 SLS 1
[ ec d3 7c 15 ]
H0: 1 H1: 1
[ 11 ]

Len = 16 [ 9f b4 0d 81 f3 15 fb 14 21 60 aa aa aa aa aa aa ]
FSN: 52 FIB 1
BSN: 31 BIB 1
>[1] MSU
[ 9f b4 0d ]
Network Indicator: 2 Priority: 0 User Part: STD_TEST (1)
[ 81 ]
OPC 5100 DPC 5619 SLS 1
[ f3 15 fb 14 ]
H0: 1 H1: 2
[ 21 ]

Len = 18 [ 21 a6 0f 85 ec 93 7c 05 01 00 06 16 34 01 29 01 03 00 ]
FSN: 38 FIB 1
BSN: 33 BIB 0
<[0] MSU
[ 21 a6 0f ]
Network Indicator: 2 Priority: 0 User Part: ISUP (5)
[ 85 ]
OPC 5618 DPC 5100 SLS 0
[ ec 93 7c 05 ]
CIC: 1
[ 01 00 ]
Message Type: ACM
[ 06 ]
--FIXED LENGTH PARMS[1]--
Backward Call Indicator:
Charge indicator: 2
Called party's status indicator: 1
Called party's category indicator: 1
End to End method indicator: 0
Interworking indicator: 0
End to End information indicator: 0
ISDN user part indicator: 1
Holding indicator: 0
ISDN access indicator: 1
Echo control device indicator: 1
SCCP method indicator: 0
[ 16 34 ]
--OPTIONAL PARMS--
Optional Backward Call Indicator:
In-band information indicator: 1
Call diversion may occur indicator: 1
Simple segmentation indicator: 0
MLPP user indicator: 0
[ 29 01 03 ]

    -- DAHDI/1-1 is proceeding passing it to
Local/0000000000 at obd_example-6746;2
    -- DAHDI/1-1 is ringing
Len = 17 [ 21 a7 0e 85 ec 93 7c 05 01 00 09 01 11 02 16 34 00 ]
FSN: 39 FIB 1
BSN: 33 BIB 0
<[0] MSU
[ 21 a7 0e ]
Network Indicator: 2 Priority: 0 User Part: ISUP (5)
[ 85 ]
OPC 5618 DPC 5100 SLS 0
[ ec 93 7c 05 ]
CIC: 1
[ 01 00 ]
Message Type: ANM
[ 09 ]
--OPTIONAL PARMS--
Backward Call Indicator:
Charge indicator: 2
Called party's status indicator: 1
Called party's category indicator: 1
End to End method indicator: 0
Interworking indicator: 0
End to End information indicator: 0
ISDN user part indicator: 1
Holding indicator: 0
ISDN access indicator: 1
Echo control device indicator: 1
SCCP method indicator: 0
[ 11 02 16 34 ]

    -- DAHDI/1-1 answered Local/0000000000 at obd_example-6746;2
    -- Executing [s at obd_example_1:1]
Playback("Local/0000000000 at obd_example-6746;1", "hello-world") in new
stack
    -- <Local/0000000000 at obd_example-6746;1> Playing
'hello-world.gsm' (language 'en')
  == Spawn extension (obd_example, 0000000000, 7) exited non-zero on
'Local/0000000000 at obd_example-6746;2'
    -- Executing [s at obd_example_1:2] Playback("DAHDI/1-1",
"hello-world") in new stack
    -- <DAHDI/1-1> Playing 'hello-world.gsm' (language 'en')
    -- Executing [s at obd_example_1:3] Playback("DAHDI/1-1",
"hello-world") in new stack
    -- <DAHDI/1-1> Playing 'hello-world.gsm' (language 'en')
    -- Executing [s at obd_example_1:4] Playback("DAHDI/1-1",
"hello-world") in new stack
    -- <DAHDI/1-1> Playing 'hello-world.gsm' (language 'en')
    -- Executing [s at obd_example_1:5] Hangup("DAHDI/1-1", "") in new
stack
  == Spawn extension (obd_example_1, s, 5) exited non-zero on
'DAHDI/1-1'
    -- Hungup 'DAHDI/1-1'
Len = 16 [ 9f b5 0d 85 f2 15 fb 14 01 00 0c 02 00 02 81 90 ]
FSN: 53 FIB 1
BSN: 31 BIB 1
>[1] MSU
[ 9f b5 0d ]
Network Indicator: 2 Priority: 0 User Part: ISUP (5)
[ 85 ]
OPC 5100 DPC 5618 SLS 1
[ f2 15 fb 14 ]
CIC: 1
[ 01 00 ]
Message Type: REL
[ 0c ]
--VARIABLE LENGTH PARMS[1]--
Cause Indicator:
Coding Standard: 0
Location: 1
Cause Class: 1
Cause Subclass: 0
Cause: Normal call clearing (16)
[ 02 81 90 ]

Len = 12 [ 21 a8 09 85 ec 93 7c 05 01 00 10 00 ]
FSN: 40 FIB 1
BSN: 33 BIB 0
<[0] MSU
[ 21 a8 09 ]
Network Indicator: 2 Priority: 0 User Part: ISUP (5)
[ 85 ]
OPC 5618 DPC 5100 SLS 0
[ ec 93 7c 05 ]
CIC: 1
[ 01 00 ]
Message Type: RLC
[ 10 ]


I know the muting issue comes when we have CIC mismatch but here we have
same CIC still getting mute.
Waiting for your valuable input.

Regards
Farooq




More information about the asterisk-ss7 mailing list