said by Mango:said by OldCoalMiner:there's something I've never figured out how to do on an Obi110 dial plan, but yet is seems simple enough. And have never seen a clear solution on the Obi forums.
Don't keep us in suspense. :)
Here goes, I hope this makes sense:
Background/Usage:
- This applies to an Obi110 only, because of the Line port.
- Its for a remote administered Obi110, the type people describe as Grandma lives in timbuktu and I moved her to an Obi that I administer remotely. She keeps her laneline but all LD calls go via GV with no special dialing codes needed.
Want to implement doing using these four things:
1. Route seven digit dialed numbers to L1 or SP1/GV based on the NXX code. Examples and explanations Ive looked all do routing based on the area code.
1.a For local calls dialed as NXX-1234, route directly to the line port.
1.b For all non-local calls dialed as NXX-1234, prefix with 1-717 (or whatever area code), and send to SP1 (GV).
- The local telco allows seven digit dialing for certain numbers and bills as regional long distance (or whatever name they use). This is about half of the monthly bill.
2. Isolate the list of NXX codes in one place only, such as a user defined map. I could never get this to work. Im hoping it was only a syntax issue.
Ill be happy to get 1a and 1b working, will be very nice to get #2 working.
For #2, the local NXX codes look like this in digit map syntax.
What Ive tried:
This. It got too long, want something more compact:
<500>xxxxS0|<509>xxxxS0|<554>xxxxS0|<590>xxxxS0|<644>xxxxS0|<648>xxxxS0|<672>xxxxS0|<712>xxxxS0|<738>xxxxS0|<875>xxxxS0|<933>xxxxS0|<985>xxxxS0|
For this:
the ! (Not) operator and the
<1717>
syntax (prepend 1717) did not work the way intended, ie, if seven digit code is not in this list, the prepend 1717 to make it an eleven digit number and sent to SP1/GV.
(500|509|554|590|644|648|672|712|738|875|933|985)xxxxS0:L1, !<1717>(500|509|554|590|644|648|672|712|738|875|933|985)xxxxS0:SP1
Lets say a user created digit map is LocalRateNXX, its value is
(500|509|554|590|644|648|672|679|682|689|691|712|738|875|933|985)
I was hoping to get something like this to work:
(MLocalRateNXX)xxxxS0:L1, !<1717>(MLocalRateNXX)xxxxS0:SP1
Edit: In the preceding digit map syntax, replace [ ] with left and right brackets, for some reason the posted version is completely removing anything between "left bracket" and ">", but in the edit window version it's still there.
Edit #2: Fixed code blocks, for readability.