[asterisk-ss7] MATTF libss7

Erik Wartusch erik.wartusch at gmail.com
Wed Nov 18 10:23:08 CST 2009


Here is the chan_dahdi.conf

The linkset was up and running (we passed the level 4 tests and did
several calls in both directions, blocking speech channels during calss
etc. everything fine). 

Dont know about the TRA messages sorry...

"ss7 show linkset 1" output looks now like this if both sides are up and
running:
*CLI> ss7 show linkset 1
SS7 flags: 0x0
SS7 linkset 1 status: Up
SS7 calling nai: -1
SS7 called nai: -1
SS7 nationalprefix: 
SS7 internationalprefix: 
SS7 unknownprefix: 
SS7 networkroutedprefix: 
SS7 subscriberprefix: 
Switch type: ITU
Our point code: 4297
SLS shift: 0
numlinks: 1
numsps: 1
  ---------------------------------
  Adjecent SP PC: 5921 STATE: UP
  TRA:  GOT SENT    T19: not running T21: not running
  Routes:
    DPC       State        T6       T10
  Link SLC: 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:   18
    MTP3timers: Q707_T2(17s) 


Erik

Am Mittwoch, den 18.11.2009, 17:14 +0100 schrieb Attila Domjan:
> interesting, have u got TRA messages?
> The linkset was in operational state?
> please send me the current chan_dahdi.conf
> 
> On Wed, 2009-11-18 at 17:05 +0100, Erik Wartusch wrote:
> > Hello Attila!
> > 
> > I can send you what happend if they switched off the link via software
> > command (Siemens EWSD). (see txt attached).
> > 
> > Im afraid I dont have the output of "ss7 show linkset 1". but Im pretty
> > sure it was like this (when the link was set to down from their side):
> > 
> > ss7 show 
> > calls    cics     linkset  
> > srv27*CLI> ss7 show linkset 1
> > SS7 flags: 0x0
> > SS7 linkset 1 status: Down
> > SS7 calling nai: -1
> > SS7 called nai: -1
> > SS7 nationalprefix: 
> > SS7 internationalprefix: 
> > SS7 unknownprefix: 
> > SS7 networkroutedprefix: 
> > SS7 subscriberprefix: 
> > Switch type: ITU
> > Our point code: 4297
> > SLS shift: 0
> > numlinks: 1
> > numsps: 1
> >   ---------------------------------
> >   Adjecent SP PC: 5921 STATE: Down
> >   TRA:  GOT SENT    T19: not running T21: not running
> >   Routes:
> >     DPC       State        T6       T10
> >   Link SLC: 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:   71
> >     MTP3timers: Q707_T2(12s)   [here im not sure this was running)
> > 
> > So sadly we got today again a negative result (test not passed) of the
> > czech telco so we can not go live with the SS7 link...
> > 
> > Kind Regards,
> > Erik
> > 
> > 
> > Am Mittwoch, den 11.11.2009, 16:10 +0100 schrieb Attila Domjan:
> > > Hmm, it is interesting...
> > > 
> > > static void t2_expiry(void * data)
> > > {
> > > 	struct mtp2 *link = data;
> > > 
> > > 	mtp2_setstate(link, MTP_IDLE);
> > > 
> > > 	return;
> > > }
> > > 
> > > 
> > > int mtp2_setstate(struct mtp2 *link, int newstate)
> > > ....
> > > case MTP_IDLE:
> > > 			link->t2 = ss7_schedule_event(link->master, link->timers.t2,
> > > t2_expiry, link);
> > > 			if (mtp2_lssu(link, LSSU_SIO)) {
> > > 				mtp_error(link->master, "Unable to transmit initial LSSU\n");
> > > 				return -1;
> > > 			}
> > > 			link->state = MTP_NOTALIGNED;
> > > 			return 0;
> > > 
> > > it is coded, periodically send SIO....
> > > 
> > > what is the link state in this case? (ss7 show linkset ...)
> > > 
> > > A
> > > 
> > > On Wed, 2009-11-11 at 15:46 +0100, Erik Wartusch wrote:
> > > > Hi Attila!
> > > > 
> > > > I like your version. Thanks. Still I have problems to pass a MTP level 2
> > > > test wanted by a czech telco.
> > > > 
> > > > It's regarding sending SIO / SIOS messages when the other sites link is
> > > > down (during the specified T2 timer). They claim we sending not
> > > > periodically the SIO messages (just once) until the T2 timer is running
> > > > out. 
> > > > 
> > > > Any experience with that?
> > > > 
> > > > Kind Regards,
> > > > Erik
> > > > 
> > > > Am Dienstag, den 10.11.2009, 11:30 +0100 schrieb Attila Domjan:
> > > > > Hi, don't mix the libss7/asterisk(chan_dahdi) versions, there are some
> > > > > api changes.
> > > > > 
> > > > > My version (many additional features) are working from my svn.
> > > > > 
> > > > > Regards,
> > > > > Attila
> > > > > 
> > > > > On Mon, 2009-11-09 at 17:35 +0100, Erik Wartusch wrote:
> > > > > > Hello ss7 list!
> > > > > > 
> > > > > > Installing libss7 and asterisk from
> > > > > > http://svn.digium.com/svn/libss7/team/mattf/bug13495
> > > > > > 
> > > > > >  http://svn.digium.com/svn/asterisk/team/mattf/bug13495
> > > > > > 
> > > > > > as well as:
> > > > > > http://svn.digium.com/svn/dahdi/tools/trunk dahdi-tools
> > > > > > http://svn.digium.com/svn/dahdi/linux/trunk dahdi-trunk
> > > > > > 
> > > > > > (this order: dahdi, dahdi-tools, libss7 and then asterisk)
> > > > > > 
> > > > > > leads to the follwing error doing a "make" for the Asterisk version (see below).
> > > > > > Did I made any mistake or is this a bug?
> > > > > > 
> > > > > > Kind Regards,
> > > > > > 
> > > > > > Erik
> > > > > > 
> > > > > > [CC] chan_dahdi.c -> chan_dahdi.o
> > > > > > chan_dahdi.c: In function ‘ss7_linkset’:
> > > > > > chan_dahdi.c:10921: error: ‘ss7_event_iam’ has no member named
> > > > > > ‘cot_performed_on_previous_cic’
> > > > > > chan_dahdi.c:10921: error: ‘ss7_event_sam’ has no member named
> > > > > > ‘cot_performed_on_previous_cic’
> > > > > > chan_dahdi.c:10929: error: ‘ss7_event_iam’ has no member named
> > > > > > ‘cot_performed_on_previous_cic’
> > > > > > chan_dahdi.c:10947: error: ‘ss7_event_cot’ has no member named
> > > > > > ‘cot_performed_on_previous_cic’
> > > > > > chan_dahdi.c: In function ‘process_dahdi’:
> > > > > > chan_dahdi.c:16660: error: ‘SS7_ISDN_ACCESS_INDICATOR’ undeclared (first
> > > > > > use in this function)
> > > > > > chan_dahdi.c:16660: error: (Each undeclared identifier is reported only
> > > > > > once
> > > > > > chan_dahdi.c:16660: error: for each function it appears in.)
> > > > > > make[1]: *** [chan_dahdi.o] Error 1
> > > > > > make: *** [channels] Error 2
> > > > > > srv27:/usr/src/UNSTABLE_libss7/asterisk-patched# cd ..
> > > > > > 
> > > > > > 
> > > > > > _______________________________________________
> > > > > > --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
> > > > 
> 
-------------- next part --------------

[trunkgroups]
;
; Trunk groups are used for NFAS or GR-303 connections.
;
; Group: Defines a trunk group.  
;        trunkgroup => <trunkgroup>,<dchannel>[,<backup1>...]
;
;        trunkgroup  is the numerical trunk group to create
;        dchannel    is the zap channel which will have the 
;                    d-channel for the trunk.
;        backup1     is an optional list of backup d-channels.
;
;trunkgroup => 1,24,48
;trunkgroup => 1,24
;
; Spanmap: Associates a span with a trunk group
;        spanmap => <zapspan>,<trunkgroup>[,<logicalspan>]
;
;        zapspan     is the zap span number to associate
;        trunkgroup  is the trunkgroup (specified above) for the mapping
;        logicalspan is the logical span number within the trunk group to use.
;                    if unspecified, no logical span number is used.
;
;spanmap => 1,1,1
;spanmap => 2,1,2
;spanmap => 3,1,3
;spanmap => 4,1,4

[channels]
;
switchtype=euroisdn

; context for testing with 02
context=ss7-test

pridialplan=international

prilocaldialplan=international

;internationalprefix = 00
;nationalprefix = 0
;localprefix = 0711
;privateprefix = 07115678
;unknownprefix = 
;
;
resetinterval = never 
;
overlapdial=no
;
;
usecallerid=yes

;hidecallerid=yes

usecallingpres=yes

;
threewaycalling=yes

cancallforward=yes
;
echocancel=yes
;
;
echocancelwhenbridged=no
;
echotraining=no
;echotraining=800
;
rxgain=0.0
txgain=0.0
;
; Logical groups can be assigned to allow outgoing rollover.  Groups range
; from 0 to 63, and multiple groups can be specified.
;
;group=1
;callgroup=1
;pickupgroup=1
;immediate=no


; Signaling type SS7
;signalling = ss7

; Variant of SS7 signaling:
; Options are itu and ansi
;ss7type = itu

; All settings apply to linkset 1
;linkset = 1

; Point code of the linkset
;pointcode = 8802

; Point code of node adjacent to this signaling link (Possibly the STP between you and
; your destination)
;adjpointcode = 8304

; Default point code that you would like to assign to outgoing messages (in case of
; routing through STPs, or using A links)
;defaultdpc = 8304 

; Begin CIC (Circuit indication codes) count with this number
;cicbeginswith = 1

; What the MTP3 network indicator bits should be set to.  Choices are
; national, national_spare, international, international_spare
;networkindicator=national_spare

; First signaling channel
;sigchan = 1

; Channels to associate with CICs on this linkset
;channel = 2-31

; SS7 Called Nature of Address Indicator

; unknown:        Unknown
; subscriber:     Subscriber
; national:       National
; international:  International
; dynamic:        Dynamically selects the appropriate dialplan

ss7_called_nai=dynamic

; SS7 Calling Nature of Address Indicator

; unknown:        Unknown
; subscriber:     Subscriber
;national:       National
; international:  International
; dynamic:        Dynamically selects the appropriate dialplan

ss7_calling_nai=dynamic


 ; necessary for 02
ss7_internationalprefix = 
ss7_nationalprefix = 
ss7_subscriberprefix =
ss7_unknownprefix =

; O2 2 x E1 praha

group=1
callgroup=1
pickupgroup=1
immediate=no
signalling = ss7
ss7type = itu
linkset = 1
pointcode = 4297  ; our own pointcode
adjpointcode = 5921 ; the stp (signalling transfer point, step before switch)
defaultdpc = 5929 ; the code of the voice switch
networkindicator = international
pridialplan=international
sigchan = 1

mtp3_timer.q707_t1 = 4000
mtp3_timer.q707_t2 = 30000

mtp3_timer.t1 = 500
;changed   
mtp3_timer.t2 = 120000
mtp3_timer.t3 = 500
mtp3_timer.t4 = 500   
mtp3_timer.t5 = 500
mtp3_timer.t6 = 500

mtp3_timer.t10 = 60000 

mtp3_timer.t12 = 800   
mtp3_timer.t13 = 800 
mtp3_timer.t14 = 2000
mtp3_timer.t19 = 67000
mtp3_timer.t21 = 63000

mtp3_timer.t22 = 300000
mtp3_timer.t23 = 300000

isup_timer.t1 = 30000
isup_timer.t2 = 180000
isup_timer.t5 = 300000
isup_timer.t6 = 90000
isup_timer.t7 = 20000

isup_timer.t8 = 10000

isup_timer.t12 = 15000 
isup_timer.t13 = 300000
isup_timer.t14 = 15000 
isup_timer.t15 = 300000

isup_timer.t16 = 15000
isup_timer.t17 = 300000

isup_timer.t18 = 15000
isup_timer.t19 = 300000
isup_timer.t20 = 15000
isup_timer.t21 = 300000
isup_timer.t22 = 15000
isup_timer.t23 = 300000

isup_timer.t27 = 240000

isup_timer.t33 = 12000
isup_timer.t35 = 15000


cicbeginswith = 2 ; where the partner starts to count CIC's
channel = 2-31
cicbeginswith = 33
channel = 32-62


More information about the asterisk-ss7 mailing list