voice_transla_rules - Voice Translation Rules Document ID:...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Voice Translation Rules Document ID: 61083 Introduction Prerequisites Requirements Components Used Conventions Simple Match and Replace Pattern Match with Wildcards Number Slice Number Type and Plan Reject Calls Apply Rules More Examples Truncate Numbers Down to the Last Two Digits Remove Unwanted Digits in a Number NetPro Discussion Forums - Featured Conversations Related Information Introduction This document discusses how to define voice translation rules. Note: The syntax used throughout this document is: rule precedence / match pattern / / replacement pattern / Note: / -- / delimits the whole number. Prerequisites Requirements There are no specific requirements for this document. Components Used This document is not restricted to specific software and hardware versions. Conventions Refer to Cisco Technical Tips Conventions for more information on document conventions. Simple Match and Replace Cisco - Voice Translation Rules
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Example 1 This example replaces the first occurrence of the number "123" with "456". voice translation-rule 1 rule 1 /123/ /456/ These are test voice translation-rule examples: router# test voice translation-rule 1 123 Matched with rule 1 Original number: 123 Translated number: 456 router# test voice translation-rule 1 1234 Matched with rule 1 Original number: 1234 Translated number: 4564 router# test voice translation-rule 1 6123 Matched with rule 1 Original number: 6123 Translated number: 6456 router# test voice translation-rule 1 6123123 Matched with rule 1 Original number: 6123123 Translated number: 6456123 Original number type: none Translated number type: none Original number plan: none Translated number plan: none In this example, the rule matches the first occurrence of the number that contains the pattern "123" anywhere in the number. Specifically, you can use the start and end of number indicators. The Example 2 and Example 3 sections show this. Example 2 This example shows how to replace any occurrence of "123" at the start of a number with "456". voice translation-rule 1 rule 1 /^123/ /456/ These are test voice translation-rule examples. router# test voice translation-rule 1 123 Matched with rule 1 Original number: 123 Translated number: 456 router# test voice translation-rule 1 1234 Matched with rule 1 Original number: 1234 Translated number: 4564 router# test voice translation-rule 1 6123 6123 Didn't match with any of rules Example 3 If you want only the match of an exact number, specify both the start and end number indicators: voice translation-rule 1 rule 1 /^123$/ /456/ router# test voice translation-rule 1 123 Cisco - Voice Translation Rules
Background image of page 2
Matched with rule 1 Original number: 123 Translated number: 456 router# test voice translation-rule 1 1234 1234 Didn't match with any of rules router# test voice translation-rule 1 6123 6123 Didn't match with any of rules Pattern Match with Wildcards These tables define wildcard and wildcard combinations and show some examples. Wildcard
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/08/2011 for the course CISCO 1232 taught by Professor Jack during the Spring '11 term at American International.

Page1 / 9

voice_transla_rules - Voice Translation Rules Document ID:...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online