cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

189
Views
0
Helpful
3
Replies
Highlighted
Beginner

add 1 rule not working

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

Re: add 1 rule not working

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

Please rate all useful posts

View solution in original post

Highlighted
Beginner

Re: add 1 rule not working

That is exactly what I was looking for.

 

Thanks,

View solution in original post

3 REPLIES 3
Highlighted
Collaborator

Re: add 1 rule not working

Your rule is not correct. Change to below.

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

 

Please rate all useful posts
Highlighted
Collaborator

Re: add 1 rule not working

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

Please rate all useful posts

View solution in original post

Highlighted
Beginner

Re: add 1 rule not working

That is exactly what I was looking for.

 

Thanks,

View solution in original post

CreatePlease to create content
Content for Community-Ad

Cisco COVID-19 Survey