cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
489
Views
0
Helpful
4
Replies

translation pattern confusion

kpintens
Level 1
Level 1

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

Marwan ALshawi
VIP Alumni
VIP Alumni

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

View solution in original post

4 Replies 4

Marwan ALshawi
VIP Alumni
VIP Alumni

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

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

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

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,