This is a configuration arrived at in another thread. I'm posting it here with "Belgium" in the title to make it easy to find for any OBi users in Belgium.
The configuration is for an OBi110 with a landline provider such as Belgacom using the Line Port and a voip provider on sp1. The sp1 provider is Google Voice, but could be any voip provider.
Physical Interfaces > PHONE Port > PrimaryLine: PSTN Line
Physical Interfaces > PHONE Port > DigitMap:
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|100|101|112|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))
Physical Interfaces > PHONE Port > OutboundCallRoute:
{([1-9]x?*(Mpli)):pp},{(<#:>|100|101|112):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}
Physical Interfaces > LINE Port > DigitMap:
(<**1>1[2-9]xxxxxxxxx|04xxxxxxxx|0[1-3,5-9]xxxxxxx|00xx.|xx.)
Calls route as follows:
100|101|112 These are special cases and are sent direct to PSTN line without being processed by the Line Port DigitMap.
1[2-9]xxxxxxxxx eleven digits, first digit 1, second digit 2 to 9. These numbers have **1 prepended to them. This automatically routes them to sp1 (GV).
04xxxxxxxx ten digits starting with 04 (mobile phones). Route direct to PSTN line.
0[1-3,5-9]xxxxxxx nine digits, first digit 0, second digit anything except 4 or 0. (Landline calls including 0800xxxxx). Route direct to PSTN line.
00xx. International numbers any length starting with 00. Route direct to PSTN line, but with a ten second delay as OBi waits to see when dialling is finished.
xx. Any number any length. Routes direct to PSTN line, but with a ten second delay as OBi waits to see when dialling is finished.
Any Belgian OBi users are welcome to add to or alter any of this information.