11-08-2011 02:13 PM - edited 03-16-2019 07:56 AM
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
Solved! Go to Solution.
11-08-2011 02:37 PM
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
11-08-2011 02:37 PM
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
11-08-2011 02:42 PM
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
11-08-2011 03:43 PM
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
11-08-2011 11:16 PM
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,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide