[Asterisk-Users] PRI Issue: D-Channel woes

Terence Burnard terenceburnard at knet.ca
Sun Apr 30 22:42:37 MST 2006


Hi,

I am about to pull my hair out after trying to get our PRI up and working.
 We are switching from a Cisco gateway to an Asterisk box which provides
the 23 phone lines for our office.  So, because the Cisco gateway is
working I can assume  I have all the settings right (b8zs, esf, dms100,
etc) and the PRI is live (because we are switching over).  When dialing
from PSTN, I get busy signal. When dialing to the PSTN from the asterisk
box I get the following error:

== Primary D-Channel on span 1 down
Apr 30 23:29:32 WARNING[12830]: chan_zap.c:2290 pri_find_dchan: No
D-channels available!  Using Primary channel 24 as D-channel anyway!
    -- Hungup 'Zap/1-1'
  == Everyone is busy/congested at this time (1:0/0/1)

Below is the relevant information, if anyone could assist me at all it
would be greatly appreciated.

Thanks,

Terence






# lsmod

Module                  Size  Used by
wcusb                  21760  0
wctdm                  36512  0
wcfxo                  13408  0
wcte11xp               24896  0
wct1xxp                16544  0
wct4xxp                97664  24
tor2                   89856  0
zaptel                188452  59
wcusb,wctdm,wcfxo,wcte11xp,wct1xxp,wct4xxp,tor2
hdlc                   23552  0
lapb                   13312  1 hdlc
syncppp                14076  1 hdlc
ipv6                  221696  12
ip_vs                  71392  0
joydev                  8864  0
evdev                   8800  0
crc_ccitt               1952  1 zaptel
mousedev               10496  0
psmouse                32356  0
serio_raw               6468  0
i2c_i801                7916  0
shpchp                 39712  0
pci_hotplug            24756  1 shpchp
i2c_core               19280  1 i2c_i801
rtc                    11316  0
pcspkr                  1668  0
ext3                  117768  2
jbd                    48404  1 ext3
mbcache                 8484  1 ext3
ide_generic             1120  0 [permanent]
ide_cd                 36484  0
cdrom                  33280  1 ide_cd
sd_mod                 17136  4
piix                    8964  0 [permanent]
ata_piix                8964  3
libata                 51020  1 ata_piix
scsi_mod              125736  2 sd_mod,libata
ehci_hcd               28904  0
tg3                    89540  0
generic                 4260  0 [permanent]
ide_core              112800  4 ide_generic,ide_cd,piix,generic
uhci_hcd               28016  0
usbcore               113284  4 wcusb,ehci_hcd,uhci_hcd
thermal                13416  0
processor              22912  1 thermal
fan                     4580  0


# cat /proc/interrupts

           CPU0
  0:    3517028    IO-APIC-edge  timer
  1:         12    IO-APIC-edge  i8042
  4:          5    IO-APIC-edge  serial
  8:          0    IO-APIC-edge  rtc
  9:          1   IO-APIC-level  acpi
 14:         64    IO-APIC-edge  ide0
 50:      14624   IO-APIC-level  uhci_hcd:usb1, libata, ehci_hcd:usb4
 66:    3479230   IO-APIC-level  wct4xxp
169:      37440   IO-APIC-level  eth0
177:          0   IO-APIC-level  uhci_hcd:usb2
185:          0   IO-APIC-level  uhci_hcd:usb3
NMI:          0
LOC:    3517023
ERR:          0
MIS:          0


# cat /proc/zaptel/1

Span 1: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" B8ZS/ESF ClockSource

           1 TE4/0/1/1 Clear (In use)
           2 TE4/0/1/2 Clear (In use)
           3 TE4/0/1/3 Clear (In use)
           4 TE4/0/1/4 Clear (In use)
           5 TE4/0/1/5 Clear (In use)
           6 TE4/0/1/6 Clear (In use)
           7 TE4/0/1/7 Clear (In use)
           8 TE4/0/1/8 Clear (In use)
           9 TE4/0/1/9 Clear (In use)
          10 TE4/0/1/10 Clear (In use)
          11 TE4/0/1/11 Clear (In use)
          12 TE4/0/1/12 Clear (In use)
          13 TE4/0/1/13 Clear (In use)
          14 TE4/0/1/14 Clear (In use)
          15 TE4/0/1/15 Clear (In use)
          16 TE4/0/1/16 Clear (In use)
          17 TE4/0/1/17 Clear (In use)
          18 TE4/0/1/18 Clear (In use)
          19 TE4/0/1/19 Clear (In use)
          20 TE4/0/1/20 Clear (In use)
          21 TE4/0/1/21 Clear (In use)
          22 TE4/0/1/22 Clear (In use)
          23 TE4/0/1/23 Clear (In use)
          24 TE4/0/1/24 HDLCFCS (In use)


# ztcfg -vvvvvvvv

Zaptel Configuration
======================

SPAN 1: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: Clear channel (Default) (Slaves: 16)
Channel 17: Clear channel (Default) (Slaves: 17)
Channel 18: Clear channel (Default) (Slaves: 18)
Channel 19: Clear channel (Default) (Slaves: 19)
Channel 20: Clear channel (Default) (Slaves: 20)
Channel 21: Clear channel (Default) (Slaves: 21)
Channel 22: Clear channel (Default) (Slaves: 22)
Channel 23: Clear channel (Default) (Slaves: 23)
Channel 24: D-channel (Default) (Slaves: 24)

24 channels configured.

# cat /etc/zaptel.conf

span=1,0,0,esf,b8zs
bchan=1-23
dchan=24
loadzone=us
defaultzone=us


# cat /etc/asterisk/zapata.conf

[trunkgroups]

[channels]
context=pri_inbound
switchtype=dms100
signalling=pri_cpe
group=1
channel => 1-23



*CLI> zap show status
Description                              Alarms     IRQ        bpviol    
CRC4
T4XXP (PCI) Card 0 Span 1                OK         0          0          0
T4XXP (PCI) Card 0 Span 2                UNCONFIGUR 0          0          0
T4XXP (PCI) Card 0 Span 3                UNCONFIGUR 0          0          0
T4XXP (PCI) Card 0 Span 4                UNCONFIGUR 0          0          0



*CLI> pri show span 1
Primary D-channel: 24
Status: Provisioned, Down, Active
Switchtype: Nortel DMS100
Type: CPE
Window Length: 0/7
Sentrej: 0
SolicitFbit: 0
Retrans: 0
Busy: 0
Overlap Dial: 0
T200 Timer: 1000
T203 Timer: 10000
T305 Timer: 30000
T308 Timer: 4000
T313 Timer: 4000
N200 Counter: 3



*CLI> pri intense debug span 1

> Unnumbered frame:
> SAPI: 00  C/R: 0 EA: 0
>  TEI: 000        EA: 1
>   M3: 3   P/F: 1 M2: 3 11: 3  [ SABME (set asynchronous balanced mode
extended) ]
> 0 bytes of data
Sending Set Asynchronous Balanced Mode Extended

> [ 00 01 7f ]

> Unnumbered frame:
> SAPI: 00  C/R: 0 EA: 0
>  TEI: 000        EA: 1
>   M3: 3   P/F: 1 M2: 3 11: 3  [ SABME (set asynchronous balanced mode
extended) ]
> 0 bytes of data
Sending Set Asynchronous Balanced Mode Extended

> [ 00 01 7f ]

> Unnumbered frame:
> SAPI: 00  C/R: 0 EA: 0
>  TEI: 000        EA: 1
>   M3: 3   P/F: 1 M2: 3 11: 3  [ SABME (set asynchronous balanced mode
extended) ]
> 0 bytes of data
Sending Set Asynchronous Balanced Mode Extended

> [ 00 01 7f ]

> Unnumbered frame:
> SAPI: 00  C/R: 0 EA: 0
>  TEI: 000        EA: 1
>   M3: 3   P/F: 1 M2: 3 11: 3  [ SABME (set asynchronous balanced mode
extended) ]
> 0 bytes of data
Sending Set Asynchronous Balanced Mode Extended

and on, and on, and on




# cat /var/log/messages

Apr 30 23:52:58 asterisk kernel: Zaptel Version: 1.2.5 Echo Canceller: KB1
Apr 30 23:52:59 asterisk kernel: Registered Tormenta2 PCI
Apr 30 23:52:59 asterisk kernel: ACPI: PCI Interrupt 0000:03:02.0[A] ->
GSI 35 (level, low) -> IRQ 66
Apr 30 23:52:59 asterisk kernel: Found TE4XXP at base address fe9ffc00,
remapped to f883cc00
Apr 30 23:52:59 asterisk kernel: TE4XXP version c01a0164, burst OFF, slip
debug: OFF
Apr 30 23:52:59 asterisk kernel: FALC version: 00000005, Board ID: 00
Apr 30 23:52:59 asterisk kernel: Reg 0: 0x3123a400
Apr 30 23:52:59 asterisk kernel: Reg 1: 0x3123a000
Apr 30 23:52:59 asterisk kernel: Reg 2: 0xffffffff
Apr 30 23:52:59 asterisk kernel: Reg 3: 0x00000000
Apr 30 23:52:59 asterisk kernel: Reg 4: 0x0000ff01
Apr 30 23:52:59 asterisk kernel: Reg 5: 0x00000000
Apr 30 23:52:59 asterisk kernel: Reg 6: 0xc01a0164
Apr 30 23:52:59 asterisk kernel: Reg 7: 0x00001000
Apr 30 23:52:59 asterisk kernel: Reg 8: 0x00000000
Apr 30 23:52:59 asterisk kernel: Reg 9: 0x00ff00ff
Apr 30 23:52:59 asterisk kernel: Reg 10: 0x00000000
Apr 30 23:52:59 asterisk kernel: TE4XXP: Launching card: 0
Apr 30 23:52:59 asterisk kernel: TE4XXP: Setting up global serial parameters
Apr 30 23:52:59 asterisk kernel: Found a Wildcard: Wildcard TE410P (2nd Gen)
Apr 30 23:52:59 asterisk kernel: About to enter spanconfig!
Apr 30 23:52:59 asterisk kernel: Done with spanconfig!
Apr 30 23:52:59 asterisk kernel: Registered tone zone 0 (United States /
North America)
Apr 30 23:52:59 asterisk kernel: About to enter startup!
Apr 30 23:52:59 asterisk kernel: TE4XXP: Span 1 configured for ESF/B8ZS
Apr 30 23:52:59 asterisk kernel: wct4xxp: Setting yellow alarm on span 1
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0c, GIS
= 0080
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0a, GIS
= 0080
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0a, GIS
= 0080
Apr 30 23:52:59 asterisk kernel: VPM: Span 0 U-law mode
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0a, GIS
= 0080
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0a, GIS
= 0080
Apr 30 23:52:59 asterisk kernel: VPM: DTMF threshold set to 1000
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0a, GIS
= 0080
Apr 30 23:52:59 asterisk kernel: VPM: Span 1 U-law mode
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0a, GIS
= 0080
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0a, GIS
= 0080
Apr 30 23:52:59 asterisk kernel: VPM: DTMF threshold set to 1000
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0a, GIS
= 0080
Apr 30 23:52:59 asterisk kernel: VPM: Span 2 U-law mode
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0a, GIS
= 0080
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0a, GIS
= 0080
Apr 30 23:52:59 asterisk kernel: VPM: DTMF threshold set to 1000
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0a, GIS
= 0080
Apr 30 23:52:59 asterisk kernel: VPM: Span 3 U-law mode
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0b, GIS
= 0081
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0a, GIS
= 0080
Apr 30 23:52:59 asterisk kernel: VPM: DTMF threshold set to 1000
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0a, GIS
= 0080
Apr 30 23:52:59 asterisk last message repeated 2 times
Apr 30 23:52:59 asterisk kernel: VPM: DTMF threshold set to 1000
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0a, GIS
= 0080
Apr 30 23:52:59 asterisk kernel: 2G: Got interrupt, status = 0000ff0a, GIS
= 0080
Apr 30 23:52:59 asterisk kernel: VPM: DTMF threshold set to 1000
Apr 30 23:52:59 asterisk last message repeated 2 times
Apr 30 23:52:59 asterisk kernel: VPM(2nd Gen): Present and operational
servicing 4 span(s)
Apr 30 23:52:59 asterisk kernel: Completed startup!
Apr 30 23:52:59 asterisk kernel: About to enter spanconfig!
Apr 30 23:52:59 asterisk kernel: About to enter startup!
Apr 30 23:52:59 asterisk kernel: TE4XXP: Span 1 configured for ESF/B8ZS
Apr 30 23:52:59 asterisk kernel: Completed startup!
Apr 30 23:52:59 asterisk kernel: Registered tone zone 0 (United States /
North America)
Apr 30 23:52:59 asterisk kernel: About to enter spanconfig!
Apr 30 23:52:59 asterisk kernel: About to enter startup!
Apr 30 23:52:59 asterisk kernel: TE4XXP: Span 1 configured for ESF/B8ZS
Apr 30 23:52:59 asterisk kernel: Completed startup!
Apr 30 23:52:59 asterisk kernel: Registered tone zone 0 (United States /
North America)
Apr 30 23:52:59 asterisk kernel: About to enter spanconfig!
Apr 30 23:52:59 asterisk kernel: About to enter startup!
Apr 30 23:52:59 asterisk kernel: TE4XXP: Span 1 configured for ESF/B8ZS
Apr 30 23:52:59 asterisk kernel: Completed startup!
Apr 30 23:52:59 asterisk kernel: Registered tone zone 0 (United States /
North America)
Apr 30 23:52:59 asterisk kernel: About to enter spanconfig!
Apr 30 23:52:59 asterisk kernel: About to enter startup!
Apr 30 23:52:59 asterisk kernel: TE4XXP: Span 1 configured for ESF/B8ZS
Apr 30 23:52:59 asterisk kernel: Completed startup!
Apr 30 23:52:59 asterisk kernel: Registered tone zone 0 (United States /
North America)
Apr 30 23:52:59 asterisk kernel: usbcore: registered new driver wcusb
Apr 30 23:52:59 asterisk kernel: Wildcard USB FXS Interface driver registered
Apr 30 23:52:59 asterisk kernel: About to enter spanconfig!
Apr 30 23:52:59 asterisk kernel: About to enter startup!
Apr 30 23:52:59 asterisk kernel: TE4XXP: Span 1 configured for ESF/B8ZS
Apr 30 23:52:59 asterisk kernel: Completed startup!
Apr 30 23:52:59 asterisk kernel: Registered tone zone 0 (United States /
North America)
Apr 30 23:53:02 asterisk kernel: About to enter spanconfig!
Apr 30 23:53:02 asterisk kernel: About to enter startup!
Apr 30 23:53:02 asterisk kernel: TE4XXP: Span 1 configured for ESF/B8ZS
Apr 30 23:53:02 asterisk kernel: Completed startup!
Apr 30 23:53:02 asterisk kernel: Registered tone zone 0 (United States /
North America)
Apr 30 23:53:07 asterisk kernel: wct4xxp: Clearing yellow alarm on span 1





More information about the asterisk-users mailing list