azrobert,
Yes, I meant OutboundCallRoute.
I got it now. I understood your problem. Actually the solution could be quite simple.
First of all, you can have more than one rule {...} in OutboundCallRoute that routes to
the same trunk (sp2 in your case). You want to dial some normal numbers with **2 prefix and have OBi strip them, and some other numbers like 8*something, 5*something without needing the **2 since it
would be clear by context these only go out on SP2, correct?
Here is just my suggestion,
1. KEEP the original **2 rule in OutboundCallRoute, and keep the original SP2 DigitMap
2. Instead add x*|x*xx|x*xxxxxxxxxxx| to the PHONE Port digit map directly
3. Add this rule {(x*|x*xx|x*xxxxxxxxxxx):sp2} to your outboundCallRoute
In other words, just add the new pattern to your PHONE Port digitmap so you can dial them;
and then add a routing rule so OBi knows where to route those numbers to.
Note that routing rules are evaluated from left to right and the first matching one will be used (from admin guide).
Additional trick.....
To save you some typing, and let's say you don't use TrunkGroup4 in the OBi at all.
You can use the TrunkGroup4 DigitMap as a place holder for the new pattern (x*|x*xx|x*xxxxxxxxxxx)
and then just refer to (Mtg4) in the PHONE Port DigitMap and OutboundCallRoute without repeating the pattern. (This might seem like a hack... But I was told by OBIHAI support that there will be a more general support for user defined digit map variables in the near future so the hack proposed here is just a temporary solution).