Missing 0 from CLI on all inbound calls via Zap Trunk


We are using a Zap channel to connect to an external BRI Gateway ( Xorcom ) and everything works fine apart from all inbound external calls are missing the leading zero.

Although this is not a life or death problem it does mean you can’t use dial missed or received numbers from your desk phone which is a pain.

We are using Trixbox 2.2.12 with BRI Stuff installed.

I have tried various syntaxes but none of them seem to work. I found this one in one of the other forums


include => from-sip-external
exten => s/[3-8]XXXXXXX,1,Set(CALLERID(num)=0${CALLERID(num)})
exten => s/
exten => s/_X.,1, Noop
exten => s,n,Goto(from-zaptel,${EXTEN},1)

but it doesn’t work, I have read somewhere that Trixbox does not support from-zaptel-custom so i used

grep from-zaptel-custom ext*

but that hasn’t made any difference.

Can anyone point me in the right direction please.

Many Thanks…Pigsfoot

You could add the following to your dial rules on the trunks you use to dial out.


You would need to supply the match pattern to work in your area. This will prepend the “0” at the time the oubound call is made.


Thansk for the reply but the problem is only with incomming calls not outgoing ones.



I understand. This is offered as a hack to get your redial buttons working.