[cisco-voip] Voice translation rule help
Jorge L. Rodriguez Aguila
jorge.rodriguez at netxar.com
Tue Apr 22 10:21:38 EDT 2008
I am attaching a very good url @ Cisco that can help you understand translation rules
http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml
But to answer your question Basically if we take your rule statement and break it down you can look at it this way.
rule 1 /^\(555\)+\(.*\)/ /444\2/
The Caret Symbol (^) indicates that the match the first match must start at the beginning of the number. Within this statement there are two sets of numbers that are within Parenthesis (555\) and (.*\). The Parenthesis give this a "number or position within your rule so from now on for the purpouse of this rule Position number 1 is (555\) and position number 2 is (.*\) meaning whatever number comes after the first 3 fives so in 555-1234 it would be (555) and (1234). What this the means to your translation rule is 555-1234 wil then be converted into 444+(2) or 444-1234.
Hope this helps you understand.
Jorge Rodríguez Aguila
CCNA,CCVP,CRMCS,CIPCES
Senior Voice/Data Network Consultant
Netxar Technologies
jorge.rodriguez at netxar.com
Office 787-765-0058
PCS 787-688-8530
-----Original Message-----
From: cisco-voip-bounces at puck.nether.net [mailto:cisco-voip-bounces at puck.nether.net] On Behalf Of cisco.voip
Sent: Tuesday, April 22, 2008 10:09 AM
To: cisco-voip at puck.nether.net
Subject: [cisco-voip] Voice translation rule help
I am having a problem understand one piece of the voice trans rules -
the "\" = escape the special meaning of the next character - what does this
mean?
For example - I do not understand the use of the \2 in the following
example:
rule 1 /^\(555\)+\(.*\)/ /444\2/
rt1(cfg-translation-rule)#do test voice trans 1 5551212
Matched with rule 1
Original number: 5551212 Translated number: 4441212
Thanks
_______________________________________________
cisco-voip mailing list
cisco-voip at puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-voip
More information about the cisco-voip
mailing list