Solved - misdn_check_l2l1 issue

Hi all

I’ve got an issue with asterisk 1.6.1.6 and misdn with DDI configuration (NT, P2P). I can neither dial out nor in with DDI ISDN.

*CLI>
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
P[ 1] Port Down L2:0 L1:1>
P[ 2] Port Down L2:0 L1:0
    -- Executing [0796884282@DLPN_default:1] misdn_check_l2l1("SIP/10-08270d80", "g:trunk_m1,2") in new stack
P[ 1] Port Down L2:0 L1:1>
P[ 2] Port Down L2:0 L1:0
    -- Executing [0796884282@DLPN_default:2] Macro("SIP/10-08270d80", "trunkdial-failover-0.3,mISDN/g:trunk_m1/0796884282,,trunk_m1,") in new stack
    -- Executing [s@macro-trunkdial-failover-0.3:1] GotoIf("SIP/10-08270d80", "0?1-fmsetcid,1") in new stack
    -- Executing [s@macro-trunkdial-failover-0.3:2] GotoIf("SIP/10-08270d80", "0?1-setgbobname,1") in new stack
    -- Executing [s@macro-trunkdial-failover-0.3:3] Set("SIP/10-08270d80", "CALLERID(num)=") in new stack
    -- Executing [s@macro-trunkdial-failover-0.3:4] GotoIf("SIP/10-08270d80", "0?1-dial,1") in new stack
    -- Executing [s@macro-trunkdial-failover-0.3:5] Set("SIP/10-08270d80", "CALLERID(all)=") in new stack
    -- Executing [s@macro-trunkdial-failover-0.3:6] Goto("SIP/10-08270d80", "1-dial,1") in new stack
    -- Goto (macro-trunkdial-failover-0.3,1-dial,1)
    -- Executing [1-dial@macro-trunkdial-failover-0.3:1] Dial("SIP/10-08270d80", "mISDN/g:trunk_m1/0796884282") in new stack

[Nov 21 12:11:41] WARNING[4251]: chan_misdn.c:3516 misdn_request: Could not Dial out on group 'trunk_m1'.
        Either the L2 and L1 on all of these ports where DOWN (see 'show application misdn_check_l2l1')
        Or there was no free channel on none of the ports

[Nov 21 12:11:41] WARNING[4251]: app_dial.c:1528 dial_exec_full: Unable to create channel of type 'mISDN' (cause 0 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [1-dial@macro-trunkdial-failover-0.3:2] GotoIf("SIP/10-08270d80", "0 > 0 ?1-CHANUNAVAIL,1:1-out,1") in new stack
    -- Goto (macro-trunkdial-failover-0.3,1-out,1)
    -- Executing [1-out@macro-trunkdial-failover-0.3:1] Hangup("SIP/10-08270d80", "") in new stack
  == Spawn extension (macro-trunkdial-failover-0.3, 1-out, 1) exited non-zero on 'SIP/10-08270d80' in macro 'trunkdial-failover-0.3'
  == Spawn extension (DLPN_default, 0796884282, 2) exited non-zero on 'SIP/10-08270d80'

The problem seems, that l2 won’t come up. That is, for outgoing calls. No clue why incoming calls won’t work either.

My configuration looks as follows:

MISDN Stacks:

MISDN config:

/etc/mISDN.conf:
<mISDNconf>
        <module poll="128" debug="0" timer="no">hfcmulti</module>
        <module debug="0" options="0">mISDN_dsp</module>
        <devnode user="root" group="root" mode="644">mISDN</devnode>
        <card type="BN2S0">
                <port mode="nt" link="ptp">1</port>
                <port mode="nt" link="ptp">2</port>
        </card>
</mISDNconf>

Asterisk config:

[trunk_m1]
trunkname = ISDN
context = DID_trunk_m1
ports = 1ptp,2ptp
hasmisdn = yes
msns = *

Help is greatly appreciated!
stefan

Changing to TE was a good idea. That solved the problem.
RTFM… i know.