Hi Matthew
Ok, I have added some extra logs in the libss7 source code and tried to
debug it.
First of all, the version of libss7 is 
libss7 version: SVN-mattf-bug13495-r249M 
and the version of asterisk is
Asterisk SVN-mattf-bug13495-r167584M built by root on a x86_64 running Linux
on 2009-01-20 18:44:42 UTC

I don't know if anything drastic changed since.

>From what I saw from the logs is, even if we log ' MTP2 link up', it is
really not because we never see 
Adjacent SP PC: %i UP!!!
And because we don't see that, adj_sp->state is still MTP3_DOWN. And because
it is down, link_available always returns false, then
rl_to_link returns NULL and we cannot pick a winner while transmitting with
mtp3_transmit.

As you can see :
(adj_sp->tra & GOT) is still 0. And it looks like we never receive the TRA
message. So, what does that message do and why asterisk 
is not seeing the SS7 link to be up when the telco is seeing it ?


So :
XXX mtp3_transmit:1730 , userpart 2, routing_label(type 2, dpc 113663, opc
345384 )
XXX mtp3_transmit:1741 userpart 2, winner = 0x7f7eac0b1ce0, ss7->switchtype
2
MTP2 link up 
XXX mtp3_transmit:1730 , userpart 2, routing_label(type 2, dpc 113662, opc
345384 )
XXX mtp3_transmit:1741 userpart 2, winner = 0x7f7eac045bc0, ss7->switchtype
2
MTP2 link up 
XXX mtp3_transmit:1730 , userpart 2, routing_label(type 2, dpc 113663, opc
345384 )
XXX mtp3_transmit:1741 userpart 2, winner = 0x7f7eac0b1ce0, ss7->switchtype
2
XXX mtp3_transmit:1730 , userpart 2, routing_label(type 2, dpc 113662, opc
345384 )
XXX mtp3_transmit:1741 userpart 2, winner = 0x7f7eac045bc0, ss7->switchtype
2
XXXXX mtp3_init:706 
XXXXX mtp3_init:706 
XXX mtp3_transmit:1730 , userpart 0, routing_label(type 2, dpc 113663, opc
345384 )
XXX mtp3_transmit:1741 userpart 0, winner = 0x7f7eac0b1ce0, ss7->switchtype
2
XXXXX mtp3_check:675 count = 1
XXXXX mtp3_check:675 count = 1
mtp3_check:693, count 1, adj_sp->state 0, adj_sp->tra 2 GOT 0 SENT 2 
mtp3_check:693, count 1, adj_sp->state 0, adj_sp->tra 2 GOT 0 SENT 2 
XXXXX mtp3_init:706 
XXXXX mtp3_init:706 
XXX mtp3_transmit:1730 , userpart 0, routing_label(type 2, dpc 113662, opc
345384 )
XXX mtp3_transmit:1741 userpart 0, winner = 0x7f7eac045bc0, ss7->switchtype
2
XXXXX mtp3_check:675 count = 1
XXXXX mtp3_check:675 count = 1
mtp3_check:693, count 1, adj_sp->state 0, adj_sp->tra 2 GOT 0 SENT 2 
mtp3_check:693, count 1, adj_sp->state 0, adj_sp->tra 2 GOT 0 SENT 2


-----Original Message-----
From: asterisk-ss7-boun...@lists.digium.com
[mailto:asterisk-ss7-boun...@lists.digium.com] On Behalf Of Matthew
Fredrickson
Sent: Wednesday, February 04, 2009 12:13 AM
To: asterisk-ss7@lists.digium.com
Subject: Re: [asterisk-ss7] No siganlling link available sending message

Ruddy Gbaguidi wrote:
> Hi all
> 
> I'm still having trouble getting my SS7 links up.
> 
> [Feb  3 13:05:57] ERROR[3575]: chan_dahdi.c:11287 dahdi_ss7_error: No 
> siganlling link available sending message!
> 
> [Feb  3 13:05:57] WARNING[3575]: chan_dahdi.c:11246 dahdi_ss7_call_null: 
> libss7 asked set to NULL ss7 call on CIC 4001 DPC 16093235
> 
> [Feb  3 13:05:57] ERROR[3575]: chan_dahdi.c:11287 dahdi_ss7_error: 
> Unable to send UBA to DPC: 16093235

Hey Ruddy,

Sorry for the long delay, I have been kept extremely busy on a few different
projects here at work.

Can you post some debug output of this when it is occurring?

Thanks,
Matthew Fredrickson
Digium, Inc.

> 
>  
> 
> And the telco sees us still as looked.
> 
>  
> 
> On our server, we have 3 digium cards. For  what I understand from the 
> telco,
> 
> we have 6 links, 2 for SS7 and 4 T1.
> 
>  
> 
> Our point code is 5-69-40 and the first ss7 link (on span 1) goes to 
> point code 1-187-254 and the second link goes to point code
> 
> 001-187-254 (on span 2). Then all 4 T1 will get messages from point 
> code 245-144-051.
> 
> With the telco and Matthew from digium, we setup the two SS7 links and 
> the telco was able to see us fine.
> 
>  
> 
> So, in system.conf, I have the
> 
> span=1,1,0,esf,b8zs
> 
> span=2,0,0,esf,b8zs
> 
> span=3,0,0,esf,b8zs
> 
> span=4,0,0,esf,b8zs
> 
> span=5,1,0,esf,b8zs
> 
> span=6,0,0,esf,b8zs
> 
> span=7,0,0,esf,b8zs
> 
> span=8,0,0,esf,b8zs
> 
> span=9,0,0,esf,b8zs
> 
> span=10,0,0,esf,b8zs
> 
> span=11,0,0,esf,b8zs
> 
> span=12,0,0,esf,b8zs
> 
> bchan =
> 2-24,26-48,50-71,74-96,98-120,122-144,146-168,170-192,194-216,218-240,
> 242-264,266-288
> 
> mtp2=1,25,49
> 
> 56k=1,25,49
> 
>  
> 
> And in chan_dahdi.conf
> 
> signalling = ss7
> 
> ss7type = ansi
> 
> networkindicator = national
> 
> ss7_called_nai=dynamic
> 
> ss7_calling_nai=dynamic
> 
> linkset = 1
> 
> pointcode = 5-69-40
> 
> adjpointcode = 1-187-254
> 
> defaultdpc = 001-187-254
> 
> slc=0
> 
>  
> 
> cicbeginswith=1
> 
> channel=2-24
> 
> sigchan=dahdi/1
> 
>  
> 
> adjpointcode=1-187-255
> 
> channel=26-48
> 
> sigchan=dahdi/25
> 
>  
> 
> cicbeginswith=4001
> 
> defaultdpc=245-144-51
> 
> adjpointcode=245-144-51
> 
> channel=50-72
> 
> sigchan=dahdi/49
> 
>  
> 
> Can somebody help please ??
> 
>  
> 
>  
> 
>  
> 
> 
> ----------------------------------------------------------------------
> --
> 
> _______________________________________________
> --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


_______________________________________________
--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


_______________________________________________
--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

Reply via email to