Outbound E1 PRI help needed

Hello all,

I am currently testing an Asterisk setup using a Digium TE220 on a BT isdn30. So far I am able to accept and route incoming calls and I can make outgoing calls as long as I drop the leading 0. So if I want to dial 90161xxxxxxx I have to dial 9161xxxxxxx.

My main problem at this point is that I need to be able to dial out using the leading 0. Currently 0161xxxxxxx gives “number not recognised” error. What do I need to look at to be able to dial that.

Also anything in my config missing or that doesn’t need to be there?

Sent email to Digium support last week still no reply.

Please help.

Thanks in advance.

Here is my zaptel config file.

Autogenerated by /usr/sbin/genzaptelconf – do not hand edit

Zaptel Configuration File

This file is parsed by the Zaptel Configurator, ztcfg

It must be in the module loading order

Span 1: TE2/0/1 “T2XXP (PCI) Card 0 Span 1” (MASTER)

span=1,1,0,ccs,hdb3,crc4

termtype: te

bchan=1-15,17-31
dchan=16

Span 2: TE2/0/2 “T2XXP (PCI) Card 0 Span 2”

span=2,2,0,ccs,hdb3,crc4

termtype: te

bchan=32-46,48-62
dchan=47

Global data

loadzone = uk
defaultzone = uk

ZAPATA.CONF - # lines are lines I’m not sure about on ISDN30

;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

language=en
context=from-zaptel
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

usecallerid=yes
callerid=asreceived
#cidsignalling=v23
#cidstart=polarity
sendcalleridafter=2
#answeronpolarityswitch=no
#hanguponpolarityswitch=no
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
;echotraining=800
rxgain=0.0
txgain=0.0
#group=1
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include genzaptelconf configs
include zapata-auto.conf

group=1
signalling=pri_cpe

pri_cpe = PRI slave ; pri_net = PRI master

switchtype=euroisdn
channel =>1-15,17-31

nationalprefix=0
internationalprefix=00
localprefix=0161
pridialplan=unknown
prilocaldialplan=unknown
resetinterval=never
facilityenable=enable

;Include AMP configs

pridialplan should control this. However, it may simply be easier to strip the 0 as well as the 9, in the extensions.conf logic.

Your network seems to be expecting “national” format.

Sorry, I don’t have any PRI lines, so I can’t authoratatively tell you which to use, but my guess would be dynamic or redundant.

thanks for the reply. I have set pridial to various options and even commented it out. Still need to drop the leading 0 when I dial which is annoying.

Most posts relating to this seem to be fixed by setting the pridial options but in my case it doesnt’ help.

Currently this is about the only problem I have, incoming calls work fine, and outgoing calls work only when I drop the leading 0 which will be annoying for end users, to not acceptable really.

Quite frustrating.

post ur extenssion.conf file. i hope ur dialplan can solve the issue.

Hi

your zapata.conf is not correct

the ending needs to look like

[code]pridialplan=unknown
prilocaldialplan=unknown
resetinterval=never
facilityenable=enable
group=1
signalling=pri_cpe

pri_cpe = PRI slave ; pri_net = PRI master

switchtype=euroisdn
channel =>1-15,17-31[/code]

This is an example form a working system

switchtype=euroisdn usecallerid=yes hidecallerid=no ;callwaiting=no ;callwaitingcallerid=yes restrictcid=no usecallingpres=yes ;threewaycalling=yes ;callreturn=no ;transfer=no ;cancallforward=yes echotraining=yes echocancelwhenbridged=yes echocancel=yes musiconhold=default rxgain=0.0 txgain=0.0 signalling=pri_cpe overlapdial=yes pridialplan=unknown prilocaldialplan=unknown priindication=outofband resetinterval = never channel => 1-10

Ian
www.cyber-cottage.co.uk

Hello Ian

actually i wanted to see the dialplan mean extenssion.conf file. Ok suppos u have a number like 91850344587. u want to remove 91 from the number and want to add 0 before dialing it. here is the example i have

exten => _X.,1,Dial(SIP/g1/0${EXTEN:2})

here g1 mean ur pri channel from 1-15, 17-31. hope it will help u

Hi

The problem lies in the fact that the zapata.conf has errors in it.

and the fact that this works points to the zapata.conf as it specifies leading digits.

Ian

[quote=“ianplain”]Hi

your zapata.conf is not correct

the ending needs to look like

[code]pridialplan=unknown
prilocaldialplan=unknown
resetinterval=never
facilityenable=enable
group=1
signalling=pri_cpe

pri_cpe = PRI slave ; pri_net = PRI master

switchtype=euroisdn
channel =>1-15,17-31[/code]

This is an example form a working system

switchtype=euroisdn usecallerid=yes hidecallerid=no ;callwaiting=no ;callwaitingcallerid=yes restrictcid=no usecallingpres=yes ;threewaycalling=yes ;callreturn=no ;transfer=no ;cancallforward=yes echotraining=yes echocancelwhenbridged=yes echocancel=yes musiconhold=default rxgain=0.0 txgain=0.0 signalling=pri_cpe overlapdial=yes pridialplan=unknown prilocaldialplan=unknown priindication=outofband resetinterval = never channel => 1-10

Ian
www.cyber-cottage.co.uk[/quote]

thank you very much, I replaced the config at the bottom with yours and that sorted it. I figured it was a config error but wasn’t sure where.

Thanks to both of you for you help. :smile: