How do I remove 0 and and add +61?

Status
Not open for further replies.

ndakena

New Member
Nov 26, 2021
14
3
3
31
Hello Team,

I am new to FusionPBX and have been struggling with something
I want that if I dial any 10 digits number, starting with 0, the system should match the number, remove the leading 0, and add +61 before sending the call out. This is because my Australian provider only accepts calls with numbers starting with +61

Can someone help me to realize this?

Thanks very much
 

ad5ou

Active Member
Jun 12, 2018
884
197
43
Set your outbound route to match something like
Code:
^0(\d{10})$
1694697934025.png
The above condition as shown will match 11 digit numbers starting with 0 and capture the remaining 10 digits
I'm not sure if you meant 0+10 digits or 0+nine digits. If the latter, change the 10 in the regex to 9.
Then find the bridge statement at bottom of created dial plan and edit it to add a "+61" before the $1
1694698010630.png
 
  • Like
Reactions: ndakena

ndakena

New Member
Nov 26, 2021
14
3
3
31
Hello there.

That worked. Thanks a million.
 

Attachments

  • 1694699233605.png
    1694699233605.png
    26.5 KB · Views: 19
Last edited:
  • Like
Reactions: ad5ou

ndakena

New Member
Nov 26, 2021
14
3
3
31
Set your outbound route to match something like
Code:
^0(\d{10})$
View attachment 3627
The above condition as shown will match 11 digit numbers starting with 0 and capture the remaining 10 digits
I'm not sure if you meant 0+10 digits or 0+nine digits. If the latter, change the 10 in the regex to 9.
Then find the bridge statement at bottom of created dial plan and edit it to add a "+61" before the $1
View attachment 3628
That worked. Thanks a million.
 
Status
Not open for further replies.