Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

translation pattern confusion

hi all

I am stuck with the following:

- we have the following translation pattern on the gateway rule 1 /^xxxx/ /12345/

my understanding of this rule is, find in the string pattern xxxx, when found drop the preceding digits and replace the pattern with the digits in the next string

so incoming number 021xxxx45 will be translated to 1234545

Is this correct?

Thanks in advance

Koen

1 ACCEPTED SOLUTION

Accepted Solutions

translation pattern confusion

well this translation is confusing

the ^ means start with

in your case it means start with any 4 digits this is one thing the other thing is in the voice gateway the digits represented by . not X like CUCM

if you want to get the below working

incoming number 021xxxx45 will be translated to 1234545

you can use the below translation:

/^021....\(45\)/ /12345\1/

for more details about how this works please refer to the below link:

http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml

hope this help

if helpful rate

4 REPLIES

translation pattern confusion

well this translation is confusing

the ^ means start with

in your case it means start with any 4 digits this is one thing the other thing is in the voice gateway the digits represented by . not X like CUCM

if you want to get the below working

incoming number 021xxxx45 will be translated to 1234545

you can use the below translation:

/^021....\(45\)/ /12345\1/

for more details about how this works please refer to the below link:

http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml

hope this help

if helpful rate

New Member

translation pattern confusion

thanks for the link

what the rule needs to achieve is, when an incoming call is presented on the interface, it needs to find 4 digits in that string, when it finds those, it needs to drop every digit in front of that put append the remaining digits

hope this makes sense

translation pattern confusion

can you post the actual number and how you want it to result after the translation so i can provide you with the right answer

New Member

translation pattern confusion

We figured it out, understanding of the ^ was causing confusion, it nominates the start of the string to match not a position in the string,

256
Views
0
Helpful
4
Replies