cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
805
Views
0
Helpful
4
Replies

Translation Rule for incoming PRI to FAX and Phones

johnminon
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

Remove the \ in front of the 8. Should be:

rule 5 /^\(11[4-5][0-9]\)/ /888935\1/

Brandon

View solution in original post

4 Replies 4

Brandon Buffin
VIP Alumni
VIP Alumni

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

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!!!!

Remove the \ in front of the 8. Should be:

rule 5 /^\(11[4-5][0-9]\)/ /888935\1/

Brandon

That is it....THNKS SO MUCH!!!!!