VNB1
Welcome to the forum! There's lots of helpful people here, but not many of us Brits seem to be very active here.
First read this:
http://www.obitalk.com/forum/index.php?topic=61.msg109#msg109I'm going to assume you do changes from the portal via the expert pages. To make a change to a value uncheck both boxes to the right of that value, leave them unchecked, then press submit and wait for the OBi to reboot. Each page needs a submit/reboot before you move to another page.
Firstly the important bit - emergency calls. As you say it's obvious from looking at the digit maps.
Physical Interfaces > Phone > Phone Port > Digit Map
Delete 911 replace with 999. I decided to replace 911 with 999|112
Physical Interfaces > Phone > Phone Port > OutBoundCallRoute
Delete 911 replace with 999 or 999|112
This rule in the OutboundCallRoute {(<#:>|999|112):li} makes 999|112 a special case and sends them directly to Line Port and out to your PSTN line with no action from digit maps. The rule also gives you PSTN dial tone if you press #.
Assuming that sp2 is your Primary Line then delete the existing
ITSP Profile B General DigitMap (This is Msp2)
(1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|011xx.|xx.|(Mipd)|[^*#]@@.)
Replace with
(<0118>xxxxxxx|0118xxxxxxx)
This allows for local and national formats to be used.
You will have to use **1 code for sp1 and **8 for PSTN via line port except for emergency numbers which are a special case see above.
There are ways to route all numbers without using any ** codes, but I'm guessing you have enough to take in for the moment. If all that goes well, then post again if you wish to "automate" further.
Good luck!