batotech Posted February 20, 2020 Report Posted February 20, 2020 If I setup dial plan Pattern Replacement 9(\*)([0-9]*).* \1\2 Please what is the meaning of this setup? There is very little documentation on dial plans. Quote
Support Posted February 20, 2020 Report Posted February 20, 2020 We do have documentation about this part exactly as well: If you Ctrl + F for "\1" or "\2" on this https://doc.vodia.com/domain_dialplans , you will know more. Quote
Vodia PBX Posted February 20, 2020 Report Posted February 20, 2020 The \* means match a * character. So this pattern would match e.g. 9*1234. Usually you don't need those complex (and powerful) "extended regular expression", simple expressions do 99 % of the job... Quote
koolandrew Posted April 25, 2020 Report Posted April 25, 2020 I have looked through the dial plans section several times, and it really doesnt tell the story. How do you change + to 011, and what does these replacements mean: sip*1\@\d;user=phone sip:\1@\r sip:\1@\r;user=phone Surely there must be an explanation somewhere of what this all means...please Quote
Vodia PBX Posted April 26, 2020 Report Posted April 26, 2020 With the latest dial plan handling you can control how the PBX feeds numbers into the pattern matching. For example you can feed the numbers in E164 format if that makes your life easier. You could then match 011* and replace it with +* (not sure if that works) or sip:+\1@\d (this should work). Quote
koolandrew Posted April 27, 2020 Report Posted April 27, 2020 Thanks for the reply but you have it backwards. +44XXXXXXXXXX needs to be changed to 01144XXXXXXXXX (the XX are simply the number after the 44) +1XXXXXXXXXX needs to be changed to 1XXXXXXXXXX Thanks Quote
Vodia PBX Posted April 29, 2020 Report Posted April 29, 2020 We should look on the process on how the dialed number gets from the original caller to the trunk. When the PBX feeds the number into the dial plan, it formats the number (by default) into the "human readable" country-code dependent format. In the US that would be 01144xxx. Then the replacement comes up with the destination number, which is then fed into to SIP trunk which may reformat the number once again. Keeping this in mind my approach would be to turn logging on and look at the numbers as they go through this process and then make adjustments to the dial plan and the presentation in the trunk. Quote
koolandrew Posted April 30, 2020 Report Posted April 30, 2020 i am not sure what all this means. All i am trying to do is remove the + from a dialled number. From +1 to 1 and from +44 (for example) to 01144....from the dial plan. I dont think it can be done, and all i am asking is for a confirmation. If it can only be done from a trunk then again, i am all ears. This should be straightforward. Thanks Quote
Vodia PBX Posted April 30, 2020 Report Posted April 30, 2020 I think the only place where you will have to change anything is on your SIP trunk header. This is not a problem of the dial plan. E.g. there is a setting in the SIP trunk that tells the PBX to present the number in E164 format (which is without the leading +). Quote
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.