Asterisk with more PRI cards

Hello.
I am configuring the Asterisk gateway (SIP/PSTN). I have two quad span PRI cards (TE411p) installed there. The cards are detected correctly. zaptel module and wct4xxp module are loaded (modprobe -l zaptel; modprobe -l wct4xxp -> both pops up the module name). All 8 spans are configured. The command ztcfg -vvvvvv shows all 248 channels (E1 are used).

Spans in zaptel.conf :
span=1,0,0,ccs,hdb3,crc4
bchan=1-15
dchan=16
bchan=17-31
span=2,0,0,ccs,hdb3,crc4
bchan=32-46
dchan=47
bchan=48-62
span=3,0,0,ccs,hdb3,crc4
bchan=63-77
dchan=78
bchan=79-93
span=4,0,0,ccs,hdb3,crc4
bchan=94-108
dchan=109
bchan=110-124
span=5,0,0,ccs,hdb3,crc4
bchan=125-139
dchan=140
bchan=141-155
span=6,0,0,ccs,hdb3,crc4
bchan=156-170
dchan=171
bchan=172-186
span=7,0,0,ccs,hdb3,crc4
bchan=187-201
dchan=202
bchan=203-217
span=8,0,0,ccs,hdb3,crc4
bchan=218-232
dchan=233
bchan=234-248

Groups in zapata.conf :

group = 1
channel => 1-15,17-31

group = 2
channel => 32-46,48-62

group = 3
channel => 63-77,79-93

group = 4
channel => 94-108,110-124

group = 5
channel => 125-139,141-155

group = 6
channel => 156-170,172-186

group = 7
channel => 187-201,203-217

group = 8
channel => 218-232,234-248

Dialing in extensions.conf :

exten => _X.,1,Dial(Zap/g1/${EXTEN},300,r)
exten => _X.,2,Dial(Zap/g2/${EXTEN},300,r)
exten => _X.,3,Dial(Zap/g3/${EXTEN},300,r)
exten => _X.,4,Dial(Zap/g4/${EXTEN},300,r)
exten => _X.,5,Dial(Zap/g5/${EXTEN},300,r)
exten => _X.,6,Dial(Zap/g6/${EXTEN},300,r)
exten => _X.,7,Dial(Zap/g7/${EXTEN},300,r)
exten => _X.,8,Dial(Zap/g8/${EXTEN},300,r)
;exten => _X.,2,Dial(Zap/g2/${EXTEN},300,r)
;exten => _X.,4,Dial(Zap/g3/${EXTEN},300)
;exten => _X.,5,Dial(Zap/g4/${EXTEN},300)
exten => _X.,9,Congestion

My problem is following. I cannot make more than 30 calls from IP to PSTN if just single PRI line is plugged into each quad span card (two PRI active together on the different cards). Separately I can utilise all 30 channels of each port but I cannot make them to perform together more then 30 calls (e.g. I cannot make 40 calls using just two PRI on two cards).

Please could you help me to solve this issue? I browsed the Wiki’s pages and other guides but did not found solution yet. I tried to put all channels to the same group but it was not working.

Thank you very much for your help.

Best regards

Dalibor

You forgot the “busy” advance for extension priorities.

You should re-do your extension dial command priorities so that each new group is numbered as n+101.

exten => _X.,1,Dial(Zap/g1/${EXTEN},300,r)
exten => _X.,102,Dial(Zap/g2/${EXTEN},300,r)
exten => _X.,203,Dial(Zap/g3/${EXTEN},300,r)

etc, etc,…

Thank you Dufus.

Your advice helped me a lot to solve the problem (it was a key). I really appreciate your help.

Best regards.

Dalibor