[cisco-voip] Voice translation rule help

Ryan West rwest at zyedge.com
Tue Apr 22 10:16:55 EDT 2008


#2 is means the secondary replacement, it's a search and replace function.  You don't even need the first part of the rule, it could easily have been this:

Rule 1 /^555\(.*\)/ /444/\1/

-ryan

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