I have a PRI into a 2921 router and need to split into DiD to phones and DID/FAX to a TCL script. The PRI is sending 4 digits....so to get to phones...that's easy...do nothing!!!
The fax numbers are in the same range so i need a way to identify them in a translation rule and prepend the 6 digits back on to it so the script can read the fax and pass on to an email box. numbers are:
xxx-xxx-1100-1138 are going to phones and come in on PRI w/ the correct 4 digits
xxx-xxx-1139-1159 are fax numbers for users and come in the same way on the PRI
What i have now::
voice translation-rule 20
rule 1 /8550/ /1192/
rule 2 /6727/ /1199/
rule 3 /1153/ /1153/
rule 4 /1139/ /8889351139/
rule 5 /11[4-5][0-9]/ /888935/
rule 4 is a single fax number and this works....i only have 15 lines in the translation rule!!!
This is what happens...........
rtr-1#test voice translation-rule 20 1140
Matched with rule 5
Original number: 1140 Translated number: 888935
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
Any help would be appreciated