Asterisk with pri + analog , cant go out from pri card

Hi .

i have analog card and pri card on the same asterisk server .
i can setup the outbound routes to go out (g0) which is group 0 of the analog card .
but i cant go out of the pri i tried (g0,16) and g16 , but always have circuits busy .

i just want to know how to have the control of dial out from analog group line or digital group lines ???
i will post my dahdi config below :
root@pbx:~ $ dahdi_scan
[1]
active=yes
alarms=OK
description=T4XXP (PCI) Card 0 Span 1
name=TE4/0/1
manufacturer=Digium
devicetype=Wildcard TE405P (3rd Gen)
location=PCI Bus 03 Slot 02
basechan=1
totchans=24
irq=0
type=digital-T1
syncsrc=1
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF
[2]
active=yes
alarms=OK
description=T4XXP (PCI) Card 0 Span 2
name=TE4/0/2
manufacturer=Digium
devicetype=Wildcard TE405P (3rd Gen)
location=PCI Bus 03 Slot 02
basechan=25
totchans=24
irq=0
type=digital-T1
syncsrc=1
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF
[3]
active=yes
alarms=OK
description=T4XXP (PCI) Card 0 Span 3
name=TE4/0/3
manufacturer=Digium
devicetype=Wildcard TE405P (3rd Gen)
location=PCI Bus 03 Slot 02
basechan=49
totchans=24
irq=0
type=digital-T1
syncsrc=1
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF
[4]
active=yes
alarms=OK
description=T4XXP (PCI) Card 0 Span 4
name=TE4/0/4
manufacturer=Digium
devicetype=Wildcard TE405P (3rd Gen)
location=PCI Bus 03 Slot 02
basechan=73
totchans=24
irq=0
type=digital-T1
syncsrc=1
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF
[5]
active=yes
alarms=OK
description=T2XXP (PCI) Card 1 Span 1
name=TE2/1/1
manufacturer=Digium
devicetype=Wildcard TE205P (3rd Gen) (VPMOCT064)
location=PCI Bus 03 Slot 03
basechan=97
totchans=24
irq=0
type=digital-T1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF
[6]
active=yes
alarms=OK
description=T2XXP (PCI) Card 1 Span 2
name=TE2/1/2
manufacturer=Digium
devicetype=Wildcard TE205P (3rd Gen) (VPMOCT064)
location=PCI Bus 03 Slot 03
basechan=121
totchans=24
irq=0
type=digital-T1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF
root@pbx:~ $
root@pbx:~ $ cat /etc/asterisk/chan_dahdi.conf

[general]

; generated by module
#include chan_dahdi_general.conf

; for user additions not provided by module
#include chan_dahdi_general_custom.conf

[channels]
language=en
busydetect=yes
busycount=10
usecallerid=yes
callwaiting=yes
usecallingpres=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=no
immediate=no
faxdetect=no
rxgain=0.0
txgain=0.0

root@pbx:~ $ dahdi_genconf

; Span 1: TE4/0/1 “T4XXP (PCI) Card 0 Span 1” (MASTER) ESF/B8ZS ClockSource
group=0,11
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 1-23
context = default
group = 63

; Span 2: TE4/0/2 “T4XXP (PCI) Card 0 Span 2” ESF/B8ZS
group=0,12
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 25-47
context = default
group = 63

; Span 3: TE4/0/3 “T4XXP (PCI) Card 0 Span 3” ESF/B8ZS
group=0,13
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 49-71
context = default
group = 63

; Span 4: TE4/0/4 “T4XXP (PCI) Card 0 Span 4” ESF/B8ZS
group=0,14
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 73-95
context = default
group = 63

; Span 5: TE2/1/1 “T2XXP (PCI) Card 1 Span 1” ESF/B8ZS
group=0,15
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 97-119
context = default
group = 63

; Span 6: TE2/1/2 “T2XXP (PCI) Card 1 Span 2” ESF/B8ZS
group=0,16
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 121-143
context = default
group = 63

root@pbx:~ $

cheers

Dahdi genconf shows that you have a 4 port PRI card and a 2 port PRI card. No analog card.
If you can dial out with g0 and you have plugged only one PRI connection that means it works fine. You shall check if you have a second cable plugged in the last port that is the one used from g16.

sorry for my confusing .

my question shoudl be asked as below :

how to go out of this 2nd port of the 2nd card only
this below exactly i mean

; Span 6: TE2/1/2 “T2XXP (PCI) Card 1 Span 2” ESF/B8ZS
group=0,16
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 121-143
context = default
group = 63
???

cheers

You should dial through g16

exten => _XXXX.,1,Dial(DAHDI/g16/${EXTEN})

Before you try, you should check with dahdi_tool if you have any alarms on the specific port.
Also running pri show spans through the asterisk cli will output the current state of the port.
It should be up and active.