Outbound Route with Prefix, Urban Call Issue

l.disco

New Member
Sep 24, 2024
4
0
1
21
Hello everyone,
I need to setup Outbound route on a FusionPBX for a customer that needs the possibility to go outside with and without a 0 Prefix.

I've made two Outbound routes, ^0(\d{5,12})$ with order 100 and ^(\d{5,12})$ with Order 101.

Calls towards mobiles are ok
Either if I digit 03xxxxxxxxx or if I digit 3xxxxxxxxx the call is going to the destination 3xxxxxxxxx

But then if I try to make an urban call:
Dialling 00xxxxxxxxx I can reach correctly the 0xxxxxxxxx, but If I digit 0xxxxxxxxx the call is Forbidden.

Is there anyone who can help me?
Thank you in andvance.
 

chopsywa

New Member
Sep 23, 2024
13
1
3
63
You would need to have fixed length leading 0 numbers first and your wildcard leading 0 to strip last.

E.G. In Australia, we have 8 digit numbers with a 2 digit state code starting with 0. Also a 2 digit prefix for mobiles. These are 02 03 04 07 and 08

So I would need in front of your two rules.

^(0[23478]\d{8})$