Translation Rule for incoming PRI to FAX and Phones

Answered Question
Jul 16th, 2010

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

I have this problem too.
0 votes
Correct Answer by Brandon Buffin about 6 years 4 months ago

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

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

Brandon

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Brandon Buffin Fri, 07/16/2010 - 13:07

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

johnminon Fri, 07/16/2010 - 13:11

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

Correct Answer
Brandon Buffin Fri, 07/16/2010 - 13:14

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

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

Brandon

Actions

This Discussion