ā07-16-2010 12:54 PM - edited ā03-15-2019 11:46 PM
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
Thanks
John
Solved! Go to Solution.
ā07-16-2010 01:14 PM
Remove the \ in front of the 8. Should be:
rule 5 /^\(11[4-5][0-9]\)/ /888935\1/
Brandon
ā07-16-2010 01:07 PM
Try this:
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\1/
Hope this helps.
Brandon
ā07-16-2010 01:11 PM
Get something wierd::
voice translation-rule 20
rule 1 /8550/ /1192/
rule 2 /6727/ /1199/
rule 3 /1153/ /1153/
rule 4 /1139/ /2179351139/
rule 5 /^\(11[4-5][0-9]\)/ /\888935\1/
!
!
!
cli-rtr-1#test voice translation-rule 20 1155
Matched with rule 5
Original number: 1155 Translated number: 889351155
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
It drops the the a digit at the beginning!!!!
ā07-16-2010 01:14 PM
Remove the \ in front of the 8. Should be:
rule 5 /^\(11[4-5][0-9]\)/ /888935\1/
Brandon
ā07-16-2010 01:15 PM
That is it....THNKS SO MUCH!!!!!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide