Asterisk issue with zap device

Hi,

I am facing strange issue with zap lines.
Below are my configurations

Asterisk Version : Asterisk 1.4.21
System : Centos 5.2


lspci shows:

Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface


[root@localhost ~]# ztcfg -vvvvvvvvvvvvvvv

Zaptel Version: 1.4.12.1
Echo Canceller: MG2
Configuration

SPAN 1: CCS/HDB3 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: D-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: Clear channel (Default) (Slaves: 24)
Channel 25: Clear channel (Default) (Slaves: 25)
Channel 26: Clear channel (Default) (Slaves: 26)
Channel 27: Clear channel (Default) (Slaves: 27)
Channel 28: Clear channel (Default) (Slaves: 28)
Channel 29: Clear channel (Default) (Slaves: 29)
Channel 30: Clear channel (Default) (Slaves: 30)
Channel 31: Clear channel (Default) (Slaves: 31)

31 channels to configure.


[root@localhost ~]# ztscan
[1]
active=yes
alarms=OK
description=Digium Wildcard TE110P T1/E1 Card 0
name=WCT1/0
manufacturer=Digium
devicetype=Digium Wildcard TE110P T1/E1
location=PCI Bus 03 Slot 02
basechan=1
totchans=31
irq=58
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS

/etc/zaptel.conf

span=1,1,0,ccs,hdb3,crc4
bchan=1-15,17-31
dchan=16
loadzone = uk
defaultzone = uk

/etc/asterisk/zapata.conf

context=from-pstn
switchtype = euroisdn
signalling = pri_cpe

group=1
channel => 1-15

group=2
signalling=pri_cpe
channel => 17-21

group=3
signalling=pri_cpe
channel => 22-26

group=4
signalling=pri_cpe
channel => 27-31

Problem : I am using dialer for my agents to make outbound calls. but everything goes fine initially but when the number of outbound calls increasing, the zap lines goes busy. And gives the following error.

– Executing [xxxxxxxxx@default:2] Dial(“Local/xxxxxxxx@default-5b92,2”, “zap/g1/xxxxxxxxxxx||tTo”) in new stack
[Jul 24 15:18:31] WARNING[26549]: app_dial.c:1183 dial_exec_full: Unable to create channel of type ‘zap’ (cause 34 - Circuit/channel congestion)
== Everyone is busy/congested at this time (1:0/1/0)

I have checked my hardware with engineer, he said its working fine.

Can any one please help me?
I tried every thing but its not working.
Please help me.

Thanks in advance

How many simultaneous outbound calls? How many B channels have you bought?

Thanks for quick reply.

we are sending Approximately 20-25 calls simultaneous.
But when this calls exceed around 18 zap lines all the channels are stucked.

Didn’t get you about "How many B channels have you bought"
Can you Please explain me.

Thanks,

The B channels are the channels identified by bchans in the configuration. It is possible that you have not rented all 30 of them, in which case trying to use excess ones will result in congestion being reported.

If you do have more than 18 channels, you will need to find out the states of the channels when things go wrong, to get an idea of why Asterisk thinks they are busy.

here is output of the asterisk cli…

localhost*CLI> zap show channels
Chan Extension Context Language MOH Interpret
pseudo from-pstn default
1 from-pstn default
2 from-pstn default
3 from-pstn default
4 from-pstn default
5 from-pstn default
6 from-pstn default
7 from-pstn default
8 from-pstn default
9 from-pstn default
10 from-pstn default
11 from-pstn default
12 from-pstn default
13 from-pstn default
14 from-pstn default
15 from-pstn default
17 from-pstn default
18 from-pstn default
19 from-pstn default
20 from-pstn default
21 from-pstn default
22 from-pstn default
23 from-pstn default
24 from-pstn default
25 from-pstn default
26 from-pstn default
27 from-pstn default
28 from-pstn default
29 from-pstn default
30 from-pstn default
31 from-pstn default

localhost*CLI> zap show status
Description Alarms IRQ bpviol CRC4
Digium Wildcard TE110P T1/E1 Card 0 OK 0 0 0

I have checked, my lines are hangup properly. but after around 17-18 channels always i got same error…
no doubt initially calls are going fine.

– Executing [xxxxxxxxx@default:2] Dial(“Local/xxxxxxxx@default-5b92,2”, “zap/g1/xxxxxxxxxxx||tTo”) in new stack
[Jul 24 15:18:31] WARNING[26549]: app_dial.c:1183 dial_exec_full: Unable to create channel of type ‘zap’ (cause 34 - Circuit/channel congestion)
== Everyone is busy/congested at this time (1:0/1/0)

I’ll need to leave this to someone more familiar with zap channels, however that command does not seem to be displaying the call state of the channels.

Maybe the best you are going to get is the result of core show channels.