[asterisk-ss7] New to Asterisk & Libss7

Wasim Baig wasim at convergence.pk
Tue Apr 29 03:43:09 CDT 2014


Use dahdi_monitor to verify the CIC has media on it ...

Usage: dahdi_monitor <channel num> [-v[v]] [-m] [-o] [-l limit] [-f FILE |
-s FILE | -r FILE1 -t FILE2] [-F FILE | -S FILE | -R FILE1 -T FILE2]
Options:
        -v: Visual mode.  Implies -m.
        -vv: Visual/Verbose mode.  Implies -m.
        -l LIMIT: Stop after reading LIMIT bytes
        -m: Separate rx/tx streams.
        -o: Output audio via OSS.  Note: Only 'normal' combined rx/tx
streams are output via OSS.
        -f FILE: Save combined rx/tx stream to mono FILE. Cannot be used
with -m.
        -r FILE: Save rx stream to FILE. Implies -m.
        -t FILE: Save tx stream to FILE. Implies -m.
        -s FILE: Save stereo rx/tx stream to FILE. Implies -m.
        -F FILE: Save combined pre-echocanceled rx/tx stream to FILE.
Cannot be used with -m.
        -R FILE: Save pre-echocanceled rx stream to FILE. Implies -m.
        -T FILE: Save pre-echocanceled tx stream to FILE. Implies -m.
        -S FILE: Save pre-echocanceled stereo rx/tx stream to FILE. Implies
-m.
Examples:
Save a stream to a file
        dahdi_monitor 1 -f stream.raw
Visualize an rx/tx stream and save them to separate files.
        dahdi_monitor 1 -v -r streamrx.raw -t streamtx.raw
Play a combined rx/tx stream via OSS and save it to a file
        dahdi_monitor 1 -o -f stream.raw
Save a combined normal rx/tx stream and a combined 'preecho' rx/tx stream
to files
        dahdi_monitor 1 -f stream.raw -F streampreecho.raw
Save a normal rx/tx stream and a 'preecho' rx/tx stream to separate files
        dahdi_monitor 1 -m -r streamrx.raw -t streamtx.raw -R
streampreechorx.raw -T streampreechotx.raw



On 29 April 2014 13:30, Muhammad Kamran Farooq <farooq at rockvillegroup.com>wrote:

> 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
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-ss7 mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-ss7
>



-- 
wasim h. baig | principal consultant | convergence pk | +92 30 0850 8070 |
peace be upon you ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-ss7/attachments/20140429/b3503091/attachment-0001.html>


More information about the asterisk-ss7 mailing list