Jump to content

Dial Plan digit replacement


MattJ

Recommended Posts

Hi Everyone, 

I am trying to write an entry for a dial plan, that will strip the first digit from a number - then append 2 other digits. 

For example, I need my client to be able to dial 07xxxxxxxx and then the call go out as 617xxxxxxxx

Can anyone tell me how to do that in Vodia please?

Thanks

Matt

Link to comment
Share on other sites

That is what I have gone with after a bunch of playing around - it is not exactly what I was thinking. But it does work.

We were only looking at doing it with 07 numbers on the plan (we also have 02, 03, 08 etc that we deal with) - I come from a 3CX background, so the outbound rule building requires a little bit of a shift in how I look at them. 

 

Thanks for the help! 

Link to comment
Share on other sites

21 hours ago, MattJ said:

Hi Everyone, 

I am trying to write an entry for a dial plan, that will strip the first digit from a number - then append 2 other digits. 

For example, I need my client to be able to dial 07xxxxxxxx and then the call go out as 617xxxxxxxx

Can anyone tell me how to do that in Vodia please?

Thanks

Matt

Sharing is caring. Just create a dial plan for each state replacing +613 with +612 etc.  And or remove + depending on what you are doing. 

2;o-trk1;;000;+61000;;false
20;o-trk1;;^([0-9]{8})@;+613*;;false
22;o-trk1;;^0([0-9]{9})@|^61([0-9]{9})@;+61*;;false
24;o-trk1;;^([18,13][0-9]{9}|13[0-9]{4})@;+*;;false
80;o-trk1;;+*;+*;;false
82;o-trk1;;0011*;+*;;false

 

Link to comment
Share on other sites

On 8/9/2023 at 2:20 AM, MattJ said:

For example, I need my client to be able to dial 07xxxxxxxx and then the call go out as 617xxxxxxxx

How about pattern 07xxxxxxxx and replacement 617xxxxxxxx? 😀

Anyhow, IMHO numbers today should be like you would enter them on your cell phone. This is what everybody understands. Be careful with prefixes when it comes to emergency numbers. When someone dials 911 (in the USA) they must reach the emergency service, without any prefix. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...