TE110P sending one extra zero

Hello,

I have a problem with the new ISDN line, and I’m not sure where this problem is from.

I’ve setup the card this way:

In zaptel.conf:

span=1,1,0,ccs,hdb3,crc4
bchan=1-15,17-31 # set this to 1-15,17-31 for E1
dchan=16 # set this to 16 for E1
defaultzone=us
loadzone=us

In zapata.conf:

signalling=pri_cpe ; pri_cpe = PRI slave ; pri_net = PRI master
switchtype=euroisdn
echocancel=yes ; You can set this to 32, 64, or 128, tweak to your needs.
echocancelwhenbridged=yes
echotraining=400 ; Asterisk trains to the beginning of the call, number is in milliseconds
callerid=asreceived
group=1
context=from-isdn ; Points to the default context of your extensions.conf
channel => 1-15,17-31 ; Set this to 1-15,17-31 for E1

In extensions.conf:
[sip]
exten => _XXX.,1,Dial(zap/1/${EXTEN})

I can receive calls, but when I dial I get CHANUNAVAIL.

I’ve talked to the tech support at my telco and they told me I’m sending one extra zero at the beginning.

I tried to change from switchtype=euroisdn to switchtype=national and it’s exactly the same.

Is there something I must change somewhere else ?

Thank you.

In the meantime, I’ve found the solution.

pridialplan=local