cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
402
Views
5
Helpful
2
Replies

Voice Translation-Rule syntax

IP_Cartel
Level 1
Level 1

Hi -

Do anyone have an informational link describing the voice translation rules?  I need to get a better understanding on how the syntax is used.  I already understand rule # /123/ /567/ which says match 123 and replace it with 567.  

It's this that I need to understand.

rule 1 /^9\(.*\)/ /\1/

 

what is the upper carrot? I dont understand what this is saying.  

 

1 Accepted Solution

Accepted Solutions

This document should explain what you need to know.

https://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/61083-voice-transla-rules.html


The ^ character means start of string. So your example rule says that it starts with a 9 and then are an indefinite number of more digits that follows in the match part, aka left side. Then on the right hand side it refers to what was copied into memory on the left hand side within the parentheses with the \1. So the result of this rule will be to drop the 9 in the beginning of the phone number. 



Response Signature


View solution in original post

2 Replies 2

This document should explain what you need to know.

https://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/61083-voice-transla-rules.html


The ^ character means start of string. So your example rule says that it starts with a 9 and then are an indefinite number of more digits that follows in the match part, aka left side. Then on the right hand side it refers to what was copied into memory on the left hand side within the parentheses with the \1. So the result of this rule will be to drop the 9 in the beginning of the phone number. 



Response Signature


thank you the link you provided explains the syntax.