[asterisk-users] Layer2 Down in BRI connection

khalid touati khalidtouati at gmail.com
Tue Jan 3 13:30:04 CST 2012


Hi All,
I am having an issue with layer 2 in BRi connection configured using Misdn:
after the BRI line working fine, a technician from our phone company came
in to add another number, after testing with his ISDN phone and BRI line is
working, from our asterisk server it is not :(.
When I check ports with "misdn show port x" it says:

* Port 4 Type TE Prot. PMP L2Link DOWN L1Link:UP Blocked:0  Debug:7
(as you can see here L1Link=UP *but* L2Link=DOWN)

since we didn't change any setting from our end, it maybe an change from
our phone provider end that caused to have a *mismatch in the layer 2
connection*.

*what we tried is:*
- we did reboot our phone system several times.
- I did reconfigure the ISDN trunk setting to refresh things (*using the
same config that worked before*)
- I did use another phone system that was not used before (to eliminate the
possibility that our current phone system has hardware issues) with no
success, it *displaying the same Layer 2 issue found*.
- I turned debugging on when making calls, it shows that calls go through
as programmed but it hits a down line (because of L2 issue) :
IP0x*CLI>
    -- Executing [9020823541 at COUNTRY_DIAL:1]
misdn_check_l2l1("SIP/8425-00438004", "g:trunk_m2|20") in new stack

IP0x*CLI>
P[ 0] Checking Ports in group: trunk_m2
P[ 0] trying port 1
P[ 0] trying port 2
P[ 0] trying port 3
P[ 0] trying port 4
    -- Executing [9020823541 at COUNTRY_DIAL:2] Dial("SIP/8425-00438004",
"mISDN/g:trunk_m2/020823541") in new stack
P[ 0]  --> Group Call group: trunk_m2
P[ 1] Group [trunk_m2] Port [1]
P[ 2] Group [trunk_m2] Port [2]
P[ 3] Group [trunk_m2] Port [3]
P[ 4] Group [trunk_m2] Port [4]
P[ 4] portup:1
IP0x*CLI>
P[ 0]  --> * NEW CHANNEL dad:020823541 oad:(null)
IP0x*CLI>
P[ 4] * Queuing chan 0x43d644
IP0x*CLI>
P[ 4] read_config: Getting Config
IP0x*CLI>
P[ 4] config_jb: Called
IP0x*CLI>
P[ 4]  --> * CallGrp: PickupGrp:
IP0x*CLI>
P[ 4]  --> TON: Unknown
IP0x*CLI>
P[ 4]  --> LTON: Unknown
IP0x*CLI>
P[ 4]  --> CTON: Unknown
IP0x*CLI>
P[ 4] * CALL: g:trunk_m2/020823541
IP0x*CLI>
P[ 4]  --> * dad:9020823541 tech:mISDN/6-u3 ctx:DID_trunk_m2
IP0x*CLI>
P[ 4]  --> * adding2newbc ext 9020823541
IP0x*CLI>
P[ 4]  --> * adding2newbc callerid 8425
IP0x*CLI>
P[ 4] update_config: Getting Config
IP0x*CLI>
P[ 4]  --> pres: -1 screen: -1
IP0x*CLI>
P[ 4]  --> pres: 0
IP0x*CLI>
P[ 4]  --> PRES: Allowed (0x0)
IP0x*CLI>
P[ 4]  --> SCREEN: Unscreened (0x0)
IP0x*CLI>
P[ 4] NO OPTS GIVEN
IP0x*CLI>
P[ 4] SENDEVENT: stack->nt:0 stack->uperid:40000403
IP0x*CLI>
P[ 4] I SEND:SETUP oad:8425 dad:020823541 pid:5
IP0x*CLI>
P[ 4]  --> bc_state:BCHAN_CLEANED
IP0x*CLI>
P[ 4]  --> channel:0 mode:TE cause:16 ocause:16 rad: cad:
IP0x*CLI>
P[ 4]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
IP0x*CLI>
P[ 4]  --> caps:Speech pi:0 keypad: sending_complete:0
IP0x*CLI>
P[ 4]  --> screen:0 --> pres:0
IP0x*CLI>
P[ 4]  --> addr:0 l3id:90003 b_stid:0 layer_id:0
IP0x*CLI>
P[ 4]  --> facility:Fac_None out_facility:Fac_None
IP0x*CLI>
P[ 4]  --> urate:0 rate:16 mode:0 user1:0
IP0x*CLI>
P[ 4]  --> bc:1130c58 h:0 sh:0
IP0x*CLI>
P[ 4] --> new_l3id 90004
IP0x*CLI>
P[ 4] Sending msg, prim:30580 addr:41000403 dinfo:90004
IP0x*CLI>
P[ 4]  --> * SEND: State Dialing pid:5
IP0x*CLI>
    -- Called g:trunk_m2/020823541
IP0x*CLI>
P[ 4] handle_frm: frm->addr:42000402 frm->prim:3f182
P[ 4]  --> lib: RELEASE_CR Ind with l3id:90004
P[ 4]  --> lib: CLEANING UP l3id: 90004
P[ 4] I IND :CLEAN_UP oad:8425 dad:020823541 pid:5 state:CALLING
P[ 4] hangup_chan called
P[ 4]  --> queue_hangup
P[ 4] release_chan: bc with l3id: 90004
P[ 4] * RELEASING CHANNEL pid:5 ctx:DID_trunk_m2 dad:020823541
oad:9020823541 state: CALLING
P[ 4]  --> * State Down
P[ 4]  --> Setting AST State to down
P[ 4] $$$ CLEANUP CALLED pid:5
P[ 4] $$$ Already cleaned up bc with stid :0
P[ 4] [Jan  3 16:59:14] DEBUG[2944]: chan_misdn.c:2525 misdn_hangup:
misdn_hangup(mISDN/6-u3)
P[ 0] misdn_hangup called, without 'chan_list' obj
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'SIP/8425-00438004' status is 'CHANUNAVAIL'
Idx:0 stack->cchan:0 in_use:0 Chan:1
P[ 4] Idx:1 stack->cchan:0 in_use:0 Chan:2
P[ 4] Idx:2 stack->cchan:0 in_use:0 Chan:3
P[ 0] Got empty Msg..

I appreciate any help!
-- 
Khalid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120103/0b354b1f/attachment.htm>


More information about the asterisk-users mailing list