Remove number in outgoing calls


#1

Hi,

I’d like to remove some numbers in a phone number when my user make a call.
For example, in belgium, when we want to call French phone number, we need to remove 0 from the zone prefix and to add 0033 and I’d like to remove this prefix and to add the removed 0.
I’d like to do this because I redirect all number beginning by 0033 to one of my french asterisk via iax2 and French operators don’t accept call beginning by 0033…
So, how can I do that ?

Thanks in advance for your help !


#2

To remove the first digit:

Dial(ZAP/1/${EXTEN:1},)

To add 0033 and remove the first 2 digits the user dialed:

Dial(ZAP/1/0033${EXTEN:2})


#3

Thank you very much !!!
Everything works perfectly now !