[asterisk-users] Newbie dialplan: dial 0 for outside line

Lee, John (Sydney) John.Lee at compuware.com
Tue Mar 4 22:51:51 CST 2008


I just managed to put in a TE410 card in an Asterisk box to work with
OnRamp 20(E1 downunder). I am able to dial in but was not able to dial
out.

Can anyone offer me some advice please?

In my extensions.conf, I just put in:

[default]
...
exten => 0,1,Dial(Zap/g1)

and I get this on the console when I dialled 0.

-- Executing [0 at default:1] Dial("SIP/5166-b76004f8", "Zap/g1") in new
stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g1LI>
-- Channel 0/1, span 1 got hangup, cause 100
-- Hungup 'Zap/1-1'
[Mar 5 15:37:01] NOTICE[10479]: cdr.c:434 ast_cdr_free: CDR on channel
'Zap/1-1' not posted
== Everyone is busy/congested at this time (1:0/0/1)
== Auto fallthrough, channel 'SIP/5166-b76004f8' status is 'CHANUNAVAIL'

The following is my set up:
----------------------------------- -----------------
# vi /etc/zaptel.conf
span=1,1,0,ccs,hdb3,crc4
bchan=1-15
bchan=17-21
unused=22-31
dchan=16
loadzone=au
defaultzone=au
----------------------------------- -----------------
[channels]
language=en
context=default

switchtype=euroisdn
pridialplan=unknown
prilocaldialplan=unknown
overlapdial=yes
priindication=outofband

signalling=pri_cpe

rxwink=300
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
restrictcid=no
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes

echocancel=yes
echocancelwhenbridged=yes
echotraining=yes

rxgain=-3.0
txgain=-6.0

callgroup=1
pickupgroup=1
immediate=no

group=1
channel => 1-15
channel => 17-21
----------------------------------- -----------------
*CLI> pri show spans
PRI span 1/0: Provisioned, Up, Active
----------------------------------- -----------------
*CLI> zap show channels
Chan Extension Context Language MOH Interpret
pseudo default en default
1 default en default
2 default en default
...
14 default en default
15 default en default
17 default en default
...
20 default en default
21 default en default
----------------------------------- -----------------
# cat /proc/zaptel/1
Span 1: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" HDB3/CCS/CRC4
Timing slips: 556

1 TE4/0/1/1 Clear (In use)
2 TE4/0/1/2 Clear (In use)
...
15 TE4/0/1/15 Clear (In use)
16 TE4/0/1/16 HDLCFCS (In use)
17 TE4/0/1/17 Clear (In use)
...
21 TE4/0/1/21 Clear (In use)
22 TE4/0/1/22 Clear
...
31 TE4/0/1/31 Clear	



More information about the asterisk-users mailing list