Weird ISDN port listing

Greetings everyone.

I have a computer with a 4 port ISDN BRI card (OpenVox B400P) with Asterisk and mISDN installed.

One of the problems I’m having is the weird port listing of this card. For instance, misdnportinfo tells me the following:

Port  1: unknown type 0x00000000
 -> Missing layer 1 protocol.
 -> Missing layer 2 protocol.
 -> Missing layer 3 protocol.
 -> Layer 4 protocol 0x04000001 is detected, but not allowed for TE lib.
 -> childcnt: 2
 * Port NOT useable for PBX (maybe there is already a PBX running?)
--------
Port  2: NT-mode BRI S/T interface port (for phones)
 -> Layer 2 protocol 0x02000002 is detected, but not allowed for NT lib.
 * Port NOT useable for PBX (maybe there is already a PBX running?)
--------
Port  3: TE-mode BRI S/T interface line (for phone lines)
 -> Interface is Poin-To-Point.
 -> Protocol: DSS1 (Euro ISDN)
 -> Layer 4 protocol 0x04000001 is detected, but not allowed for TE lib.
 -> childcnt: 2
 * Port NOT useable for PBX (maybe there is already a PBX running?)
--------
Port  4: TE-mode BRI S/T interface line (for phone lines)
 -> Interface is Poin-To-Point.
 -> Protocol: DSS1 (Euro ISDN)
 -> Layer 4 protocol 0x04000001 is detected, but not allowed for TE lib.
 -> childcnt: 2
 * Port NOT useable for PBX (maybe there is already a PBX running?)
--------
Port  5: NT-mode BRI S/T interface port (for phones)
 -> Layer 2 protocol 0x02000002 is detected, but not allowed for NT lib.
 * Port NOT useable for PBX (maybe there is already a PBX running?)
--------

mISDN_close: fid(3) isize(131072) inbuf(0x93dc060) irp(0x93dc060) iend(0x93dc060)

Asterisk shows me this:

localhost*CLI> misdn show stacks 
BEGIN STACK_LIST:
  * Port 1 Type TE Prot. PMP L2Link DOWN L1Link:DOWN Blocked:0  Debug:0
  * Port 2 Type NT Prot. PMP L2Link DOWN L1Link:DOWN Blocked:0  Debug:0
  * Port 3 Type TE Prot. PTP L2Link DOWN L1Link:DOWN Blocked:0  Debug:0
  * Port 4 Type TE Prot. PTP L2Link DOWN L1Link:DOWN Blocked:0  Debug:0
  * Port 5 Type NT Prot. PMP L2Link DOWN L1Link:DOWN Blocked:0  Debug:0

And here is 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="BN4S0">
                <port mode="nt" link="ptp">1</port>
                <port mode="te" link="ptp">2</port>
                <port mode="te" link="ptp">3</port>
                <port mode="nt" link="ptp">4</port>
        </card>
</mISDNconf>

Should I assume it’s safe to ignore Port 1? In that case, in /etc/asterisk/misdn.conf should I call the ports 2, 3, 4 and 5?

I intend to connect the Asterisk PBX to a Gigaset 4000 PBX(?), so, though I’m not sure about that, I’ll need a port in NT-mode to connect to it. Also, I think, the protocol should be PTP (as configured in mISDN.conf), but Asterisk is listing it as PMP. I do have the following line in /etc/asterisk/misdn.conf:

misdn_init=/etc/mISDN.conf

Thanks in advance.

-psantos

P.S.: System info:
CentOS 5 / kernel 2.6.18-92.1.13.el5 / Asterisk 1.6.0.1 / mISDN 1.1.8

Problem solved.

Happens that I had netjetpci module loaded and that was causing a series of problems with zaptel and misdn.

So I unloaded it (modprobe -r netjetpci) and added it to the modules blacklist. After that I recompiled zaptel and ran genzaptelconf -sdvM and now everything is working as intended.

Best regards,
-psantos