[asterisk-ss7] libss7 link problems.

Matthew Fredrickson creslin at digium.com
Tue Jan 2 10:14:23 MST 2007


Replies are inline.

On Jan 2, 2007, at 4:41 AM, Adam Rybak wrote:
>    im trying to setup my first SS7 link, i decided to use libss7 and 
> asterisk
> speclal trunk. I downloaded libss7 and asterisk-ss7 29.12.2006 and 
> succesfully
> compiled.

First of all, you shouldn't use asterisk-ss7 right now.  It's not 
really in a state that it should be used.  Once I merged all the -ss7 
changes to asterisk into trunk, I stopped updating the asterisk-ss7 
branch.


>
> Im using Tormenta 2 Quad card, with tor2 module.
>
> My /etc/zaptel.conf:
> span=1,1,0,ccs,hdb3
> bchan=1-15,17-31
> dchan=16
> loadzone=pl
> defaultzone=pl
>
> My /etc/asterisk/zapata.conf:
> [trunkgroups]
>
> [channels]
> language=en
> context=demo
> switchtype=national
> nsf=none
> pridialplan=national
> prilocaldialplan=national
> signalling=ss7
> usecallerid=yes
> hidecallerid=no
> callwaiting=yes
> usecallingpres=yes
> callwaitingcallerid=yes
> threewaycalling=yes
> transfer=yes
> canpark=yes
> cancallforward=yes
> callreturn=yes
> echocancel=yes
> echocancelwhenbridged=yes
> rxgain=0.0
> txgain=0.0
> group=1
> callgroup=1
> pickupgroup=1
> immediate=no
> signalling = ss7
> ss7type = itu
> linkset = 1
> pointcode = 3353
> adjpointcode = 14230
> defaultdpc = 14230
> cicbeginswith = 1
> networkindicator=national
> sigchan = 16
> cicbeginswith = 1
> channel => 1-15
> cicbeginswith=17
> channel => 17-31

All this looks fine so far.

> The link comes up, but i cannot receive call, caller is automaticlly
> disconnected, i have in demo context s, which should match this 
> number...
>
> And from time to time i got HDLC abort - what it can be?

That shouldn't  be anything to worry about.  Update to regular 
asterisk-trunk though.  There have been a lot of updates since the 
asterisk-ss7 changes were merged back in.

>
> - there is output from log:
> [Jan  2 12:16:55] VERBOSE[12847] logger.c:     -- Registered channel 
> 1, SS7
> Signalling signalling
> [Jan  2 12:16:55] DEBUG[12847] chan_zap.c: Failed to read gains: 
> Invalid
> argument
> [Jan  2 12:16:55] DEBUG[12847] chan_zap.c: Failed to read gains: 
> Invalid
> argument
> [...]
> [Jan  2 12:16:55] VERBOSE[12847] logger.c:     -- Registered channel 
> 30, SS7
> Signalling signalling
> [Jan  2 12:16:55] DEBUG[12847] chan_zap.c: Failed to read gains: 
> Invalid
> argument
> [Jan  2 12:16:55] DEBUG[12847] chan_zap.c: Failed to read gains: 
> Invalid
> argument
> [Jan  2 12:16:55] DEBUG[12847] chan_zap.c: Updated conferencing on 31, 
> with 0
> conference users
> [Jan  2 12:16:55] VERBOSE[12847] logger.c: Found
> [Jan  2 12:16:55] VERBOSE[12847] logger.c:   == Starting SS7 linkset 
> on span 1
> [Jan  2 12:16:55] DEBUG[12847] channel.c: Registered handler for 'Zap' 
> (Zapata
> Telephony Driver w/PRI)
> [Jan  2 12:16:56] VERBOSE[12847] logger.c:     -- codec_zap: using 
> generic PLC
> [...]
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Got GRA from CIC 1 to 15.
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Got GRA from CIC 17 to 31.
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 3
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 4
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 5
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 6
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 7
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 8
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 9
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 10
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 11
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 12
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 13
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 14
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 15
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 17
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 18
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 19
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 20
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 21
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 22
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 23
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 24
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 25
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 26
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 27
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 28
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 29
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 30
> [Jan  2 12:16:57] DEBUG[12871] chan_zap.c: Blocking CIC 31
> [Jan  2 12:17:04] DEBUG[12871] chan_zap.c: FSN: 32 FIB 1
> [Jan  2 12:17:04] DEBUG[12871] chan_zap.c: BSN: 60 BIB 0
> [Jan  2 12:17:04] DEBUG[12871] chan_zap.c: > FISU
> [Jan  2 12:17:04] DEBUG[12871] chan_zap.c:
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: Len = 16 [ [Jan  2 12:17:45]
> DEBUG[12871] chan_zap.c: a0 [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 
> 3d [Jan
> 2 12:17:45] DEBUG[12871] chan_zap.c: 0b [Jan  2 12:17:45] DEBUG[12871]
> chan_zap.c: 81 [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 19 [Jan  2 
> 12:17:45]
> DEBUG[12871] chan_zap.c: 8d [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 
> e5 [Jan
> 2 12:17:45] DEBUG[12871] chan_zap.c: 0d [Jan  2 12:17:45] DEBUG[12871]
> chan_zap.c: 11 [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 40 [Jan  2 
> 12:17:45]
> DEBUG[12871] chan_zap.c: 02 [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 
> 09 [Jan
> 2 12:17:45] DEBUG[12871] chan_zap.c: 01 [Jan  2 12:17:45] DEBUG[12871]
> chan_zap.c: 81 [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 9e [Jan  2 
> 12:17:45]
> DEBUG[12871] chan_zap.c: 40 [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 
> ]
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: FSN: 61 FIB 0
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: BSN: 32 BIB 1
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: < MSU
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 	Network Indicator 0x2
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 	OPC 14230 DPC 3353
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 	User Part: STD_TEST (1) 
> Priority: 0
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 	H0: 1 H1: 1
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 	Message type: COO
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c:
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: Len = 16 [ [Jan  2 12:17:45]
> DEBUG[12871] chan_zap.c: 3d [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 
> a1 [Jan
> 2 12:17:45] DEBUG[12871] chan_zap.c: 0b [Jan  2 12:17:45] DEBUG[12871]
> chan_zap.c: 81 [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 96 [Jan  2 
> 12:17:45]
> DEBUG[12871] chan_zap.c: 77 [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 
> 46 [Jan
> 2 12:17:45] DEBUG[12871] chan_zap.c: 03 [Jan  2 12:17:45] DEBUG[12871]
> chan_zap.c: 21 [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 40 [Jan  2 
> 12:17:45]
> DEBUG[12871] chan_zap.c: 02 [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 
> 09 [Jan
> 2 12:17:45] DEBUG[12871] chan_zap.c: 01 [Jan  2 12:17:45] DEBUG[12871]
> chan_zap.c: 81 [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 00 [Jan  2 
> 12:17:45]
> DEBUG[12871] chan_zap.c: 00 [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 
> ]
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: FSN: 33 FIB 1
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: BSN: 61 BIB 0
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: > MSU
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 	Network Indicator 0x2
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 	OPC 3353 DPC 14230
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 	User Part: STD_TEST (1) 
> Priority: 0
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 	H0: 1 H1: 2
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c: 	Message type: COA
> [Jan  2 12:17:45] DEBUG[12871] chan_zap.c:
> [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: Len = 49 [ [Jan  2 12:17:59]
> DEBUG[12871] chan_zap.c: a1 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 
> 3e [Jan
> 2 12:17:59] DEBUG[12871] chan_zap.c: 2c [Jan  2 12:17:59] DEBUG[12871]
> chan_zap.c: 85 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 19 [Jan  2 
> 12:17:59]
> DEBUG[12871] chan_zap.c: 8d [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 
> e5 [Jan
> 2 12:17:59] DEBUG[12871] chan_zap.c: 1d [Jan  2 12:17:59] DEBUG[12871]
> chan_zap.c: 01 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 00 [Jan  2 
> 12:17:59]
> DEBUG[12871] chan_zap.c: 01 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 
> 10 [Jan
> 2 12:17:59] DEBUG[12871] chan_zap.c: 20 [Jan  2 12:17:59] DEBUG[12871]
> chan_zap.c: 01 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 0a [Jan  2 
> 12:17:59]
> DEBUG[12871] chan_zap.c: 00 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 
> 02 [Jan
> 2 12:17:59] DEBUG[12871] chan_zap.c: 09 [Jan  2 12:17:59] DEBUG[12871]
> chan_zap.c: 07 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 83 [Jan  2 
> 12:17:59]
> DEBUG[12871] chan_zap.c: 90 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 
> 22 [Jan
> 2 12:17:59] DEBUG[12871] chan_zap.c: 93 [Jan  2 12:17:59] DEBUG[12871]
> chan_zap.c: 01 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 00 [Jan  2 
> 12:17:59]
> DEBUG[12871] chan_zap.c: 00 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 
> 0a [Jan
> 2 12:17:59] DEBUG[12871] chan_zap.c: 07 [Jan  2 12:17:59] DEBUG[12871]
> chan_zap.c: 83 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 13 [Jan  2 
> 12:17:59]
> DEBUG[12871] chan_zap.c: 06 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 
> 40 [Jan
> 2 12:17:59] DEBUG[12871] chan_zap.c: 55 [Jan  2 12:17:59] DEBUG[12871]
> chan_zap.c: 10 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 02 [Jan  2 
> 12:17:59]
> DEBUG[12871] chan_zap.c: 03 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 
> 04 [Jan
> 2 12:17:59] DEBUG[12871] chan_zap.c: 7d [Jan  2 12:17:59] DEBUG[12871]
> chan_zap.c: 02 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 91 [Jan  2 
> 12:17:59]
> DEBUG[12871] chan_zap.c: 81 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 
> 1d [Jan
> 2 12:17:59] DEBUG[12871] chan_zap.c: 03 [Jan  2 12:17:59] DEBUG[12871]
> chan_zap.c: 80 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 90 [Jan  2 
> 12:17:59]
> DEBUG[12871] chan_zap.c: a3 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 
> 00 [Jan
> 2 12:17:59] DEBUG[12871] chan_zap.c: 25 [Jan  2 12:17:59] DEBUG[12871]
> chan_zap.c: 27 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: ]
> [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: FSN: 62 FIB 0
> [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: BSN: 33 BIB 1
> [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: < MSU
> [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 	Network Indicator 0x2
> [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 	OPC 14230 DPC 3353
> [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 	User Part: ISUP (5) 
> Priority: 0
> [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 		Message Type: IAM (1)
> [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 		CIC: 1
> [Jan  2 12:17:59] DEBUG[12871] chan_zap.c:
> [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: Unhandled optional 
> parameter 0x3
> 'Access Transport'
> [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: [[Jan  2 12:17:59] 
> DEBUG[12871]
> chan_zap.c: 0x7d [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: 0x2 [Jan  2
> 12:17:59] DEBUG[12871] chan_zap.c: 0x91 [Jan  2 12:17:59] DEBUG[12871]
> chan_zap.c: 0x81 [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: ]
> [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: Got IAM for CIC 1 and number
> 223xxxx00
> [Jan  2 12:17:59] DEBUG[12871] chan_zap.c: Call on CIC for unconfigured
> extension 223xxxx00

This is where your problem lies.  The extension is not matching on 
anything in your dialplan.  Make sure you update to asterisk-trunk, 
then try creating a "catchall" extension like a _X. or something of 
that nature in whatever context this is coming in on.  That should make 
it work.


Matthew Fredrickson



More information about the asterisk-ss7 mailing list