We are implementing a new MGCP gateway in a remote office in Europe, and thus, we have variable number lengths that are standard in this country (Germany). What we need is a way to translate the called number into a different format so it matches internal DNs that we have defined within CallManager.
For example, we need to translate any of the called numbers, such as 54390, 543920, or 5439240 to internal extensions. Our private DN numbering plan is set up so that 22 is the prefix, followed by 3 digits.
So ideally, I need a way to translate as follows:
54390 --> 22000
543920 --> 22020
5439240 --> 22240
One could also write this as follows (if we wish to discard the digits PreDot):
5439.X --> 2200X
5439.XX --> 220XX
5439.XXX --> 22XXX
Can someone please explain to me how to apply this translation pattern INBOUND on our MGCP gateway, so that calls received on the gateway (that match any of these patterns) are routed to the correct DN internally?