MattJ Posted August 9 Report Share Posted August 9 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 Quote Link to comment Share on other sites More sharing options...
RichardDCG Posted August 9 Report Share Posted August 9 try pattern 0* and replace 61*? Quote Link to comment Share on other sites More sharing options...
MattJ Posted August 9 Author Report Share Posted August 9 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! Quote Link to comment Share on other sites More sharing options...
RichardDCG Posted August 9 Report Share Posted August 9 07* replace 617*? Quote Link to comment Share on other sites More sharing options...
Scott1234 Posted August 10 Report Share Posted August 10 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 Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted August 11 Report Share Posted August 11 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.