giqcas,
This will make every number that starts with *67 go out via sp2. I'm using sp2 of an OBi110 in this example. Changes shown in bold.
Physical Interfaces > PHONE Port > DigitMap:
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|911|**0|***|#|**1(Msp1)|*67(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))
Physical Interfaces > PHONE Port > OutboundCallRoute:
{([1-9]x?*(Mpli)):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(*67(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}
Now if you dial *6712345678912, this rule {(*67(Msp2)):sp2}, will match it and send *6712345678912 out to sp2.
The problem is that it stops you using *67 on any other service. Here is an alternative way:
Leave this at default:
Physical Interfaces > PHONE Port > DigitMap:
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|911|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))
Changes shown here in bold:
Physical Interfaces > PHONE Port > OutboundCallRoute:
{([1-9]x?*(Mpli)):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:*67>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}
Now if you dial **212345678912, this rule {(<**2:*67>(Msp2)):sp2}, will replace **2 with *67 and send *6712345678912 out to sp2.
All this assumes that you first do this as you suggest:
Delete the following line from your star codes
*67, Block Caller ID Once, set($Bci1,1)
Edit: No need to delete *67, Block Caller ID Once, set($Bci1,1) using the second method as you are using prefix **2 followed by the number, which gets transformed into *67 followed by number when processed through the Phone Port OutboundCallRoute.