Here's the scenario:
We have a PRI from the telco delivering 4-digits. The 2821 ISR is configured for 2-digit extensions. The telco has assigned DIDs 2500 - 2599. We have about 20 extensions defined and calling into them directly works as it should. In fact everything is working just fine. What we are trying to accomplish is this: if one of the 80 remaining DIDs is dialed, we want to route them to the operator (x00). As it stands if we receive the digits 2508 (since x08 isn't assigned) we see a cause code of 'unallocated number'. How do I construct a rule that accomplishes the following:
if 2-digit extension is defined then route accordingly; else route to operator
Here is our existing inbound translation-rule.
voice translation-rule 1
rule 1 /^3008/ /00/ (last four from original published BTN routing to the operator extension)
rule 2 /^2560/ /60/ (CUE dial-in from pstn)
rule 3 /^..\(..\)/ /\1/ (ditch the first two digits the telco sends)
I can't seem to find a way to do this that doesn't break rule 3 and route everything to 00.
Thanks for any help.