cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
520
Views
0
Helpful
3
Replies

add 1 rule not working

Joli Martinez
Beginner
Beginner

I need to add a 1 to dialed number if it does not contain one.  I am using the rule below and what it does is it replaces the first digit with a 1 not append to it.

EX: I dial 2223334444 I get 1223334444 (replacing the first 2 with a 1)  How can I fix this?

 

rule 2 /^[2-9]/ /1/

q

2 Accepted Solutions

Accepted Solutions

That is exactly what I was looking for.

 

Thanks,

View solution in original post

3 Replies 3

Roger Kallberg
VIP Mentor VIP Mentor
VIP Mentor

Your rule is not correct. Change to below.

rule 2 /^\([2-9].*\)/ /1\1/

 



Response Signature


Have a look at this url for more details about translation rules. https://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/61083-voice-transla-rules.html



Response Signature


That is exactly what I was looking for.

 

Thanks,

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers