Simplified Dial Plan Setup
ianobi:
<1>[2-9]xxxxxxxxx
This matches any ten digit number starting with a digit in the range 2 to 9 then prepends a "1" to that ten digit number. So you can dial a ten digit number, which gets converted into an eleven digit number starting with "1".
1xxxxxxxxxx
This matches any eleven digit number starting with a "1".
The idea behind the basic digit maps is to allow users to dial in the way they are used to - 7,10,11, digit formats - then convert those into what voip service providers want. For example, Google Voice want to only accept eleven digit numbers starting with "1" for North American numbers.
Things get a lot more interesting for those of us who do not live in North America :)
Bolt:
Okay, got it. The <1> adds one where needed, the 1xxxxxxxxxx is taking the 1 the user dialed already.
Why is it coded 1xxxxxxxxxx and not 1[2-9]xxxxxxxxx?
Thanks for the help, I'm just trying to wrap my head around the OBi code so I can implement it in other ways. Just need a few clarifications to get me going.
ianobi:
You are correct in that it can be more precise than 1xxxxxxxxxx
It could be 1[2-9]xx[2-9]xxxxxx see "North American Number Plan" for more details.
Sometimes you do need to be that precise to avoid conflicts in digit maps. However, if no conflicts are likely, then its good to keep digit maps as simple as possible.
Bolt:
Yup, I set out to simplify things, and now I'm already over complicating them.... Thanks for your help, it's people like you that make a forum great!
Navigation
[0] Message Index
[*] Previous page